Android BUILD FAILED

Wowlex

  • Posts: 26
Hi, I can test my game on Windows but not Android, it never builds and my phone doesn't seem to do anything.
I searched around the forums for a solution to this. Reinstalling and renaming things doesn't work.

It might have something to do with this:
[openfl.bat] C:\Users\Al\AppData\Roaming\Stencyl\stencylworks\android-sdk\android-sdk-windows\tools\ant\build.xml:544: Unable to resolve project target 'android-19'
But I have no idea how to fix that.

Developer options and USB debugging are enabled on my device. I have Stencyl 3.3.0, Java 8u45, and testing doesn't work on my new Galaxy S6 or old Galaxy S3

logs are attached.
Thanks in advance for any help!

Wowlex

  • Posts: 26
Update: fixed this problem, I think. Went into the project folder and found where to update and install versions of the development kit.

New problem though, had the wrong version of JDK installed. Got rid of it and installing JDK 6.

Wowlex

  • Posts: 26
Update: fixed the 2nd problem, I think. JDK6 is now installed.

3rd problem: Adroid certificate is expired. GREAT... looking online about how to fix that.

Wowlex

  • Posts: 26
Update: Fixed the 3rd problem, I think. Deleted old certificate and BUILD SUCCESSFUL!

4th problem: Stuck on "sending to device" dialog. Something to do with the new android version (Lollipop)?

Wowlex

  • Posts: 26
Update: Never got it to send to my phone... been pulling my hair out messing with the he android SDK Manager, downloading and installing almost everything on there.

Instead of testing thru stencyl I just published the apk, transferred it over to my phone's memory and was able to install/run from there. I would still like some help if anyone knows how to get past the "Sending to Device" dialog.

I tried on 2 different phones. Won't work.

Justin

  • *
  • Posts: 4717
Could you post new logs now that everything else has been resolved? There may be a hint.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

letmethink

  • *
  • Posts: 2545
Have you installed the drivers for your phone?
~Letmethink

Hairball

  • Posts: 121
I'm having similar issues with my Galaxy S5.  It worked on my old one but some dummy dropped his phone into a porta-potty.  The new phone (despite being a Galaxy S5 as well) won't send games to the device via ADB.  Even from the command line, I type "adb install game.apk" and it will pretend it transferred (no error comes back) and even shows KB per second and all that.  But the game is never on the device.  I've been either sending it directly to the SD card manually or if I don't have the cable handy I send it to Dropbox and install from there and that does work (so I can test the game).   

I've tried going into the SDK manager and updating all the things it suggests, closing, going back in (since it updates more after that) etc. until SDK manager says I'm on the latest.   I have uninstalled and reinstalled the Samsung drivers as well.  Nothing seems to work -- but since ADB itself seems to be the broken part, I haven't posted about it: Stencyl is doing what it should. :)

[Edit]: Yes, I turned USB Debugging back on.  I get the prompt asking for permission and tell it to trust my PC always (like I did before).  I have tried to revoke the permission and have it ask again (which it does) but that doesn't make the games upload like they should.  I also have "Allow unknown sources" on. 


« Last Edit: July 15, 2015, 01:16:09 pm by Hairball »

maxspeedmedia

  • Posts: 22
Been down that road months ago. Run KitKat on your Android and the problem is solved. I was running an Android 5 ROM on my HTC One M7 and had the same issue. Use a KitKat (Android 4.4) phone or ROM and it will work like a charm. It was frustrating as hell!  Made these games with Stencyl:
Bird Blitz
https://play.google.com/store/apps/details?id=com.maxspeedmedia.birdblitz
 Fruit Hero
https://play.google.com/store/apps/details?id=com.maxspeedmedia.fruithero2

yoplalala

  • *
  • Posts: 1632
When you connect you phone to the pc. Does the pc see the phone ? I know that on galaxy S1, there was a well known problem http://techathlon.com/fix-usb-mass-storage-issue-samsung-galaxy-phones/ . This resolved it for me.

Hairball

  • Posts: 121
My PC would see the phone just fine.  I could drag my APK over and and it would be on the phone for me to click to install.   ADB would report the device was connected.   ADB install would transfer the APK over (and tell me how many bytes were sent) but it wouldn't install or run.  I wouldn't get the "success" message, though. 

I think my issue was that I was using a deodexed rom instead of the more standard stock rom.  When I updated to the very very latest Verizon release (over Odin since I'm rooted) and I chose not to use the deodexed version my problem went away.   

Justin

  • *
  • Posts: 4717
Bump for Wowlex. Please post your logs now that all the other issues have been resolved, so we can take a look at the "Sending to device" problem.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)