apk finalization failed

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
danieljensen9
Posts: 3
Joined: Wed Jun 01, 2016 4:22 pm

apk finalization failed

Post by danieljensen9 » Wed Jun 01, 2016 4:30 pm

Whenever i try to compile my android app, it gives me this error apk finalization failed.
i am using livecode 8.1.0 dp 1 on a mac running os x 10.8.5. my build tools are 19.1.0. Help?
Attachments
Screen Shot 2016-06-01 at 9.29.50 AM.png

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: apk finalization failed

Post by dave.kilroy » Wed Jun 01, 2016 6:24 pm

hi danieljensen9 and welcome to the forum!

Check out this thread from 2014 where they also had the "apk finalization failed" error message http://forums.livecode.com/viewtopic.php?f=53&t=21373
"...this is not the code you are looking for..."

micamd
Posts: 5
Joined: Wed May 25, 2016 8:27 pm

Re: apk finalization failed

Post by micamd » Wed Jun 01, 2016 8:54 pm

Hey guys
I've recently compiled a (very simple) ratings app on Livecode 8.0 and deployed it to Android (on a Windows 10 PC). Upon deployment, no errors arose - however, the app does not load on either the AVD emulator or an android device.

I've looked through the links and video provided on this thread.
I've made sure to provide the locations of the Android SDK and Java JDK roots under 'Mobile Support' in preferences
If I try to load it in the emulator, it does not recognize the app. If I try to open it on my android device, it states that it is "installing...", and then it states that the installation failed.
I've set the device (a Galazy Note 1) on developer mode, played with all the sign in options during the standalone settings (i.e., do not sign, sign for dev only...) but still no dice.

Thanks so much!

danieljensen9
Posts: 3
Joined: Wed Jun 01, 2016 4:22 pm

Re: apk finalization failed

Post by danieljensen9 » Wed Jun 01, 2016 10:59 pm

I have seen this before and it has not worked.
dave.kilroy wrote:hi danieljensen9 and welcome to the forum!

Check out this thread from 2014 where they also had the "apk finalization failed" error message http://forums.livecode.com/viewtopic.php?f=53&t=21373

i might need a more detailed explination.
a few days ago i downgraded my build tools to 19.10 because livecode needed build tools under 21 and it worked until yesterday

danieljensen9
Posts: 3
Joined: Wed Jun 01, 2016 4:22 pm

Update : just stack problem

Post by danieljensen9 » Wed Jun 01, 2016 11:04 pm

i tried compiling my other stack and it worked

it is probay just my stack

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: apk finalization failed

Post by dave.kilroy » Thu Jun 02, 2016 3:03 pm

daniel yep it probably IS your stack - but it also is likely to be your dev setup for Android! Everything needs to be just so, and if it isn't then sometimes its really hard to figure out what is going on. You've used a good technique in trying another stack to make sure its not your dev setup (I have several old 'hello-world' stacks I use to rule out my dev environment).

Also, turning it off and on again often does make a difference!

micamd what you describe makes me suspicious it is something in your dev environment - if you use a 'hello-world' stack does it appear on your device?

Dave
"...this is not the code you are looking for..."

micamd
Posts: 5
Joined: Wed May 25, 2016 8:27 pm

Re: apk finalization failed

Post by micamd » Fri Jun 03, 2016 6:26 pm

You were right about it being an issue with the dev environment.

I deleted android studio and re-installed just the SDK manager, and the app is compiling. Thanks!

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: apk finalization failed

Post by dave.kilroy » Fri Jun 03, 2016 6:30 pm

@micamd yeah it's a pain in the a** - at least now you know how fragile it is and to always be suspicious of it - which will therefore leave you more free to get on with other things...
"...this is not the code you are looking for..."

Post Reply