切换我的系统后(Android studio版本2.2.2 - 2.3.1)。我收到此错误消息。我能够运行我的应用程序。但是当我收到此错误时,我无法生成签名的APK
错误:任务执行失败 ':应用程序:transformClassesAndResourcesWithProguardForRelease'。
java.io.IOException:请先纠正上述警告。
我的傻瓜
.tooltip{
position: relative;
z-index: 1151 !important;
}
依赖树
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.bykar.bykar_provider"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.9.25"
// Enabling multidex support.
multiDexEnabled true
testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
dexOptions {
javaMaxHeapSize = "4g"
}
}
dependencies {
androidTestCompile('com.android.support:multidex-instrumentation:1.0.1') {
exclude group: 'com.android.support', module: 'multidex'
}
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.google.android.gms:play-services:9.6.1'
compile 'com.github.lzyzsd:circleprogress:1.1.0@aar'
compile 'com.android.support:multidex:1.0.0'
compile 'testfairy:testfairy-android-sdk:1.+@aar'
}
答案 0 :(得分:1)
使用
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.github.lzyzsd:circleprogress:1.1.0@aar'
compile 'com.android.support:multidex:1.0.1'
compile 'testfairy:testfairy-android-sdk:1.4.14'
也不要使用
compile 'com.google.android.gms:play-services:9.6.1'
使用最新的10.2.1。也使用特定服务而不是整个包。
上的表格1以后的测试依赖树 - 所有支持库都是25.3.1
注意 - 测试我不包括游戏服务库。
+--- com.android.support:appcompat-v7:25.3.1
| +--- com.android.support:support-annotations:25.3.1
| +--- com.android.support:support-v4:25.3.1
| | +--- com.android.support:support-compat:25.3.1
| | | \--- com.android.support:support-annotations:25.3.1
| | +--- com.android.support:support-media-compat:25.3.1
| | | +--- com.android.support:support-annotations:25.3.1
| | | \--- com.android.support:support-compat:25.3.1 (*)
| | +--- com.android.support:support-core-utils:25.3.1
| | | +--- com.android.support:support-annotations:25.3.1
| | | \--- com.android.support:support-compat:25.3.1 (*)
| | +--- com.android.support:support-core-ui:25.3.1
| | | +--- com.android.support:support-annotations:25.3.1
| | | \--- com.android.support:support-compat:25.3.1 (*)
| | \--- com.android.support:support-fragment:25.3.1
| | +--- com.android.support:support-compat:25.3.1 (*)
| | +--- com.android.support:support-media-compat:25.3.1 (*)
| | +--- com.android.support:support-core-ui:25.3.1 (*)
| | \--- com.android.support:support-core-utils:25.3.1 (*)
| +--- com.android.support:support-vector-drawable:25.3.1
| | +--- com.android.support:support-annotations:25.3.1
| | \--- com.android.support:support-compat:25.3.1 (*)
| \--- com.android.support:animated-vector-drawable:25.3.1
| \--- com.android.support:support-vector-drawable:25.3.1 (*)
+--- com.android.support.constraint:constraint-layout:1.0.2
| \--- com.android.support.constraint:constraint-layout-solver:1.0.2
+--- com.android.support:design:25.3.1
| +--- com.android.support:support-v4:25.3.1 (*)
| +--- com.android.support:appcompat-v7:25.3.1 (*)
| +--- com.android.support:recyclerview-v7:25.3.1
| | +--- com.android.support:support-annotations:25.3.1
| | +--- com.android.support:support-compat:25.3.1 (*)
| | \--- com.android.support:support-core-ui:25.3.1 (*)
| \--- com.android.support:transition:25.3.1
| +--- com.android.support:support-annotations:25.3.1
| \--- com.android.support:support-v4:25.3.1 (*)
+--- com.android.support:support-v4:25.3.1 (*)
+--- com.github.lzyzsd:circleprogress:1.1.0
+--- com.android.support:multidex:1.0.1
\--- testfairy:testfairy-android-sdk:1.4.14
编辑1:
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.bykar.bykar_provider"
minSdkVersion 19
targetSdkVersion 25
versionCode 1
versionName "1.9.25"
编辑2:
在https://developers.google.com/android/guides/setup
中记录的proguard-rules.pro中添加以下内容-keep class com.testfairy.** { *; }
-dontwarn com.testfairy.**
-keepattributes Exceptions, Signature, LineNumberTabl