OPENFL Android build fails : you need to run nme setup android

160 views
Skip to first unread message

whitetigle

unread,
Oct 11, 2013, 5:40:16 AM10/11/13
to haXe
Hi all
I desperately want to build my app on android target however I keep getting the following error when I try to build my app :
"you need to run nme setup android."

So I used openfl setup android, downloaded everything and checked paths 2 or 3 times.

I also checked that everything was installed including :
  • Android SDK
  • Android SDK Platform-tools (via SDK Manager)
  • Android API 8 (via SDK Manager)
  • Android NDK
  • Apache Ant
  • Java JDK
in my .hxcpp_config.xml I have the following lines :

        <set name="ANDROID_SETUP" value="true" />
        <set name="ANDROID_NDK_ROOT" value="C:\Development\Android NDK" />
        <set name="ANT_HOME" value="C:\Development\Apache Ant" />
        <set name="ANDROID_SDK" value="C:\Development\Android SDK" />
        <set name="JAVA_HOME" value="c:\Program Files\Java\jdk1.7.0_40" />

So what does the error message means : what is really missing (because I can't know just from this message what's going on...)

Thanks !

François




-- 
ThinkSlow - 
cross-platform gaming experiments

( who ? why ? what ? ) -> http://www.thinkslow.net
( how ? when ? ) -> http://blog.thinkslow.net

whitetigle

unread,
Oct 11, 2013, 5:44:15 AM10/11/13
to haXe
as a side infor her's what i got when i run openfl build command with -verbose flag :

C:\Users\whitetigle\Documents\workspace\DisplayingABitmap>openfl build android -verbose
OpenFL Command-Line Tools (1.0.10)

Initializing project...
Using project file: C:\Users\whitetigle\Documents\workspace\DisplayingABitmap/project.xml
Reading HXCPP config: C:\Users\whitetigle\.hxcpp_config.xml
Using target platform: ANDROID

Running command: UPDATE
Error: You need to run "nme setup android" before you can use the Android target

whitetigle

unread,
Oct 11, 2013, 5:50:01 AM10/11/13
to haXe
could it be related to having a x64 version of the JDK ?

whitetigle

unread,
Oct 11, 2013, 6:33:29 AM10/11/13
to haXe
ok, so I had a look inside AndroidPlatform.hx in openfl-tools...
The error message : "You need to run "nme setup android" before you can use the Android target" is linked to a missing ANDROID_SETUP var.
So I checked again my .hxcpp_config.xml and found an error in the <sections> tree !
So this problem is solved. It now compiles :)

But it could be interesting to have a better error message because digging into the code is not funny. Or having a check on .hxcpp_config.xml.
My two cents :)


Le 11/10/2013 12:15, whitetigle a écrit :
Le 11/10/2013 12:10, whitetigle a écrit :
Downloaded and installed 32bits version. Still no luck.
Reply all
Reply to author
Forward
0 new messages