简体   繁体   English

将Android应用程序(在Delphi FireMonkey中开发)部署到Google Play商店

[英]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: 有两种类型的证书可用于签署您的应用:

  • Debug certificate : to connect a debugger to your application, to be able to access your apps's private data directory 调试证书 :将调试器连接到您的应用程序,以便能够访问您应用程序的私有数据目录
  • Release certificate : to upload your app to an application store (like Google Play) 发布证书 :将您的应用上传到应用商店(如Google Play)

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 所以一定要确保

  • Your build configuration is set to " release " 您的构建配置设置为“ 发布
    在此输入图像描述
  • Your Target Plattform configuration is " Application-Store " 您的Target Plattform配置是“ Application-Store
    在此输入图像描述
  • You have provided an own certificate for this configuration in Project -> Options -> Deployment (make sure your profile is Release Configuration - Android Platform) 您已在项目 - >选项 - >部署中为此配置提供了自己的证书(确保您的配置文件是发布配置 - Android平台)
    在此输入图像描述

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.

相关问题 Play商店中的Android应用程序(在Firemonkey Delphi中开发)与您的设备不兼容 - Android application (developed in Firemonkey Delphi) in Play Store is not compatible with your device 使用Delphi FireMonkey将SQLite数据库部署到Android - Deploying SQLite database to Android with Delphi FireMonkey 不在Google Play商店中为开发的应用推出更新的最佳方法 - Best method of rolling out updates for a developed app not on the google play store Android-Google Play商店上的托管应用程序(在PhoneGap上开发) - Android - Hosting Application on Google Play Store (Developed on PhoneGap) Android kotlin开发的Play商店APP更新检查 - Android APP update check from play store developed by kotlin 将PhoneGap Build App部署到Google Play商店:多个键? - Deploying PhoneGap Build App to Google Play Store: Multiple Keys? 在没有 Play 商店帐户的设备上部署 Android 应用 - Deploying an Android app on devices without Play Store account 我应该在 Google Play 商店上发布在学习 android 时开发的项目吗? - Should I publish projects, developed while learning android, on google play store? Android 获取 Google Play Store 应用版本 - Android get Google Play Store app version 将 Google Play 中的 android 应用程序转换为三星商店 - Convert the android app in Google Play for Samsung Store
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM