我正在尝试构建apk但它给出了未知的错误我尝试了很多解决方案,但没有解决。 错误:任务执行失败':app:transformClassesAndResourcesWithProguardForRelease'。
java.io.IOException:无法写入[\ app \ build \ intermediates \ transforms \ proguard \ release \ jars \ 3 \ 1f \ main.jar](无法读取[\ app \] build \ intermediates \ explosion-aar \ com.android.support \ support-v4 \ 22.0.0 \ jars \ libs \ internal_impl-22.0.0.jar(;;;;;; **。class)](重复的zip条目[android / support / v4 / view / ap.class == internal_impl-22.0.0.jar:android / support / v4 / view / WindowInsetsCompat.class]))
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion '22.0.1'
defaultConfig {
applicationId "my_directory"
minSdkVersion 14
targetSdkVersion 20
versionCode 2
versionName "1.0.1"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:recyclerview-v7:+'
compile 'net.sourceforge.jtds:jtds:1.3.0'
compile 'com.android.support:cardview-v7:22.0.0'
compile 'com.google.android.gms:play-services:7.0.0'
compile files('libs/gcm.jar')
}