Page 1 of 1

Standalone issues

Posted: Thu Sep 26, 2013 8:29 pm
by Sekoshiba
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!)

Re: Standalone issues

Posted: Thu Sep 26, 2013 9:24 pm
by Simon
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

Re: Standalone issues

Posted: Thu Sep 26, 2013 9:50 pm
by Sekoshiba
Wow, thanks very much ^^

Re: Standalone issues

Posted: Thu Sep 26, 2013 9:54 pm
by Sekoshiba
Unfortunately now that I've installed android SDK I keep getting a "URL not found:...(Access is denied)" error when I try to update :(

Re: Standalone issues

Posted: Thu Sep 26, 2013 10:13 pm
by Simon
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

Re: Standalone issues

Posted: Thu Sep 26, 2013 10:22 pm
by Sekoshiba
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

Re: Standalone issues

Posted: Fri Sep 27, 2013 1:56 am
by Simon
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

Re: Standalone issues

Posted: Fri Sep 27, 2013 4:03 pm
by Sekoshiba
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...

Re: Standalone issues

Posted: Fri Sep 27, 2013 4:41 pm
by Sekoshiba
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.

Re: Standalone issues

Posted: Fri Sep 27, 2013 9:30 pm
by Simon
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