SOLVED - Unable to build app for testing on android.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Locked
donchan
Posts: 8
Joined: Sun Aug 11, 2013 1:45 am

SOLVED - Unable to build app for testing on android.

Post by donchan » Wed Aug 14, 2013 9:54 am

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
Last edited by donchan on Thu Aug 15, 2013 5:25 am, edited 1 time in total.

fredotechGA2742
VIP Livecode Opensource Backer
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.

Post by fredotechGA2742 » Wed Aug 14, 2013 3:07 pm

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.

donchan
Posts: 8
Joined: Sun Aug 11, 2013 1:45 am

Re: Error msg - Unable to build app for testing on android.

Post by donchan » Thu Aug 15, 2013 5:03 am

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?

donchan
Posts: 8
Joined: Sun Aug 11, 2013 1:45 am

Re: Error msg - Unable to build app for testing on android.

Post by donchan » Thu Aug 15, 2013 5:24 am

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.

Simon
VIP Livecode Opensource Backer
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.

Post by Simon » Thu Aug 15, 2013 5:45 am

Hi donchan,
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!

donchan
Posts: 8
Joined: Sun Aug 11, 2013 1:45 am

Re: SOLVED - Unable to build app for testing on android.

Post by donchan » Thu Aug 15, 2013 6:20 am

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.

stellify
Posts: 7
Joined: Mon May 06, 2013 12:28 am

Re: SOLVED - Unable to build app for testing on android.

Post by stellify » Fri Aug 16, 2013 4:44 pm

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

Locked

Return to “Summer School 2013”