gpt4 book ai didi

android - 将之前在托管工作流中发布的裸工作流博览会 React-Native 应用程序发布到 Google Play

转载 作者:行者123 更新时间:2023-12-03 21:58:13 25 4
gpt4 key购买 nike

我的应用程序之前是在世博管理工作流程中构建的。我是用 expo ba 做的。 .因为 android 应用程序要求您在添加应用程序内购买之前发布您的应用程序,所以我上传了这个 apk 并使用它发布了一个测试版。

我需要切换到裸工作流以实现应用内购买。现在,当尝试创建构建以发布实际应用程序时,我正在关注 React Native instructions但必须创建另一个上传 key 才能创建构建(这次是 aab)。

在游戏控制台上它指出

Upload key: The key you use to sign your first release. Sign every subsequent release with the same key to verify it’s from you. Keep your upload key safe. If it’s ever lost or compromised, contact developer support to replace it.



我很确定这是一个问题,因为我使用了博览会给我的任何东西来签署原始 apk。
我也无法删除我的原始应用程序并创建一个具有相同 bundle 名称的新应用程序,因为一旦应用程序发布,它就无法删除。

最佳答案

运行之前使用的 keystore 文件
expo fetch:android:keystore
这将显示类似

Keystore credentials
Keystore password: MYAPP_UPLOAD_STORE_PASSWORD
Key alias: MYAPP_UPLOAD_KEY_ALIAS
Key password: MYAPP_UPLOAD_KEY_PASSWORD

Path to Keystore: /Path/To/my_upload_store_file.jks

编辑文件 android/app/build.gradle包括上述信息
...
android {
...
defaultConfig { ... }
signingConfigs {
release {
//if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
storeFile file("MYAPP_UPLOAD_STORE_FILE")
storePassword "MYAPP_UPLOAD_STORE_PASSWORD"
keyAlias "MYAPP_UPLOAD_KEY_ALIAS"
keyPassword "MYAPP_UPLOAD_KEY_PASSWORD"
//}
}
}
buildTypes {
release {
...
signingConfig signingConfigs.release
}
}
}
...

地点 my_upload_store_file.jks里面 android/app
编辑文件 ~/.gradle/gradle.propertiesandroid/gradle.properties ,并添加以下内容
MYAPP_UPLOAD_STORE_FILE="my_upload_store_file.jks"
MYAPP_UPLOAD_KEY_ALIAS="MYAPP_UPLOAD_KEY_ALIAS"
MYAPP_UPLOAD_STORE_PASSWORD="MYAPP_UPLOAD_STORE_PASSWORD"
MYAPP_UPLOAD_KEY_PASSWORD="MYAPP_UPLOAD_KEY_PASSWORD"

从目录 android 在终端中运行以下命令
./gradlew bundleRelease

这将生成一个名为 app-release.aab 的文件。目录内 android/app/build/outputs/bundle/release/ .
将此文件上传到 Google Playstore 控制台

关于android - 将之前在托管工作流中发布的裸工作流博览会 React-Native 应用程序发布到 Google Play,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61035861/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com