Compiling error - UPDATE Android SDK? -HELP

megagewinnspiel

  • Posts: 396
Hey guys, long time no see!

I have a pretty big problem with my Stencyl right now since I can't test my game on any actual device. Everytime I try it, Stencyl gives me this error and tells me I should update the Android SDK even though I have already done so multiple times:
Code: [Select]
2016-03-03 13:18:09,871 DEBUG [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Running command: arm-linux-androideabi-g++ -olibApplicationMain-v7.so -frtti -nostdlib -Wl,-shared,-Bsymbolic -Wl,--no-undefined -Wl,-z,noexecstack --sysroot=D:\Stencyl\stencylworks\android-sdk/android-ndk-r7b//platforms/android-9/arch-arm -LD:\Stencyl\stencylworks\android-sdk/android-ndk-r7b//platforms/android-9/arch-arm/usr/lib "@D:/Stencyl/stencylworks/games-generated/Anime Versus/Export/android/obj/obj/android-v7/all_objs" D:\Stencyl\stencylworks\android-sdk/android-ndk-r7b//sources/cxx-stl/gnu-libstdc++/libs/armeabi/libgnustl_static.a D:\Stencyl\stencylworks\android-sdk/android-ndk-r7b//platforms/android-9/arch-arm/usr/lib/crtbegin_so.o D:\Stencyl\stencylworks\android-sdk/android-ndk-r7b//toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a D:\Stencyl\stencylworks\android-sdk/android-ndk-r7b//platforms/android-9/arch-arm/usr/lib/libc.so D:\Stencyl\stencylworks\android-sdk/android-ndk-r7b//platforms/android-9/arch-arm/usr/lib/libm.so -llog -ldl
2016-03-03 13:18:58,025 DEBUG [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Running command: arm-linux-androideabi-strip libApplicationMain-v7.so
2016-03-03 13:18:58,159 DEBUG [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Copying file: Export/android/obj/libApplicationMain-v7.so -> Export/android/bin/libs/armeabi/libApplicationMain.so
2016-03-03 13:18:58,175 DEBUG [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Changing directory: Export/android/bin
2016-03-03 13:18:58,175 DEBUG [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Running command: D:\Stencyl\stencylworks\android-sdk/apache-ant//bin/ant debug
2016-03-03 13:18:59,109 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe] Buildfile: D:\Stencyl\stencylworks\games-generated\Anime Versus\Export\android\bin\build.xml
2016-03-03 13:19:00,383 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe] -set-mode-check:
2016-03-03 13:19:00,385 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe] -set-debug-files:
2016-03-03 13:19:00,385 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe] -check-env:
2016-03-03 13:19:00,409 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe]  [checkenv] Android SDK Tools Revision 22.0.0
2016-03-03 13:19:00,409 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe]  [checkenv] Installed at D:\Stencyl\stencylworks\android-sdk\android-sdk-windows
2016-03-03 13:19:00,409 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe] -setup:
2016-03-03 13:19:00,409 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe]      [echo] Project Name: Anime Versus
2016-03-03 13:19:00,478 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe]   [gettype] Project Type: Application
2016-03-03 13:19:00,483 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe] -set-debug-mode:
2016-03-03 13:19:00,483 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe] -debug-obfuscation-check:
2016-03-03 13:19:00,484 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe] -pre-build:
2016-03-03 13:19:00,484 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe] -build-setup:
2016-03-03 13:19:00,619 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe] [getbuildtools] Using latest Build Tools: 19.0.0
2016-03-03 13:19:00,620 INFO  [Thread-37] stencyl.sw.util.StreamGobbler: [haxelib.exe]      [echo] Resolving Build Target for Anime Versus...
2016-03-03 13:19:00,628 ERROR [Thread-37] stencyl.sw.util.dg.MessageDialog: Encountered errors while building your game. - Check your logs and post them to the forums.
2016-03-03 13:19:00,649 DEBUG [pool-1-thread-12] stencyl.sw.util.Util: Process 'haxelib.exe' exited with code: 1
2016-03-03 13:19:00,649 ERROR [pool-1-thread-12] stencyl.sw.io.write.resource.HXWriter: Failed: Running Android. (Return code: 1)
2016-03-03 13:19:00,649 ERROR [pool-1-thread-12] stencyl.sw.util.dg.MessageDialog: Encountered errors while building your game. - Check your logs and post them to the forums.

Also.... There is a Typo in the Error Message:

MattHutchings

  • Posts: 224
Hi there,
I had this same issue not long ago. I tried exporting my game, then uninstalling Stencyl and reinstalling it again then importing my game back then installed Android SDK. This for some reason fixed it for me.

Hope this helps,
Matt.

SquarePug

  • Posts: 148
This is strange. Ive just experienced the exact same thing now. Why is this suddenly happening?
Website: Satch
Twitter: @satchapps.

SquarePug

  • Posts: 148
I managed to sort mine pretty quickly. Not sure which bit of what I did sorted it but here is what I did.

 - closed stencyl
 - uninstalled the app from my device
 - reopened stencyl and changed the 'android target version' to the next one (cant remember which, I just picked any)
 - tried it on the device and it worked.
Website: Satch
Twitter: @satchapps.

megagewinnspiel

  • Posts: 396
@SquarePug
That worked for me to after setting the Target Version to "API 16".
Seems that Stencyl has problems compiling to the newer Android Versions...

Neotron

  • Posts: 475
I think there is still problem compiling to newer API versions because I cannot figure out how to compile api 25+

« Last Edit: January 17, 2017, 10:48:30 am by Neotron »