I just started working with Livecode about three weeks ago. I have created my first program with it for Windows and that was fast and easy. Now I am trying to install that program on my Google Nexus 7 tablet (Android 5.0 Lollipop) but LC is telling me:
Here's what I have done so far:There was an error while saving the standalone application
apk preparation failed
- Start with Windows 7 64-bit.
- Already had JRE 8.
- Installed Livecode Community 7.0.0 Build 10018.
- Created my stack and it runs very nicely in Windows.
- Install the newest Android SDK (as of yesterday) - 23.0.2.
- Opened the Android SDK Manager, as the Guide here suggests and added the older versions to the installed components.
- I now have Android SDK Tools v23.0.5, Android SDK Build Tools v20, Android APIs for 5.0 (21), 4.4.2 (19), 4.1.2 (16), 2.3.3 (10) and 2.2 (8) installed on this workstation.
- Created a HelloWorld app in he Android / Eclipse IDE and loaded that onto my Nexus 7. It works!
- In LC, set the Preferences > Mobile Support > Location of Android SDK Root folder.
- That was accepted but the JDK path below that remained blank.
- I realized I had the JRE not the JDK, so I downloaded and installed JDK 8 U25, which included the JRE 8 U25
- Now in the Preferences, I see the correct path to my JDK folder so that's all set.
- I setup the standalone settings for my LC program, using ALL of the default field values expect for giving it a name.
- I selected Development > Test Target and then selected what I assume is my Nexus 7, it says "Android 015d8jh345243256" (or similar)
- I select Save As Standalone Application... and then select a folder and it says "Building Classes..." and then "Preparing Packages" and then fails with this error (above).
- I tried using the Test button instead, but get the same error.
- I read quite a few other forum posts here and tried a few of those solutions, including placing the zipalign.exe from LC Support in my sdk\tools folder, and removing my users\myname\.android folder or just the debug.keystore file I see in there, but no go. Same error.
- I tried creating a new program, with just "Hello" in a plain label on the main stack, but get the same error when I try to Test and when I try to build the standalone application.
Whew, that's a lot of steps!
Does anyone know if I need to include an "Icon" in my standalone settings? That field and "splash" are blank right now.
Sorry this is so long. I am really loving LiveCode so I hope I can make this work. FYI, this little program I am writing is just for me and I am just a hobbyist. Thanks for any help anyone might be able to offer.
UPDATE: I'm making this longer! I just tried testing with my HTC One Mini Android 4.2.2 phone instead of the Nexus 7 tablet. Again, I tested with just Android first and I was able to install a program from Eclipse just fine. In LC though, same exact error as before.
Are there more detailed logs I can review somewhere in LC or my Android setup?
Thanks again for any help folks.