错误:com.android.builder.dexing.DexArchiveBuilderException:无法在android中处理

时间:2018-04-04 11:18:57

标签: java android android-studio dex assemble

当我尝试运行app时,会出现以下错误:

  

信息:Gradle任务[:app:assembleDebug]
  错误:com.android.builder.dexing.DexArchiveBuilderException:无法处理G:\ Android \ Fundraiser \ BuyForFund \ app \ build \ intermediates \ classes \ debug   错误:com.android.builder.dexing.DexArchiveBuilderException:dexing App / AppController.class时出错   错误:com.android.dx.cf.iface.ParseException:类名(app / AppController)与路径(App / AppController.class)不匹配
  错误:任务':app:transformClassesWithDexBuilderForDebug'执行失败。   com.android.build.api.transform.TransformException:com.android.builder.dexing.DexArchiveBuilderException:com.android.builder.dexing.DexArchiveBuilderException:无法处理G:\ Android \ Fundraiser \ BuyForFund \ app \ build \ intermediates \ classes \ debug

AppContoller位于java> app> AppController

Gradle.build

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.android.buyforfund"
        minSdkVersion 18
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.android.support:design:26.1.0'
    implementation 'com.android.support:support-v4:26.1.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    implementation 'com.android.support:recyclerview-v7:26.1.0'
    compile 'com.android.support:cardview-v7:26.1.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.chootdev:csnackbar:1.1.0'
    compile 'com.weiwangcn.betterspinner:library-material:1.1.0'
    compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
    compile 'de.hdodenhof:circleimageview:1.3.0'
}        

帮我解决这个错误。

0 个答案:

没有答案