Page 1 of 1

apk finalization failed

Posted: Wed Jun 01, 2016 4:30 pm
by danieljensen9
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?

Re: apk finalization failed

Posted: Wed Jun 01, 2016 6:24 pm
by dave.kilroy
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

Re: apk finalization failed

Posted: Wed Jun 01, 2016 8:54 pm
by micamd
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!

Re: apk finalization failed

Posted: Wed Jun 01, 2016 10:59 pm
by danieljensen9
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

Update : just stack problem

Posted: Wed Jun 01, 2016 11:04 pm
by danieljensen9
i tried compiling my other stack and it worked

it is probay just my stack

Re: apk finalization failed

Posted: Thu Jun 02, 2016 3:03 pm
by dave.kilroy
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

Re: apk finalization failed

Posted: Fri Jun 03, 2016 6:26 pm
by micamd
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!

Re: apk finalization failed

Posted: Fri Jun 03, 2016 6:30 pm
by dave.kilroy
@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...