Tryin to create Android build for Intellij Flash/Air Project


I'm finally trying to switch over to intelliJ from FlashDevelop and I can't seem to get a working apk for the life of me. All other builds work, including Android emulation and a desktop build.

It shouldn't be hard, all I want to do is to build the swf file into the bin folder (where many other art assets lie), and then package the entirety of the bin folder into an apk in the dist folder. But it outputs the following: showing all sorts of crazy directories. I've screenshot some of my project settings and build configuration.

Cannot run program "C:\Program Files\JetBrains\IntelliJ IDEA 2022.2.1\jbr\bin\java.exe" (in directory "C:\Users\kelso\OneDrive\Documents\idlearmy\dist\bin\bin"): CreateProcess error=267, The directory name is invalid  ADT command line: C:\Program Files\JetBrains\IntelliJ IDEA 2022.2.1\jbr\bin\java.exe -Dapplication.home=C:\air -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -jar C:\air\lib\adt.jar -package -target apk -storetype PKCS12 -keystore C:\Users\kelso\AppData\Roaming\JetBrains\IntelliJIdea2022.2\plugins\flex\lib\temp_keystore.p12 -storepass keystore_password C:\Users\kelso\OneDrive\Documents\idlearmy\dist\bin\bin\idlearmy.apk C:\Users\kelso\OneDrive\Documents\idlearmy\dist\bin\idlearmy-android-descriptor.xml -C C:\Users\kelso\OneDrive\Documents\idlearmy\dist\bin idlearmy.swf -C C:\Users\kelso\OneDrive\Documents\idlearmy bin




Here is the adt command that works fine to build my apk

adt -package -target apk -storetype PKCS12 -keystore C:\Users\kelso\AppData\Roaming\JetBrains\IntelliJIdea2022.2\plugins\flex\lib\temp_keystore.p12 -storepass keystore_password dist\idlearmy.apk idlearmy-android-descriptor.xml bin


I guess I can just run this manually, but if I'm going to be building my apks manually I don't know what I'm buying intellij for.


Hi - see if it helps to move your project out of the OneDrive-controlled directory into a simple folder on the local drive and change the associations in the IDE accordingly. There is a number of known issues related to OneDrive clashing with the IDE over I/O and other file system operations.


Please sign in to leave a comment.