java - 生成签名的 APK:构建 APK 时出错。你可以找到错误
问题描述
当我尝试生成 singend apk 时,它的 show apk singend 失败
bulid.gradle 文件
apply plugin: 'com.android.application'
安卓 {
compileSdkVersion 29
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.fma.airhorn"
minSdkVersion 16
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
依赖项 { implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
///////////////////////////////////////// /////////////////////////////////////////消息失败
FAILURE:构建失败并出现异常。
出了什么问题:任务“:app:validateSigningRelease”执行失败。
未找到用于签名配置“externalOverride”的密钥库文件“E:\Android\jre\jre\bin\air horn relase”。
尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
在https://help.gradle.org获得更多帮助
42 秒内构建失败
解决方案
您可能放错了keystore.jks
文件的路径。
检查你的keystore
路径。keystore
找到第一次生成路径的位置。检查 C:\Users.android
推荐阅读
- php - Woocommerce 通过 XML 自动更新产品
- icons - 我在哪里可以获得材料图标的代码?
- javascript - 使用正则表达式从字符串中获取值
- powerbi - 在 power bi 有条件地在卡片或表格视觉下方添加超链接
- apache-flink - Apache Beam 是否支持迭代算法,就像 Apache Flink 一样?
- assembly - MIPS32:ld 伪指令翻译
- ibm-cloud-private - 为什么我不能在 ICP(IBM 云私有)中为与 OIDC 集成的普通用户使用 API
- python - 在 centos7 上安装 pip(3) 的推荐方法
- jenkins - 使用在 Jenkinsfile 内部构建的其他作业中创建的变量
- matlab - Matlab按钮继续