Android Build Failed - Post Logs

Wasanni

  • *
  • Posts: 136
I've installed Stencyl on a new pc and I'm using the same JDK 8 and I installed the android SDK/NDK. Minimum Android Version is 4.4 kitkat and target is Android 10 API 29. Not sure why I'm getting this error. Using the latest Stencyl private release (2 weeks ago).

Tried searching the forum but I rarely find what I am looking for. Anyone know what the issue is?

Justin

  • *
  • Posts: 4716
http://community.stencyl.com/index.php?issue=1751.0

See the linked thread. This is already fixed, but unfortunately the build server has been disabled the past few days. I'll pull it back up again and issue a new build soon. For now, you can follow the given instructions to get it up and running again.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

Wasanni

  • *
  • Posts: 136
Thanks Justin! I tried the new build from today. Does it include the fix for this issue? I don't seem to be getting the same error but the app doesn't pop up on my device after compiling and if I open it manually it hasn't been updated to the latest version of my app.

Justin

  • *
  • Posts: 4716
It looks like adb (the android tool used to communicate with devices) isn't detecting your device. Since it's a new PC, perhaps you haven't installed the necessary drivers yet.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

Wasanni

  • *
  • Posts: 136
I noticed I was in charge only mode and not in data transfer so I switched but it still isn't working. Would you mind taking a quick look at the new logs if/when you get a minute? I've set everything up the same way so I don't know why it wouldn't work. I can see my device internal storage and sd card.

Justin

  • *
  • Posts: 4716
Perhaps you can try following some of the advice here, regarding android settings.

https://stackoverflow.com/questions/22450478/android-device-not-recognized-by-adb

You can make it a little easier to see if the device is detected without recompiling the game, by going in Stencyl to File > Preferences > Features, and enable "Device Manager". Then every time you open Stencyl, and again every 30 seconds after that, it checks if there have been any changes to what devices you have connected.

If it sees the device, it'll print a message like this in the log viewer.

Code: [Select]
2020-02-26 13:07:19,813 INFO  [AWT-EventQueue-0] stencyl.sw.platform.android.AndroidDeviceManager (AndroidDeviceManager.java:scanConnectedDevices:106): Found new device:
LGMV300Kf6761c6f
LGE LGM-V300K, SDK 28

If the device is seen when Stencyl first starts, it'll also place an extra menu item in the Run menu. (Not great, but that's why this is a beta feature).

Code: [Select]
Run > Android Device > (Device Name)

In my case, I could also see the device's files, but it wasn't until I changed the device from "file transfer" mode to "photo transfer" mode that it was able to be detected by adb.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)