problem with my android SDK

koremi

  • Posts: 5
Every time I try to publish/test my game in android it says "Android SDK is required" I downloaded it, veried all files. Still doesnt work. Here are my logs

merrak

  • *
  • Posts: 2738
I'm not sure why it is not finding the Android SDK. If you aren't getting any responses on the forum, I would log into the Discord chat to ask.

Justin

  • *
  • Posts: 4714
Not sure if you ever took Merrak up on his advice and asked on Discord or not. Posting here in case you're still having trouble with this, and for anybody else who finds this post.

The "The Android SDK is required" message actually shows if any of the Android SDK, Android NDK, or the JDK is missing. If you went through the Android Tools download dialog within Stencyl, you probably have the Android SDK and Android NDK, but not the Java JDK.

I'd recommend you download the latest private release of Stencyl for a few reasons:
1) Ability to target more recent Android versions, which you'll need if you want to publish to the Play Store.
2) Updates to the built-in purchases and Admob support (if you use them). This functionality won't work without the updates in the latest private releases.
3) Important bug fixes, such as prevention of a black screen on startup for users of more recent Android versions.
4) The version of the JDK used to run Stencyl is now packaged with everything it needs to build Android games. So if you don't specify an external JDK, that one will be used by default. This likely would have got you past the error dialog in this case.

As a subscriber, you have access to the private builds which you can find here: https://community.stencyl.com/index.php/topic,13789.0.html

As a subscriber, you additionally have access to the Help Desk section of the forum, as well as the #subscribers channel on our Discord, which both tend to receive quicker replies.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

koremi

  • Posts: 5
We already figured  out it was missing the JDK. We downloaded open JDK 12, 15 , and 19. and are currently using 15. We upgraded to the paid version. Now we are having problems running our app on Android. The game APK worked before the upgrade. Now any game we export in Android Brings up the start Icon then the screen flips upside down and it exits the app without closing it. When we try testing the game in stencyl It complies but doesn't load. I think something got screwed up on the install. We have redownloaded and reinstalled, stencyl, visual studio, SDK, NDK and JDK. Same thing. When I run it in debug in Android Studio it says its Missing Runners. But I dont know what that means??

« Last Edit: February 23, 2023, 10:08:55 am by koremi »

koremi

  • Posts: 5

Justin

  • *
  • Posts: 4714
Oh, you're Tudry on Discord, right?

The logs you posted only include info about the build process, not anything after the game started playing.

To get the greatest amount of information in the logs related to playing the game itself, try one of the following:

a) Run the game from Stencyl, with the Run > View logs through Game Controller option disabled, and the game being played in debug mode (by running from Run > Run App in Debug Mode > Android (Debug)).

b) Run the game from Android Studio. It sounds like you've tried this already. If you want to try this again, can you share the error you got last time? I'm not familiar with a "Missing Runners" error and I'm not sure what that could mean. Seeing it for myself might help.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

koremi

  • Posts: 5
Ya i'm Tudry, It doesn't run, no error message. I didn't remove anything from the log. Everything worked before the upgrade. I was trying to upload to Google play.  But my version didn't have AAB support. Jon told me where to get the paid version and I installed it. ever since, I cant update visual studio threw Stencyl, it never finds the files. But I did threw visual studio.  My windows version still works. But Nothing Android. I just starteed with Android Studio, And I dont know what i'm doing yet. Here are the messages.

« Last Edit: February 24, 2023, 09:05:46 am by koremi »

koremi

  • Posts: 5
PROBLEM SOLVED
Windows defender was blocking network access. Changed it, Stencyl downloaded a ton of missing files. Now we are back up and running. YAY!!