我尝试使用keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
. 将其复制到android/app/
和~/.android/
。它一直在抱怨。当我运行./gradlew signingReport
它很好。
在我的build.gradle
我有
signingConfigs {
debug {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
buildTypes {
debug {
signingConfig signingConfigs.debug
}
release {
// Caution! In production, you need to generate your own keystore file.
// see https://facebook.github.io/react-native/docs/signed-apk-android.
signingConfig signingConfigs.debug
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
我的fastlane
fastfile
desc "Submit a new build to Play Store 'Testing' track"
lane :testingtrack do
# gradle(task: 'assemble', build_type: 'Release')
gradle(
task: "bundle",
build_type: "Release",
print_command: false,
)
increment_version_code(
gradle_file_path: "app/build.gradle",
)
upload_to_play_store(track: 'Testing', skip_upload_apk: true)
# slack(message: 'Successfully distributed a new beta build')
end
我正在尝试上传一个测试版应用程序,它以前工作过一次,但我重新克隆了我的仓库并且没有保存旧密钥。我还尝试使用 Android Studio 生成新的签名密钥,但失败并出现不同的错误,“无法读取文件”。我还尝试从 Play 商店下载上传密钥,但效果不佳。