Androidデザインツール24にアップグレードした後、私のプロジェクトはもう実行されません。エラーなしで正常に構築されますが、実行するとエラーが発生します。レルムとjackOptions Javaがゼロ以外の終了値で終了しました1 - Android Gradle
エラー:Gradle:タスク ':app:transformClassesWithDexForDebug'の実行に失敗しました。
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_102\bin\java.exe'' finished with non-zero exit value 1
これは私のbuild.gradleファイルです:私は最終的に実行するために私のプロジェクトを持って、これはどのようにある
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
android {
compileSdkVersion 24
buildToolsVersion "24.0.2"
defaultConfig {
applicationId "com.example.don.mstp"
minSdkVersion 15
targetSdkVersion 24
versionCode 1
versionName "1.0"
// Enabling multidex support.
multiDexEnabled true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
incremental true
javaMaxHeapSize "4g"
preDexLibraries = false
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.github.Lukle:ClickableAreasImages:v0.1'
compile 'com.android.support:design:24.2.0'
compile 'com.android.support:support-v4:24.2.0'
compile 'com.android.support:cardview-v7:24.2.0'
compile 'com.android.support:recyclerview-v7:24.2.0'
compile 'com.github.javiersantos:MaterialstyledDialogs:1.3'
compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'
compile 'com.ramotion.foldingcell:folding-cell:1.0.1'
compile 'com.github.brnunes:swipeablerecyclerview:1.0.2'
compile 'com.github.gabrielemariotti.recyclerview:recyclerview-animators:[email protected]'
compile 'com.tiancaicc.springfloatingactionmenu:library:0.0.2'
compile 'com.daimajia.numberprogressbar:library:[email protected]'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.daprlabs.aaron:cardstack:0.3.0'
compile 'com.txusballesteros:FitChart:1.0'
compile 'com.github.SilenceDut:ExpandableLayout:v1.0.1'
}
あなたは実際にmultidexを必要としますか?com.android.support:multidex:1.0.1 '"私は非常にそれを疑っていますが、依存関係があなたのアプリを引っ張っているのを見て、他のものを含む可能性が最も高い依存関係のリストであり、あなたには重複が含まれていると確信しています。 ./gradlew app:dependencies'を実行してAndroid Studioの端末から確認してください –
アンドロイドのドキュメント:https://developer.android.com/studio/build/multidex.htmlに従って、私は "compile 'comを追加する必要があります。 android.support:multidex:1.0.0 '、さらに一歩進んで最新のものを追加しました。私はIntellijを使っていますが、' gradle console 'はないようです。私は多くの依存関係を使用しています。 – Sif
デバッグだけをビルドするときやリリースをビルドするときにエラーが出るのですか?また、なぜproguard 'minifyEnabled false'をオフにしたのですか?デバッグ。 – DataDino