SOLVED - Unable to build app for testing on android.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
SOLVED - Unable to build app for testing on android.
I've been running into this problem today when trying to test a stack with the Android simulator.
The error message is : Unable to build app for testing: apk preparation failed.
I've also noticed another error message within the terminal window on my Mac.
log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.SingleClientConnManager).
log4j:WARN Please initialize the log4j system properly.
It was fine when I followed the Pre-Lesson 1 webinar, but this problem just started happening today. I've also tried deleting the Android SDK and reinstalling as well as deleting the ~/.android directory and starting from scratch but to no avail.
Anyone else having these problems?
Donald
The error message is : Unable to build app for testing: apk preparation failed.
I've also noticed another error message within the terminal window on my Mac.
log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.SingleClientConnManager).
log4j:WARN Please initialize the log4j system properly.
It was fine when I followed the Pre-Lesson 1 webinar, but this problem just started happening today. I've also tried deleting the Android SDK and reinstalling as well as deleting the ~/.android directory and starting from scratch but to no avail.
Anyone else having these problems?
Donald
Last edited by donchan on Thu Aug 15, 2013 5:25 am, edited 1 time in total.
-
- VIP Livecode Opensource Backer
- Posts: 24
- Joined: Mon Jan 16, 2012 10:39 am
- Location: Maryland USA
- Contact:
Re: Error msg - Unable to build app for testing on android.
try running the Android manager and removing all the SDK. then ReRun and make sure to have the tools folder selected as well as the right Android versions.
then create the device AVM. And wait for like 4 min it takes time to load then hit the test button.
then create the device AVM. And wait for like 4 min it takes time to load then hit the test button.
Re: Error msg - Unable to build app for testing on android.
Thanks fredotech,
I've tried what you have suggested (deleting the SDK and reinstalling it within Android Manager) and even spent half the day installing, reinstalling, recreating avds but still cannot create an apk for the Android simulator or create a standalone apk file. I'm guessing this is an Android problem?
I've tried what you have suggested (deleting the SDK and reinstalling it within Android Manager) and even spent half the day installing, reinstalling, recreating avds but still cannot create an apk for the Android simulator or create a standalone apk file. I'm guessing this is an Android problem?
Re: Error msg - Unable to build app for testing on android.
UPDATE: Came across a post saying that other people using Android SDK Tools r22 were having the same problem and not being able to create apk files. The fix was to go back to Android SDK Tools r21 by downloading the r21 SDK and copying the contents of the Tools folder to my installed SDK tools folder. Anyway, I'm now able to test my stack in the android emulator and build standalone apk files.
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: SOLVED - Unable to build app for testing on android.
Hi donchan,
The r22 problem was fixed in LC 6.1 (?)
You should try again. Or not.
Simon
The r22 problem was fixed in LC 6.1 (?)
You should try again. Or not.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: SOLVED - Unable to build app for testing on android.
Hi Simon,
I just tried updating back to r22 within the Android SDK manager and testing the "Hello World" stack in the android emulator and got the "unable to build app" error message again.
Runs fine when I moved back to r21. I'm using LC 6.1.1 (rc2) on Mac OS X.
I just tried updating back to r22 within the Android SDK manager and testing the "Hello World" stack in the android emulator and got the "unable to build app" error message again.
Runs fine when I moved back to r21. I'm using LC 6.1.1 (rc2) on Mac OS X.
Re: SOLVED - Unable to build app for testing on android.
I have the same problem using LC 6.1.1 (rc2) on Mac OS X.
r22 produces the "unable to build app" error and I can't see Android as a target under test target.
OK on r21so far.
Regards
r22 produces the "unable to build app" error and I can't see Android as a target under test target.
OK on r21so far.
Regards