でランエラー(DebugUtils.class)をビルドします。実行はタスクGradleのは、私は次のようなエラーに</p> <p>取得中にエラーが発生していますAndroidのメーカー1.5
:app:transformClassesWithJarMergingForDebug. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/util/DebugUtils.class
のために失敗した私は一日で検索けど見つからことができませんでした私の問題を解決する適切な答え。
マイアプリのbulidのGradleの
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.project.test"
multiDexEnabled true
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
dexOptions {
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
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.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.google.android.gms:play-services-ads:+'
compile 'com.google.android.gms:play-services-identity:+'
compile 'com.google.android.gms:play-services-gcm:+'
compile files('libs/android-support-v4.jar')
compile 'com.github.JakeWharton:ViewPagerIndicator:2.4.1'
}
に依存して再構築し、それも動作していません。 助けてください。前もって感謝します。
あなたは 'コンパイルしたファイル( 'LIBSを/削除しようとしたことがありandroid-support-v4.jar ') '依存関係からの行?それはすでにそれがfileTree行の依存として追加されているようです。 –
はい、それもアドリアンを試してみました。働いていない。 – Sethuraman