[SOLVED] Error building on Android on Stencyl b10557

delifood1

  • *
  • Posts: 24
Hello I've been having issues exporting an app android on Stencyl b10557. This is a beta release version so I think that might be apart of the problem but here are my logs.

« Last Edit: July 09, 2020, 04:04:19 pm by delifood1 »

Luyren

  • *
  • Posts: 2334
I recommend you update to the most recent private build and try again. If you still have a problem, post a new set of logs.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

Justin

  • *
  • Posts: 4504
Seems like it's a problem with using a Java 13 JDK. I've filed this in the issue tracker.

http://community.stencyl.com/index.php?issue=1868.0

If you use a Java 8 JDK, it should work.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

delifood1

  • *
  • Posts: 24
I changed it from b10557 to the latest build which is 10575 and changed the JDK from 13 to 8. Still the same issue.

Justin

  • *
  • Posts: 4504
While it's the same issue in terms of the game not being built, if you look at what's actually happening, it's a different problem altogether. This means we're making progress!

From the first log file:
Code: [Select]
2020-06-30 21:41:39,044 INFO  [Thread-32] stencyl.sw.util.StreamGobbler: [haxelib] * What went wrong:
2020-06-30 21:41:39,044 INFO  [Thread-32] stencyl.sw.util.StreamGobbler: [haxelib] Could not compile settings file '/Users/Puji/stencylworks/games-generated/Ecothots5 tutorial screen/Export/android/bin/settings.gradle'.
2020-06-30 21:41:39,045 INFO  [Thread-32] stencyl.sw.util.StreamGobbler: [haxelib] > startup failed:
2020-06-30 21:41:39,045 INFO  [Thread-32] stencyl.sw.util.StreamGobbler: [haxelib]   General error during semantic analysis: Unsupported class file major version 57
2020-06-30 21:41:39,045 INFO  [Thread-32] stencyl.sw.util.StreamGobbler: [haxelib]   java.lang.IllegalArgumentException: Unsupported class file major version 57

Based on my suggestion, you switched to JDK 8, and this error now no longer appears in the log.

From the second log file:
Code: [Select]
2020-07-05 13:28:06,519 INFO  [Thread-11] stencyl.sw.util.StreamGobbler: [haxelib] :deps:purchases:compileReleaseAidl (Thread[Execution worker for ':' Thread 2,5,main]) started.
2020-07-05 13:28:06,520 INFO  [Thread-11] stencyl.sw.util.StreamGobbler: [haxelib] Starting process 'command '/Users/Puji/stencylworks/android-sdk/android-sdk-macosx/build-tools/29.0.3/aidl''. Working directory: /Users/Puji/stencylworks/games-generated/Ecothots5 tutorial screen/Export/android/bin/deps/purchases Command: /Users/Puji/stencylworks/android-sdk/android-sdk-macosx/build-tools/29.0.3/aidl -p/Users/Puji/stencylworks/android-sdk/android-sdk-macosx/platforms/android-29/framework.aidl -o/Users/Puji/stencylworks/android-builds/Ecothots5 tutorial screen/purchases/generated/aidl_source_output_dir/release/compileReleaseAidl/out -I/Users/Puji/stencylworks/games-generated/Ecothots5 tutorial screen/Export/android/bin/deps/purchases/src/release/aidl -I/Users/Puji/stencylworks/games-generated/Ecothots5 tutorial screen/Export/android/bin/deps/purchases/src -I/Users/Puji/stencylworks/android-builds/Ecothots5 tutorial screen/extension-api/intermediates/aidl_parcelable/release/compileReleaseAidl/out -d/var/folders/ql/w4pwvsl16xx8m3svf0pb06x80000gp/T/aidl5947440563656987567.d /Users/Puji/stencylworks/games-generated/Ecothots5 tutorial screen/Export/android/bin/deps/purchases/src/com/android/vending/billing/IInAppBillingService.aidl
2020-07-05 13:28:06,520 INFO  [Thread-11] stencyl.sw.util.StreamGobbler: [haxelib] > Task :deps:purchases:compileReleaseAidl FAILED

Unfortunately the exact cause of the failure is omitted from the log here, but I have a hunch. If you downloaded the android tools with a Stencyl version prior to private build 10538, it may not have installed them properly. Specifically, the file at "/Users/Puji/stencylworks/android-sdk/android-sdk-macosx/build-tools/29.0.3/aidl" may be missing the "executable" permission.

If this is the problem, then you should be able to fix it by redownloading part of the android SDK. Preferences > Tools > Download Android Tools, and redownload the "Build Tools" component.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

delifood1

  • *
  • Posts: 24
SOLVED:

Basically I had the lowest API version at 4.4 (10) when it needed to be at API version 19. That solved my build issue!