apk preparation failed
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
apk preparation failed
Hello, I'm a newbie with android development. I just got a Samsung Galaxy GT-N7000, running Android 4.0.3.
After following the instructions to get the platforms etc. onto my Mac, I got the emulator running and the connections set up between LC 5.5.1 and the Android stuff. However, I keep getting:
"Unable to build app for testing: apk preparation failed"
and have no clue why. The state of the sdk manager is :
Any hint welcome...
After following the instructions to get the platforms etc. onto my Mac, I got the emulator running and the connections set up between LC 5.5.1 and the Android stuff. However, I keep getting:
"Unable to build app for testing: apk preparation failed"
and have no clue why. The state of the sdk manager is :
Any hint welcome...
The Old Rant Robert.
Re: apk preparation failed
OK, problem solved: needed an update to several packages and also a deletion of the .android folder in the home folder so that it would be recreated on restart. (found that solution from Jacque LG in another thread, thanks J!)
So I'm on the road now.
So I'm on the road now.
The Old Rant Robert.
Re: apk preparation failed
I am now having the same problem.
Computer: Windows Vista
Livecode Version: 5.5.1 Commercial
Android SDK 2.2 API 8
Emulator is found and runs plus Livecode can see it so all the settings must be good.
The application builds and runs fine but will not build for testing. I have the emulator correct as per the instructions in the Android release notes plus it is selected in Livecode as the test target.
Everything start to build and then the dreaded
Unable to build for testing: apk preperation failed
I have removed and re-installed the SDK and updated it. I have tried a basic form with no code and still no build success.
Can anyone help as this used to work on the 4.6.3 version of Livecode.
Computer: Windows Vista
Livecode Version: 5.5.1 Commercial
Android SDK 2.2 API 8
Emulator is found and runs plus Livecode can see it so all the settings must be good.
The application builds and runs fine but will not build for testing. I have the emulator correct as per the instructions in the Android release notes plus it is selected in Livecode as the test target.
Everything start to build and then the dreaded
Unable to build for testing: apk preperation failed
I have removed and re-installed the SDK and updated it. I have tried a basic form with no code and still no build success.
Can anyone help as this used to work on the 4.6.3 version of Livecode.
Windows / MAC / IOS / Android - Deployment
Build 5.5.4 / & Community Version 6.1
Build 5.5.4 / & Community Version 6.1
-
- VIP Livecode Opensource Backer
- Posts: 7255
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: apk preparation failed
Did you delete the .android folder in the home folder? That's what fixed it for me.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: apk preparation failed
Thank you for responding.
I have the SDK Installed at ProgramFiles location. There was an Android folder in the root C directory that was empty so I removed it. Plus I looked for the .Android folder in the installed location (I presume that it what you meant by home directory) and could not find one.
Have tried everything else I could find on the Forum and still no luck. I actually think this is a problem seen far too many times and I would have thought that the people at Runrev would have done something to address this issue somehow as it is quite important to be able to run your application on Emulator as it is the only way to test on multiple screen resolutions.
I actually can't build to test on an actual device either, I have to build it as apk and then install to the actual device. This is time consuming.
Anyway thank you for your help... if you can think of anything else I could try that would be great.
Regards
I have the SDK Installed at ProgramFiles location. There was an Android folder in the root C directory that was empty so I removed it. Plus I looked for the .Android folder in the installed location (I presume that it what you meant by home directory) and could not find one.
Have tried everything else I could find on the Forum and still no luck. I actually think this is a problem seen far too many times and I would have thought that the people at Runrev would have done something to address this issue somehow as it is quite important to be able to run your application on Emulator as it is the only way to test on multiple screen resolutions.
I actually can't build to test on an actual device either, I have to build it as apk and then install to the actual device. This is time consuming.
Anyway thank you for your help... if you can think of anything else I could try that would be great.
Regards
Windows / MAC / IOS / Android - Deployment
Build 5.5.4 / & Community Version 6.1
Build 5.5.4 / & Community Version 6.1
-
- VIP Livecode Opensource Backer
- Posts: 7255
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: apk preparation failed
I had to look it up again, and actually all you need to remove is the debug.keystore file which is in that folder. Here's what I found:
Navigate to the .android folder in your home directory “~/.android” (Linux,Mac OS) or c:\Documents and Settings[User Name].android in windows XP or C:\Users.android in windows Vista or Windows 7, and delete debug.keystore file.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: apk preparation failed
Thank you so very much...!
Now working.
Yet again you are the one that comes to help. The Forum would be stuffed without you.
Regards & Thanks
Now working.
Yet again you are the one that comes to help. The Forum would be stuffed without you.
Regards & Thanks
Windows / MAC / IOS / Android - Deployment
Build 5.5.4 / & Community Version 6.1
Build 5.5.4 / & Community Version 6.1
-
- Posts: 2
- Joined: Thu Jan 24, 2013 4:39 am
Re: apk preparation failed
I have followed procedures identified in this post to try address the above error but with no success. Can anyone offer any further steps which will help resolve this issue.. FYI.. I have created a single page app with a hello world script so as to minimize any posssible issues relating to code
Specifically, i have:
1/ deleted the file "debug.keystore" and restarted apps,
2/ deleted complete directory and reset up AVDs
3/ reinstalled the andriod SDK with following options