Standalone issues

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Sekoshiba
Posts: 31
Joined: Thu Sep 26, 2013 8:23 pm

Standalone issues

Post by Sekoshiba » Thu Sep 26, 2013 8:29 pm

Hello, I've been trying to develop a simple app that I made into a standalone program that I can access on my phone (Android).

I generated my key without issue but am having severe issues with "Could not compile application class" errors that arise whenever I try to generate the android app. In the tutorials on the website it makes no mention of needing other programs but I have heard talk of Android SDK and other dev kits??? It's very confusing for me as I have not been using livecode for very long at all.

Can anyone outline -exactly- what is needed to turn my livecode program into an android app? (How to do so also would be appreciated!)

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Standalone issues

Post by Simon » Thu Sep 26, 2013 9:24 pm

Hi Sekoshiba,
Welcome to the forums :)

Have you read the How To's?
http://lessons.runrev.com/m/4069
Not sure if you are on Mac or Win.
They give detailed explanations of what you need as far as SDK's go.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Sekoshiba
Posts: 31
Joined: Thu Sep 26, 2013 8:23 pm

Re: Standalone issues

Post by Sekoshiba » Thu Sep 26, 2013 9:50 pm

Wow, thanks very much ^^

Sekoshiba
Posts: 31
Joined: Thu Sep 26, 2013 8:23 pm

Re: Standalone issues

Post by Sekoshiba » Thu Sep 26, 2013 9:54 pm

Unfortunately now that I've installed android SDK I keep getting a "URL not found:...(Access is denied)" error when I try to update :(

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Standalone issues

Post by Simon » Thu Sep 26, 2013 10:13 pm

Here is the only link I've found here for that problem:
http://forums.runrev.com/phpBB2/viewtop ... 06&p=78178

But you don't make it easy to solve... you haven't described where you are getting the error? liveCode? Android?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Sekoshiba
Posts: 31
Joined: Thu Sep 26, 2013 8:23 pm

Re: Standalone issues

Post by Sekoshiba » Thu Sep 26, 2013 10:22 pm

Sorry for being vague, I mean that the Android SDK packs failed to install. The download screen simply displays each -attempting- to install and then displaying a "URL not found: (Access denied)" error. I'm going to try putting the SDK in a different directory and will test to see if that helps...


EDIT: Changing the directory seems to have worked :D

Edit 2: hmmm...Everything was going fine up until trying to compile the livecode program to run as an android app, I got the error "Error while saving standalone application" :c

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Standalone issues

Post by Simon » Fri Sep 27, 2013 1:56 am

Hi Sekoshiba,
Do you have the mobile set up in Preferences?
Well I suppose you do, have you tested your app in the Android sim?


Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Sekoshiba
Posts: 31
Joined: Thu Sep 26, 2013 8:23 pm

Re: Standalone issues

Post by Sekoshiba » Fri Sep 27, 2013 4:03 pm

I have set up mobile correctly (I think) as my program has access to the sdk as required...

I am currently testing out my program in the AVD, after some time it seems to work but my program is not running? It is just the android homescreen? How do I go about selecting my livecode program to run in the AVD?


EDIT: I have the keystore file and it is connected to the program totally fine, my problem(s) are coming from an inability to save the file as a .apk so that I can port it onto my phone. It refuses to build for android regardless of keystore file so I believe that it is something else. The SDK is linked as said in the tutorials and required versions listed there are also installed...

Sekoshiba
Posts: 31
Joined: Thu Sep 26, 2013 8:23 pm

Re: Standalone issues

Post by Sekoshiba » Fri Sep 27, 2013 4:41 pm

The error is "Error saving application, apk generation failed"


I'm running the latest livecode, android SDK, and JDK and it is still causing me problems when trying to generate the apk file. A friend offered to try on their machine and got it working without a single error by doing exactly what I did, so I am completely out of ideas as to why it does not work on my own pc.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Standalone issues

Post by Simon » Fri Sep 27, 2013 9:30 pm

I think before you try to build the apk you should first get your app running in AVD or a real device. No you don't need an apk to run on a real device if you have it connected by usb.

Under Development do you have the test target selected?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply