can not create apk for android however test works fine

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gurusonwheels
Posts: 31
Joined: Sat Apr 01, 2017 5:15 pm

can not create apk for android however test works fine

Post by gurusonwheels » Sat Apr 08, 2017 9:30 pm

i can goto the test button and deploy to my phone fine and run the app .

however if i goto file menu and make standalone .
once i copy to my phone .
tried , sd card , over usb cable , transfering to cloud .

i always get a dialog saying

App not installed
The package appears to be corrupt

what going on. i would think that if it can build and transfer via test then it should work the other way .

ClipArtGuy
Posts: 253
Joined: Wed Aug 19, 2015 4:29 pm

Re: can not create apk for android however test works fine

Post by ClipArtGuy » Sat Apr 08, 2017 11:38 pm

It's probably something in the android standalone settings. Have you selected "Sign for Development Only" on the signing dropdown? You may also need to change the identifier as well as making sure all the permissions you need are checked.

SparkOut
Posts: 2852
Joined: Sun Sep 23, 2007 4:58 pm

Re: can not create apk for android however test works fine

Post by SparkOut » Sat Apr 08, 2017 11:45 pm

Make sure you also uninstall the version that you tried with the "test" option.

Also, what version of LX are you using? There was a glitch with creating android apk in one of the recent dp versions, I think.

gurusonwheels
Posts: 31
Joined: Sat Apr 01, 2017 5:15 pm

Re: can not create apk for android however test works fine

Post by gurusonwheels » Sun Apr 09, 2017 12:10 am

I have do not sign selected . is that a problem?

ClipArtGuy
Posts: 253
Joined: Wed Aug 19, 2015 4:29 pm

Re: can not create apk for android however test works fine

Post by ClipArtGuy » Sun Apr 09, 2017 1:06 am

It needs to be signed before it will run. For testing purposes, selecting "Sign for development only" will work. You will need to sign with your own self signed certificate before uploading to the play store.

gurusonwheels
Posts: 31
Joined: Sat Apr 01, 2017 5:15 pm

Re: can not create apk for android however test works fine

Post by gurusonwheels » Sun Apr 09, 2017 1:36 am

ClipArtGuy wrote:It needs to be signed before it will run. For testing purposes, selecting "Sign for development only" will work. You will need to sign with your own self signed certificate before uploading to the play store.

thank you . they should include this note on the page giving instructions for getting
android development setup with livecode .

leaving this out caused lots of unnecessary grief . :(


thank you very much ! :D

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: can not create apk for android however test works fine

Post by capellan » Sun Apr 09, 2017 3:50 am

In Android, there is a method to test stacks instead of apps.

1) Create a LiveCode stack with a single button that only opens a stack inside the Documents folder.
You could name this stack as: test.livecode

2) Build a Livecode Android App with this single button stack and select all settings and permissions
available from Livecode Android Standalone Builder. As recommended previously, select
"Sign for development only"

3) Copy the stack named: test.livecode into your Android device's Documents folder
and install your LiveCode Android Apk

4) Run you Android App and click the single button to run the stack: test.livecode

Al

Post Reply

Return to “Android Deployment”