APK won't install

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

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
ajperks
Posts: 54
Joined: Sat Sep 06, 2014 3:38 pm

APK won't install

Post by ajperks » Wed Jul 25, 2018 1:08 pm

Having managed to create an APK from a simple stack for testing, I have hit the final brick wall.
Phone, Samsung S9+ Orio
APK in a folder (My APK) on sd card in phone
Using the phone in developer mode, I found and double click the files.APK (the app name) and first it asks "Do you want to install this application. And a list of items it will get access to.
I click install and after a second, it shows "App not installed"


Any ideas why this might be?

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 493
Joined: Fri Feb 06, 2015 4:03 pm

Re: APK won't install

Post by LiveCode_Panos » Wed Jul 25, 2018 3:10 pm

Hello ajperks,

I assume you have already changed the phone settings to allow installation of apps from "unknown sources", is that correct?

The next thing to check is that you have signed the standalone in the android standalone settings ("Sign for development only" will be enough). Note that when you install a standalone directly to your device via the "Test" button in the IDE, this signing option is not needed (I *think* the standalone builder does that behind the scenes). But when you build an .apk, and instal this .apk with a different way, then this needs to be signed (even just "for development only").

Please let us know if this fixed the problem for you.

Best,
Panos
--

ajperks
Posts: 54
Joined: Sat Sep 06, 2014 3:38 pm

Re: APK won't install

Post by ajperks » Wed Jul 25, 2018 4:42 pm

Hi Panos,
Thank you for your invaluable help. The app is now installed and working.
The "unknown sources" point was not the issue, but it could easily have been. FYI, ORIO no longer has the simple selection or switch. Internet searches reveal procedures that no longer exist on this phone. As a result, I moved on to the signing. I was aware of it, but read from one of the lessons that it needn't be signed. This of course must be wrong, because your advice, sign for dev only, worked perfectly.

I am now a happy bunny and will proceed with modifying my novel database designed years ago for desktop, with horizontal & vertical scroll bars, so It can be fitted on the phone.

At last I can move forward with LC again after a 3 year break. Lots to catch up on.

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 493
Joined: Fri Feb 06, 2015 4:03 pm

Re: APK won't install

Post by LiveCode_Panos » Thu Jul 26, 2018 2:03 pm

You're welcome ajperks, happy livecoding :)

Best,
Panos
--

Post Reply

Return to “Android Deployment”