我建設,我正在使用的代碼融合提供商從本教程鏈接的應用程序,但是當我要運行我的程序,我收到此錯誤:無法使用融合提供商啓動應用程序?
Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java'' finished with non-zero exit value 1
這是我的搖籃文件:
apply plugin: 'com.android.application'
機器人{ compileSdkVersion 23 buildToolsVersion 「24.0.0」 dexOptions { javaMaxHeapSize 「4G」 }
defaultConfig {
applicationId "com.example.dev3.fusedtutorial"
minSdkVersion 9
targetSdkVersion 23
multiDexEnabled true
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
依賴性{ 編譯文件樹(包括:[ '的* .jar'],則dir: '庫') testCompile '的junit:junit的:4.12' 編譯「com.android。支持:appcompat-v7:23.4.0' compile'com.google.android.gms:play-services:9.2.0' }
任何人都可以幫助我嗎?
也許這是由於SDK,Build Tools和Gradle插件版本不匹配造成的,請嘗試驗證您是否使用它們的最新版本。然後嘗試清理並運行該項目。同時檢查這個[SO問題]中的解決方案(http://stackoverflow.com/questions/36561103/apptransformclasseswithmultidexlistfordebug-failed)。這個SO問題有很多的參考鏈接,你也可以檢查它們。 – KENdi