Search code examples
androiddelphigoogle-playapkdelphi-xe8

How to set CPU architecture in APK for Google Play


I have created an application for android in DELPHI XE8. 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.

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.

Analysis APK installation package generated DELPHI XE8 I discovered that it is automatically generated for all of the above platforms.

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 ...

As another solution is recommended to read and edit ANDROID.mk (unfortunately, this file does not generate DELPHI XE8).

The question is how to achieve that DELPHI XE8 compiled APK file only for ARMEABI-V7A?

Anyone have any experience or a solution to this problem?


Solution

  • 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:

    1. $(BDS)\lib\android\Release\x86\
    2. $(BDS)\lib\android\Release\mips\
    3. $(BDS)\lib\android\Release\armeabi\

    and let checked this item

    1. Android\Release\ (remote path is library\lib\armeabi-v7a)

    perform Build application and then Deploy.

    From now on Google Play displays only supported devices to the native platform ARMEABI-V7A.