error to complie in android

Apamaster

  • Posts: 129
error compiling on android gives me this log and obviously it doesn't compile

brianheagney

  • Posts: 18
Oh my gosh I was JUST about to post here for my own android error. I have been building android projects for the last 6 years using Stencyl, and moving to 4.0.1 AND 4.0.2 have both resulted in always failing to compile for android.
I have updated to the latest Java and I *think* I have the proper android installed (I tried both 28 and 29 on separate occasions).

I'm hoping someone answers your question!!!!!!!!!

(attaching my logs too, just in case)

Luyren

  • *
  • Posts: 2812
Both of you have to follow the instructions here, I think: http://community.stencyl.com/index.php/topic,59888.0.html
I might be mistaken, but I believe these have been fixed in the private release already, but we haven't had a public release with that fix yet.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

Apamaster

  • Posts: 129
edit in stencyl florder archive build.gradle change http for https and complie...... and jaja  and now how do I test it on an android?

Luyren

  • *
  • Posts: 2812
You said it compiled, so did it test or not? I hope you changed all of the necessary files as well.
Either way, read the stencylpedia article to learn how to test on android: http://www.stencyl.com/help/view/setup-android
After you go through that, if you still have problems reply to this thread.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

brianheagney

  • Posts: 18
Thank you Luyren!
Yes! Following that web page was the trick! Thank you so much!

Apamaster, there might be two reasons you still don't know how to test for android:
1. You don't have a proper account to build to android (you have to pay for that)
or
2. You're trying to launch on your device, and you haven't set up your phone properly. I have to google how to do that every time I get a new phone. Google "adb driver setup".

Other than that, are you still getting errors? If so, are you struggling to get the proper java dev kit? I had an issue with mine, since I USED to follow the open source links from Stencyl, and there isn't the latest jdk build there yet. I had to actually follow the web page that pops up and create an oracle account to download the latest JDK build.

OR, do you need to change your android target and minimum settings?

Luyren

  • *
  • Posts: 2812
1. You don't have a proper account to build to android (you have to pay for that)
For the record: you don't need to be a subscriber to test on your device. You only need it to publish the game for Android or iOS.
Also I was able to export to HTML5 with an open JDK, without going through the oracle accoutn and whatnot. I don't know if that's the same one needed for android.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

Apamaster

  • Posts: 129
compile well it takes a long time to compile, but I thought it was running in a window. I found the apk to install, the weighs 30mg in html5 weighs 3mg amazing.