3
« on: March 06, 2019, 04:30:32 am »
Hello! I'm trying to compile/publish to Android on Stencyl 4.0.1 and I'm getting this error -> "Failed: Running Android. (Return code: 1)"
I have compiled to Android before in 3.5 so I know the basics and think I have set up everything right... but something is apparently missing...? (It works fine to compile to Android in both Unity and Android Studio.)
I have removed my old Android SDK folders from the stencylworks Android-SDK folder, since I now have the Android SDK installed in an other location. ( I don't know if I might have removed something Stencyl related when I did that, but I guess not. )
I might also have deleted some few other folders in the stencylworks folder, since I removed some folders 'that did not sound so important' like the folder 'games-generated', 'android-builds' and some folder named something like ~'Temp' or ~'Logs' ? I did this a long time ago while not using Stencyl for a while, to save space on my OneDrive... Yesterday I heard that I shall NOT touch the stencylworks folder! I haven't deleted it but I realise that I do have messed with it... I guess it could be good for you to know if that might could cause this compiler error?
Please help. Here's a snippet from the log, and full logs are attached.
Thanks in advance.
2019-03-06 12:17:48,054 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Running command: BUILD
2019-03-06 12:17:48,055 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Copying library file: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/lime/lime/ndll/Android/liblime-v7.so -> Export/android/bin/app/src/main/jniLibs/armeabi-v7a/liblime.so
2019-03-06 12:17:48,056 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Creating directory: Export/android/bin/app/src/main/jniLibs/armeabi-v7a
2019-03-06 12:17:48,102 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Running command: haxe Export/android/haxe/release.hxml -D android -D PLATFORM=android-14 -D HXCPP_ARMV7
2019-03-06 12:17:50,417 DEBUG [AWT-EventQueue-0] stencyl.sw.app.App: Action: Log Viewer
2019-03-06 12:18:06,363 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Changing directory: Export/android/obj
2019-03-06 12:18:06,363 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Running command: haxelib run hxcpp Build.xml -options D:\OneDrive\stencylworks\games-generated\MischiefLounge_02c\Export\android\obj\Options.txt -Dandroid -DPLATFORM=android-14 -DHXCPP_ARMV7 -verbose
2019-03-06 12:18:06,542 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] hxcpp (Haxe C++ Runtime Support) (4.0.0)
2019-03-06 12:18:06,542 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Using makefile: Build.xml
2019-03-06 12:18:06,542 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Reading HXCPP config: D:\OneDrive\stencylworks\prefs/.hxcpp_config.xml
2019-03-06 12:18:06,542 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] No specified toolchain
2019-03-06 12:18:06,543 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/toolchain/setup.xml
2019-03-06 12:18:06,543 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Parsing include: D:\OneDrive\stencylworks\prefs/.hxcpp_config.xml (section "vars")
2019-03-06 12:18:06,543 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/toolchain/finish-setup.xml
2019-03-06 12:18:06,546 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Parsing makefile: D:\OneDrive\stencylworks\games-generated\MischiefLounge_02c\Export\android\obj\Build.xml
2019-03-06 12:18:06,742 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/build-tool/BuildCommon.xml
2019-03-06 12:18:06,742 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/toolchain/haxe-target.xml
2019-03-06 12:18:06,757 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/src/hx/libs/regexp/Build.xml
2019-03-06 12:18:06,759 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/src/hx/libs/std/Build.xml
2019-03-06 12:18:06,760 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/toolchain/android-toolchain.xml
2019-03-06 12:18:06,762 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Using Android NDK root: C:/Developer_SDKs/android-ndk-r19b
2019-03-06 12:18:06,762 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Detected Android NDK r19
2019-03-06 12:18:06,762 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Detected Android toolchain: arm-linux-androideabi-4.9
2019-03-06 12:18:06,763 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Detected Android host: windows-x86_64
2019-03-06 12:18:06,763 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Using Android NDK platform: android-14
2019-03-06 12:18:06,763 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Adding path: C:/Developer_SDKs/android-ndk-r19b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin
2019-03-06 12:18:06,763 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Parsing include: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/toolchain/gcc-toolchain.xml
2019-03-06 12:18:06,765 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Parsing compiler: C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/toolchain/common-defines.xml
2019-03-06 12:18:06,768 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Parsing include: D:\OneDrive\stencylworks\prefs/.hxcpp_config.xml (section "exes")
2019-03-06 12:18:06,769 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Using compile threads: 7
2019-03-06 12:18:06,770 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Creating directory: D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj
2019-03-06 12:18:06,771 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Creating directory: D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj/android-v7
2019-03-06 12:18:06,855 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Creating directory: D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj/android-v7/__pch
2019-03-06 12:18:06,856 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Creating directory: D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj/android-v7/__pch/haxe
2019-03-06 12:18:06,857 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Creating PCH directory "D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj/android-v7/__pch/haxe"
2019-03-06 12:18:06,858 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Precompile D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj/android-v7/__pch/haxe/hxcpp.h.gch
2019-03-06 12:18:06,859 DEBUG [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] - Running command: arm-linux-androideabi-g++ -Iinclude --sysroot=C:/Developer_SDKs/android-ndk-r19b/platforms/android-14/arch-arm -IC:/Developer_SDKs/android-ndk-r19b/sources/cxx-stl/gnu-libstdc++/4.9/include -IC:/Developer_SDKs/android-ndk-r19b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -DHXCPP_ARMV7 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=331 "-IC:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/include" -Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -Wno-overflow "-D_LINUX_STDDEF_H " -Wno-psabi -DHXCPP_CPP11 -DHXCPP_ARMV7 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -fomit-frame-pointer -fexceptions -fno-strict-aliasing -finline-limit=10000 -DANDROID=ANDROID -DHX_ANDROID -DHXCPP_ANDROID_PLATFORM=14 -Wa,--noexecstack -O2 -DNDEBUG -c -Wno-invalid-offsetof -frtti -std=c++11 -o D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj/android-v7/__pch/haxe/hxcpp.h.gch "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/include/hxcpp.h"
2019-03-06 12:18:06,881 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] 'arm-linux-androideabi-g++' is not recognized as an internal or external command,
2019-03-06 12:18:06,881 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] operable program or batch file.
2019-03-06 12:18:06,883 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] Error: Error while running command
2019-03-06 12:18:06,883 INFO [Thread-135] stencyl.sw.util.StreamGobbler: [haxelib.exe] arm-linux-androideabi-g++ -Iinclude --sysroot=C:/Developer_SDKs/android-ndk-r19b/platforms/android-14/arch-arm -IC:/Developer_SDKs/android-ndk-r19b/sources/cxx-stl/gnu-libstdc++/4.9/include -IC:/Developer_SDKs/android-ndk-r19b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi/include -DHXCPP_ARMV7 -DHXCPP_VISIT_ALLOCS -DHXCPP_API_LEVEL=331 "-IC:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/include" -Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -Wno-overflow "-D_LINUX_STDDEF_H " -Wno-psabi -DHXCPP_CPP11 -DHXCPP_ARMV7 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -fomit-frame-pointer -fexceptions -fno-strict-aliasing -finline-limit=10000 -DANDROID=ANDROID -DHX_ANDROID -DHXCPP_ANDROID_PLATFORM=14 -Wa,--noexecstack -O2 -DNDEBUG -c -Wno-invalid-offsetof -frtti -std=c++11 -o D:/OneDrive/stencylworks/games-generated/MischiefLounge_02c/Export/android/obj/obj/android-v7/__pch/haxe/hxcpp.h.gch "C:/Program Files (x86)/Stencyl/plaf/haxe/lib/hxcpp/hxcpp/include/hxcpp.h"
2019-03-06 12:18:06,923 DEBUG [pool-1-thread-15] stencyl.sw.util.Util: Process 'haxelib.exe' exited with code: 1
2019-03-06 12:18:06,924 ERROR [pool-1-thread-15] stencyl.sw.app.tasks.buildgame.GameBuilder: Failed: Running Android. (Return code: 1)
2019-03-06 12:18:06,924 ERROR [pool-1-thread-15] stencyl.sw.util.dg.MessageDialog: Encountered errors while building your game.: Check your logs and post them to the forums. - Please describe what you have been doing. Be as specific as possible.