简体   繁体   English

如何在APK for Google Play中设置CPU架构

[英]How to set CPU architecture in APK for Google Play

I have created an application for android in DELPHI XE8. 我在DELPHI XE8中创建了一个android应用程序。 If I want to publish it on Google Play and Google it shall be categorized device platforms ARMEABI, ARMEABI-V7A, MIPS and x86 while DELPHI XE8 (as well as all previous versions) only supports architecture ARMEABI-V7A. 如果我想在Google Play和Google上发布它,它应该是分类设备平台ARMEABI,ARMEABI-V7A,MIPS和x86,而DELPHI XE8(以及所有以前的版本)仅支持架构ARMEABI-V7A。

Do not come to me as a professional publishing application on Google Play that your application installs and someone will message to him that the platform is not supported. 不要作为Google Play上的专业发布应用程序来安装您的应用程序,并且有人会告诉他该平台不受支持。

Analysis APK installation package generated DELPHI XE8 I discovered that it is automatically generated for all of the above platforms. 分析APK安装包生成DELPHI XE8我发现它是为所有上述平台自动生成的。

Google on its website ( http://developer.android.com/google/play/filters.html ) recommends solutions using Android NDK - unfortunately, I still could not figure out how to do that ... 谷歌在其网站( http://developer.android.com/google/play/filters.html )推荐使用Android NDK的解决方案 - 不幸的是,我仍然无法弄清楚如何做到这一点......

As another solution is recommended to read and edit ANDROID.mk (unfortunately, this file does not generate DELPHI XE8). 因为建议另一种解决方案来读取和编辑ANDROID.mk(遗憾的是,此文件不会生成DELPHI XE8)。

The question is how to achieve that DELPHI XE8 compiled APK file only for ARMEABI-V7A ? 问题是如何只为ARMEABI-V7A实现DELPHI XE8编译的APK文件?

Anyone have any experience or a solution to this problem? 任何人都有这方面的经验或解决方案吗?

So I found a solution and it's very simple and plain: 所以我找到了一个解决方案,它非常简单明了:

Simply in DELPHI XE8 menu Project -> Deployment (section RELEASE CONFIGURATION - ANDROID PLATFORM) uncheck these items: 只需在DELPHI XE8菜单项目 - >部署(部分RELEASE CONFIGURATION - ANDROID PLATFORM)中取消选中以下项目:

  1. $(BDS)\\lib\\android\\Release\\x86\\ $(BDS)\\ LIB \\机器人\\发布\\ 86 \\
  2. $(BDS)\\lib\\android\\Release\\mips\\ $(BDS)\\ LIB \\机器人\\发布\\ MIPS \\
  3. $(BDS)\\lib\\android\\Release\\armeabi\\ $(BDS)\\ LIB \\机器人\\发布\\ armeabi \\

and let checked this item 并让我们检查这个项目

  1. Android\\Release\\ (remote path is library\\lib\\armeabi-v7a) Android \\ Release \\(远程路径是库\\ lib \\ armeabi-v7a)

perform Build application and then Deploy . 执行Build应用程序 ,然后部署

From now on Google Play displays only supported devices to the native platform ARMEABI-V7A. 从现在开始,Google Play仅支持原生平台ARMEABI-V7A支持的设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM