从Android Studio生成签名的apk时出错。几天后一切都运行良好,而从最近2天我面临生成签名apk的问题。
错误是:
失败:构建因异常而失败。出了什么问题:一个问题 找到任务':app:packageRelease'的配置。文件 '/media/user86/data/MySIPonline/app/build/intermediates/res/resources-release-stripped.ap_' 为属性'resourceFile'指定的不存在。
我已经检查过该文件夹和release-stripped.ap文件。我无法弄清楚错误。
以下是build.gradle
(app):
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.xxxxxxxx"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
}
}
lintOptions {
abortOnError false
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'de.petendi:ethereum-android-lib:0.2.1'
compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
compile 'com.android.support:design:26.0.0-alpha1'
testCompile 'org.ethereum:ethereumj-core:1.2.0-RELEASE'
testCompile 'commons-io:commons-io:2.4'
testCompile 'junit:junit:4.12'
}
configurations.all {
resolutionStrategy {
force 'com.fasterxml.jackson.core:jackson-databind:2.7.1-1'
force 'com.fasterxml.jackson.core:jackson-annotations:2.7.0'
force 'com.fasterxml.jackson.core:jackson-core:2.7.1'
}
}
以下是亲保护档案的链接 - https://gist.github.com/Sanwal13/b667326812b87702c86fa02870b28240
请帮助并非常感谢您在这件事上的时间和帮助。