我很确定我已经检查了所有可能的重复问题,没有一个能解决我的问题。我关闭了即时运行功能,将minfy和收缩设置为false。我已经打扫过了密钥文件存在并且可以在此应用程序的早期版本中完美运行。我试过使用--info运行编译,但是它没有给我任何提示。错误是:
任务':app:packageRelease'的执行失败。 无法从商店“ C:\ Users \ Mel \ AndroidStudioProjects \ tourbuilderkeystore.jks”中读取密钥myreleasekey:无法恢复密钥
我的构建包是:
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.myguidedtours.www.tourguide"
minSdkVersion 16
targetSdkVersion 27
versionCode 10
versionName '1.10'
}
buildTypes {
release {
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
// implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:support-fragment:27.1.1'
implementation 'com.android.support:support-compat:27.1.1'
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.android.gms:play-services-base:15.0.1'
implementation 'com.google.android.gms:play-services-tasks:15.0.1'
implementation 'com.google.android.gms:play-services-basement:15.0.1'
implementation 'com.android.support:mediarouter-v7:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation "com.android.support:exifinterface:27.1.1"
implementation files('libs/PdfViewer.jar')
}
这两天我一直在流汗-希望您能提供帮助。
答案 0 :(得分:0)
以防万一有人像我一样愚蠢。在Android Studio中生成签名APK的提示不会告诉您提供的密码是好是坏。我一定会误输入其中之一,因为我勾选了“记住密码”选项,所以每次尝试运行它时都会失败。没有迹象表明密码可能是错误的-通常当您输入错误的密码时,您会立即得到反馈。