How to build for x86?

I want to run my app using an AVD.
The AVD is x86 but my app only supports armaebi-v7a.
If i add:
APP_ABI := armeabi-v7a x86
it doesnt seem to change anything.

Depends which cocos version and where u adding this, but this is right -

In most cases u should put this value in Application.mk and gradle - in some cases u also need to use SPLIT in gradle to have only needed architecture libs .

But overall you are right direction, just curios how u checking if it support x86 or not.

An APK is just a ZIP file. If you unpack it and you see within the lib folder x86 you know that it will work. Or you open it within Android Studio 3.1 (and above): Build → Analyse APK

analyse_apk

1 Like

Android Studio tells me it doesnt support x86 when i want to run in on an AVD.
sas34gdfg6h
Using cocos2dx 3.17

In a new cocos2d-x 3.17 project you need only to change the proj.android/gradle.properties file. In there you find the PROP_APP_ABI properties and a description how to set it. It’s really easy to configure.