将 android 应用程序限制为仅限 armv7 设备

将 android 应用程序限制为仅限 armv7 设备

问题描述:

我现在正在开发一款在 ARM v7 设备上运行良好的游戏,但在 ARM v6 设备上存在问题.有没有办法限制只能在 ARM v7 设备上玩游戏?

I am now developing a game which runs fine on the ARM v7 devices, but there are problems with the ARM v6 devices. Is there a way to limit the game only for ARM v7 devices?

如果你在 Application.mk 中设置 APP_ABI 只生成 ARM v7 (armeabi-v7a) 兼容库,Android Market/Google Play 应过滤非 ARM v7 设备,使其无法看到您的应用程序.

If you set APP_ABI in Application.mk to just produce ARM v7 (armeabi-v7a) compatible libraries, Android Market / Google Play should filter non ARM v7 devices from seeing your application.

APP_ABI := armeabi-v7a

如果您的应用程序中没有本机部分,您仍然可以创建一个简单的存根库以在 Google Play 中进行过滤.

If you don't have a native part in your application, you can still create a simple stub library to get filtering in the Google Play.