Building apk for armeabi-v7a and x86

Hi, I have a game and I build differents apks ( one for armeabi-v7a and another one for x86) to upload for the google play in order to reduce the apk size, It was working perfect, but since I added a plugin for google play services ( CloudOnce) this doesnt work anymore

If I select only 1 architecture( x86 for example) , the size of the apk is correct for only have x86 architecture, but google play console says that the apk support both ( when It is building only x86)

Since this problems started when I added the plugin, I supposed that since the plugin support both architecture, it is overriding the unity configuration

From this link:

I suppose that the plugin is made with the NDK and overriding my target? How I can target the correct architecture?

Unity version 5.5.0f3

same problem, unsolved yet

Not sure if it helps, but you could specify architecture in gradle script, https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.NdkOptions.html see
Set<String> abiFilters, not sure in what form you’re adding your plugin, but it probably contains x86 and armeabi-v7a files inside, if you don’t specify abiFilters, gradle probably puts both libraries when packaging apk file.

1 Like