[英]Deploying Android App (developed in Delphi FireMonkey) to Google Play Store
I am attempting to deploy my first app to the Google Play Store. 我正在尝试将我的第一个应用部署到Google Play商店。 Each time I upload the APK file, I get the following message:
每次上传APK文件时,都会收到以下消息:
"Upload failed You uploaded a debuggable APK. For security reasons you need to disable debugging before it can be published in Google Play. Learn more about debuggable APKs." “上传失败您上传了可调试的APK。出于安全原因,您需要先禁用调试才能在Google Play中发布。了解有关可调试APK的详情。”
I am building a release version of my code. 我正在构建我的代码的发布版本。 I upload the release version of my APK file from:
我上传了我的APK文件的发布版本:
\Projects\MyAppNameHere\Android\Release\MyAppNameHere\bin\MyAppNameHere.apk
In my Projects Debugging options, it is set to "No Debug information" 在我的项目调试选项中,它设置为“无调试信息”
I have also modified the AndroidManifest file to say: 我还修改了AndroidManifest文件来说:
android:debuggable="False"
However, the Google Play Store keeps giving me the same message that i need to upload a non-debuggable version. 但是,Google Play商店不断向我提供上传不可调试版本所需的相同消息。
What Am I doing wrong? 我究竟做错了什么? I should note, every time I build a new release version of the APK file, the AndroidManifest file reverses back to
我应该注意,每次构建APK文件的新版本时,AndroidManifest文件都会反转回来
android:debuggable="True"
There are two types of certificates for signing your app: 有两种类型的证书可用于签署您的应用:
Delphi puts a debug certificate for you on your PC so you can start developing & debug your apps. Delphi为您提供调试证书,以便您开始开发和调试您的应用程序。
It even uses this certificate if you compile with a release profile when you forgot to create your own certificate. 如果您在忘记创建自己的证书时使用发布配置文件进行编译,它甚至会使用此证书。
So make sure that 所以一定要确保
If you do not have a release certificate you can create a new certificate within a key store through the options dialog. 如果您没有发行证书,则可以通过选项对话框在密钥库中创建新证书。 Remember to always use the same release certificate for your app, and to store your key store in a secure place that no other person has access to it.
请务必始终为您的应用使用相同的发布证书,并将密钥库存储在其他人无法访问的安全位置。 Once you lost that certificate, you will not be able to publish updates of your app anymore!
丢失该证书后,您将无法再发布应用程序的更新!
If you like to install your release app on a device that already has installed a debug version of your app, you have to uninstall it first. 如果您希望在已安装应用程序调试版本的设备上安装发布应用程序,则必须先将其卸载。
If you like to verify what certificate an . 如果你想验证什么证书。 apk is signed with you can use the command
apk已签名,您可以使用该命令
jarsigner -verify -verbose -certs %file_name%
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.