Android 獲取簽名和android studio設定簽名
阿新 • • 發佈:2019-02-16
Generate Signed APK出錯:java.util.zip.ZipException: duplicate entry: android/support/annotation/IntegerRes.class
移除app目錄libs下面的v4,v7包即可
需要在build.gradle app中新增如下內容
defaultConfig {
........//省略
// Enabling multidex support. trying to fix
multiDexEnabled true
}
//需要新增如下內容
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
exclude 'META-INF/services/javax.annotation.processing.Processor'
}