私は前に、しかしTwitter
のために、いくつかのJar
ファイルを追加した後、正常に動作しAndroid Studio
すべてで問題に直面していますが私にこのError
を与えているようです。android studioエラー: ':app:transformClassesWithJarMergingForDebug'タスクの実行に失敗しました。 > com.android.build.api.transform.TransformException:
私は多くの回Invalidate caches & Restart studio
を試しましたが、それは私を助けませんでした。また、他のソリューションも試しましたが、どれも私を助けませんでした。
私がtwitter jar files
を削除した場合は、プロジェクトビルドに成功しました。それ以外の場合は、何度も同じエラーが繰り返し表示されています。
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/multidex/MultiDex$V14.class
エラーは、ここに私のbuild.gradle
です。
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.example.app"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.intuit.sdp:sdp-android:1.0.3'
compile 'com.android.volley:volley:1.0.0'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:cardview-v7:23.+'
compile 'com.android.support:recyclerview-v7:23.+'
compile 'com.facebook.android:facebook-android-sdk:4.6.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.uncopt:android.justified:1.0'
compile 'com.github.ganfra:material-spinner:1.1.1'
// jsoup HTML parser library @ http://jsoup.org/
compile 'org.jsoup:jsoup:1.9.2'
compile 'com.google.android.gms:play-services-appindexing:8.4.0'
compile 'com.google.android.gms:play-services-maps:8.4.0'
compile 'com.google.android.gms:play-services-location:8.4.0'
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile files('libs/twitter4j-media-support-3.0.3.jar')
compile files('libs/twitter4j-core-3.0.3.jar')
}
私はここに立ち往生していますが、何か助けになるでしょう。 ./gradlew clean
まだ運を試してみました
EDIT
。ターミナルで
私はその後、これを試してみて、あなたがこの作品場合かお知らせします。 –
ok try :)、私は、すべての最高の仲間を教えてくれない場合:) –