Skip to main content
Known Participant
November 27, 2015
Answered

X86 compilation not producing APK, no errors

  • November 27, 2015
  • 2 replies
  • 1035 views

I asked this on Flash Builder forum also, but suspecting I will not get an answer there.

I'm using Flash Builder and AIR 20 to produce x86 version of our app. I added -arch x86 and the compilation works just like with ARM, takes about the same time and then ends with no errors. The only difference is that with x86 there is no APK.

Any ideas what to do, how to debug?

This topic has been closed for replies.
Correct answer natural_criticB837

Have you tried running the adt compilation without FlashBuilder, pure command line style? We are publishing x86 builds all the time and it works just fine.

2 replies

Known Participant
October 18, 2016

Is there a way to compile and pack x86 and ARM versions in the same APK?

natural_criticB837
natural_criticB837Correct answer
Legend
December 2, 2015

Have you tried running the adt compilation without FlashBuilder, pure command line style? We are publishing x86 builds all the time and it works just fine.

kaveri2Author
Known Participant
December 2, 2015

Thanks for the tip. I haven't tried adt compilation because I don't know how it works. I thought Flash Builder should take care of it

Maybe I'll have to learn. Any good resources for it? Seemed really complicated as I don't even have Android SDK installed (only stuff bundled with Adobe AIR SDK).

natural_criticB837
Legend
December 3, 2015

There is the official documentation for adt, but it might be a bit rough to start with. We are using FlashDevelop and it comes with handy .bat file templates that prepare everything for you. This is what we are using:

call adt -package -target apk%APK_TARGET% %OPTIONS% %SIGNING_OPTIONS% "%OUTPUT%" "%APP_XML%" %FILE_OR_DIR% -extdir "../_extensions"

Where

%OPTIONS% = -arch x86

%SIGNING_OPTIONS%=-storetype pkcs12 -keystore %CERT_FILE% -storepass %CERT_PASS%

%APK_TARGET% = -captive-runtime

%FILE_OR_DIR% =-C bin .

The rest should be self explanatory. Hope it helps