失敗我gradle.build文件看起來像這樣:搖籃建立與TransformException
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.alexandernohe.mapsappgoogle"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.google.maps.android:android-maps-utils:0.4.3'
compile 'com.firebase:firebase-client-android:2.5.1+'
compile 'com.android.support:support-v4:23.2.1'
compile 'com.android.support:design:23.2.1'
}
我已經啓用multidexing並試圖刪除應用程序/ build文件夾,但我的申請仍然不會建。如果我刪除設計庫,它會生成,但是我無法在片段中使用浮動操作按鈕,也無法使用協調的佈局。這裏的大多數當前解決方案引用帖子以啓用多重分解,但是,在查看構建文件時,您應該看到它已啓用。我有一種感覺,列出的圖書館可能與設計圖書館重疊,但據我所知,基於谷歌文檔,它們是不同的。
以下是錯誤代碼:
Error:Execution failed for task ':app:transformClassesWithDexForDebug'. >com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java'' finished with non-zero exit value 3
編輯: 我忘了提,我也進行了清理的項目也是如此。
運行gradle這個與--debug以獲得更多的細節? –
我只是通過Android Studio使用run app命令?你打算去這裏的命令行嗎? –
是的,確切地說。命令行爲您提供了更多選擇。很多時候,錯誤輸出建議您使用額外的標誌運行以獲取更多信息。 –