airsdk / Adobe-Runtime-Support

Report, track and discuss issues in Adobe AIR. Monitored by Adobe - and HARMAN - and maintained by the AIR community.
201 stars 11 forks source link

create apk with android studio without adobe air sdk #1759

Open josquinet opened 2 years ago

josquinet commented 2 years ago

Good Morning. I am trying to create an apk with adobe air sdk from Harmann. It's giving me tremendous problems. I thought that maybe I can create my apk file with android studio and not use the adobe compiler.

Is it possible? Could you send me a tutorial to start doing it?

I can't find anything online!

Thank you very much.

NathanFitchett commented 2 years ago

I believe you can only do that with the supported IDE's such as Visual Studio Code and intellij etc. I am using Flash Develop currently.

ajwfrost commented 2 years ago

It is actually possible to use Android Studio but setting up the project is a bit of a challenge .. but if you use one of our recent SDKs and configure the KeepAndroidStudioOutput setting to true (in the AIR SDK lib/adt.cfg file), then it would generate a folder "AndroidStudioProject" that you can open up and then use that for packaging.

If you update your ActionScript, you'd then need to compile it to SWF using your standard method and copy this into the app/assets folder, and can re-generate the APK from there.

It gets a bit more challenging with ANEs etc but generally once they're set up you can then keep that project folder intact. Any time you run the AIR "ADT" tool again to package up the project, it will re-generate the AndroidStudioProject (any changes you make would be lost). Ultimately what you need is (a) the native libraries for AIR, (b) the runtime classes for AIR (as a jar file), (c) for your main activity to inherit from the AIRAppEntry class. Best thing is to just try with that configuration setting and see how the project looks...

josquinet commented 2 years ago

I apologize if these are very basic questions:

matrix3d commented 2 years ago

1 assets in ouput folder 2 update as3 use text editor 3 packageing apk,use android studio ide

@josquinet