Unspecified error when compiling to Android

fernbust

  • Posts: 4
So I've been trying all day to test my game on Android.

I've been downloading android sdk, fixing errors that prevented me from downloading android sd, downloading java jdk, and everything. And finally, when nothing else could happen, after a while compilling, an unspecified error appears only giving me the log to ask for this error on the forums.
So here I am.

Thanks a lot for the help in advance

« Last Edit: February 07, 2019, 01:15:54 am by fernbust »

rob1221

  • *
  • Posts: 9349
Could you post your logs?

fernbust

  • Posts: 4
Yes, sorry, I thought I had posted them

rob1221

  • *
  • Posts: 9349
It looks like it fails after unzipping Gradle.  I don't think I've seen that error before.  Since there is no specific error message, could you try opening the command line at:
C:\Users\ferra\AppData\Roaming\Stencyl\stencylworks\games-generated\SD\Export\android\bin
And then type:
./gradlew assembleDebug --stacktrace

fernbust

  • Posts: 4
This message appears:

ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

rob1221

  • *
  • Posts: 9349
If you have not already replaced sw.jar to fix the preferences bug then check this post:
http://community.stencyl.com/index.php/topic,58014.msg305520.html#msg305520

After that, go to File > Preferences > Tools and make sure the NDK, SDK, and JDK paths are set.

fernbust

  • Posts: 4
Actually I already did that yesterday...
That's what allowed me to download the sdk and ndk and get to the error I have now.

rob1221

  • *
  • Posts: 9349
I don't know if this will provide any more information, but try Run > Run App in Debug Mode.  Then when that is finished, attach the new log file.