The place to discuss anything and everything about running your LiveCode on Android
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
SteveB
- Posts: 45
- Joined: Mon Sep 30, 2019 4:49 pm
Post
by SteveB » Tue Aug 22, 2023 5:27 pm
Hi Everyone
I'm just trying to rebuild some apps to comply with the new Play requirements, but I'm getting build errors.
The apps build fine in 9.6.9 but in 9.6.10-rc-1 I get:
There was an error while saving the standalone application
Could not link resources - error:
aapt2 W 08-22 16:35:49 1702 34086
LoadedArsc.cpp:657] unknown chunk type '200'
I get this even with a new stack and 1 button.
I'm obviously missing something. Any ideas?
-
SteveB
- Posts: 45
- Joined: Mon Sep 30, 2019 4:49 pm
Post
by SteveB » Tue Aug 22, 2023 6:00 pm
Should have added that I'm using a Mac
-
SteveB
- Posts: 45
- Joined: Mon Sep 30, 2019 4:49 pm
Post
by SteveB » Tue Aug 22, 2023 6:48 pm
... same problem in Wndows
-
jacque
- VIP Livecode Opensource Backer

- Posts: 7389
- Joined: Sat Apr 08, 2006 8:31 pm
-
Contact:
Post
by jacque » Wed Aug 23, 2023 5:02 pm
I was able to build with 9.6.10 RC 1. I had to install SDK 33 and the latest build tools. If that doesn't work it might be a compiler issue, according to the brief research I did.
I'm not sure the build tools update was necessary. I left 3.0.3 in place in case that's still required.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
-
SteveB
- Posts: 45
- Joined: Mon Sep 30, 2019 4:49 pm
Post
by SteveB » Wed Aug 23, 2023 5:44 pm
I did install API 33 as stated by Panos in the release notes and the lesson here
https://lessons.livecode.com/m/2571/l/6 ... oid-studio which has been updated for 9.6.10.
I was using Java 1.8.0_341 and Build Tools 30.0.3 as specified. I've now tried with 33.0.2 but I now get an error message telling me JAVA_HOME is set to an invalid directory, so maybe 9.6.10-rc-1 requires a different Java version to previous versions?
Weird that I get the same issue on both Mac and PC
-
LiveCode_Panos
- Livecode Staff Member

- Posts: 861
- Joined: Fri Feb 06, 2015 4:03 pm
Post
by LiveCode_Panos » Thu Aug 24, 2023 10:36 am
Hello Steve,
You have to make sure the version of the build tools you have installed is either 30.0.3 or 31.0.0 - and no other version is installed.
If anything newer than v31 is installed as well, you get the error shown here:
https://quality.livecode.com/show_bug.cgi?id=23570
Kind regards,
Panos
--
-
SteveB
- Posts: 45
- Joined: Mon Sep 30, 2019 4:49 pm
Post
by SteveB » Fri Aug 25, 2023 1:55 pm
Hello Panos,
Thank you for your reply.
I did have build tools 30.0.3 installed when I got the Could not link resources error
Upgrading build tools to 31.0.0 gave me the JAVA_HOME invalid directory error
However, I have now fixed the problem. The JAVA_HOME invalid directory error is the clue.
I have been using Oracle Java idk 1.8.0_341 to build Android Apps using LC versions up to and including 9.6.9 successfully, but it appears that 9.6.10-rc-1 doesn't like that version, and updating to 1.8.0_381 didn't help.
I had already suspected that the problem was with Java rather than my Android Studio settings, so I decided to try another flavour of Java.
I downloaded OpenLogic-OpenJDK 1.8.0_382 - and SUCCESS! I can now build Android Apps again.
So my setup is macOS Monterey, SDK Platform API 33, SDK Tools 31.0.0, OpenLogic-OpenJDK 1.8.0_382
Build tools 30.0.3 do not work!
For some reason I have never had the JDK path autofill in the LC Preferences panel on macOS, so had to open the Project Browser, then View - Show IDE Stacks in Lists, then navigate to revPreferencesGUI - Mobile Support - Android SDK - and reveal the Choose SDK button to select the OpenLogic JDK manually.
Hope this helps anyone else having issues building Android with 9.6.10-rc-1
-
LiveCode_Panos
- Livecode Staff Member

- Posts: 861
- Joined: Fri Feb 06, 2015 4:03 pm
Post
by LiveCode_Panos » Fri Aug 25, 2023 2:10 pm
Hello Steve,
Thank you for the update.
We might have to make the "Choose JDK" button visible anyway, since this will allow users to have various versions of Java JDK installed but choose the appropriate version for LiveCode.
BTW, are you on an Intel or in an M1/M2 Mac?
Kind regards,
Panos
--
-
LiveCode_Panos
- Livecode Staff Member

- Posts: 861
- Joined: Fri Feb 06, 2015 4:03 pm
Post
by LiveCode_Panos » Fri Aug 25, 2023 2:20 pm
Hello Steve,
BTW, I just checked my setup and I can successfully build Android apps with LC 9.6.10 RC-1 with Oracle's JDK 1.8.0_341 and build-tools v31.0.0.
I am on an Intel Mac running MacOS Mojave.
Kind regards,
Panos
--
-
SteveB
- Posts: 45
- Joined: Mon Sep 30, 2019 4:49 pm
Post
by SteveB » Fri Aug 25, 2023 4:24 pm
Hello Panos,
I'm on an Intel based iMac - iMac19,1
I happen to have an external HD with Mojave on it, so I hooked it up to give it a try.
This drive was a clone of my HD before system update from Mojave to Big Sur then to Monterey so had my previous LC installations and Oracle idk 1.8.0_341 on it as well.
I downloaded 9.6.10-rc-1 plus the updates to Android studio SDK and Build tools, but I get exactly the same error as I get on Monterey
I was going to try OpenLogic-OpenJDK 1.8.0_382 on this build as well, but Interestingly on Mojave LC chose the Java location by itself and cannot be changed! Exposing the Choose JDK button allows you to browse but all options are greyed out.
-
LiveCode_Panos
- Livecode Staff Member

- Posts: 861
- Joined: Fri Feb 06, 2015 4:03 pm
Post
by LiveCode_Panos » Fri Aug 25, 2023 4:40 pm
Hello Steve,
What is the output of this command in the Terminal?
"/usr/libexec/java_home"
Also, IIRC, when enabling the "Choose JDK" button, you have to choose e.g. "/Library/Java/JavaVirtualMachines/jdk1.8.0_341.jdk/Contents/Home" and not just "/Library/Java/JavaVirtualMachines/jdk1.8.0_341.jdk"
Kind regards,
Panos
--
-
SteveB
- Posts: 45
- Joined: Mon Sep 30, 2019 4:49 pm
Post
by SteveB » Sat Aug 26, 2023 11:05 am
Hello Panos,
/usr/libexec/java_home in terminal gives me:
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
The Java version in there is Java 8 Update 381 build 09
-
LiveCode_Panos
- Livecode Staff Member

- Posts: 861
- Joined: Fri Feb 06, 2015 4:03 pm
Post
by LiveCode_Panos » Mon Aug 28, 2023 10:43 am
Hello Steve,
Ah that would be the problem then, I think if you delete the folder "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/" and then try again to set the SDK root path in LiveCode Preferences, then the correct JDK will be auto-filled and you will be able to build an Android standalone with no errors.
Kind regards,
Panos
--
-
istech
- Posts: 211
- Joined: Thu Sep 19, 2013 10:08 am
Post
by istech » Fri Sep 01, 2023 4:57 am
Hi All,
Having a similar problem building Android app's with LC 9.6.10. I am using Windows and have installed the latest Android Studio with Android 13, SDK Build tools 31.0.0. My Java is recognised by LC and can build for simulator no problem but will hang when I try to build a standalone saying "PREPARING PACKAGE" after entering my alias. This happens using my keystore to sign the app. To add when I select " Do not sign" in the Android options I still get a hang at the end of the building process but app files are created. Could this be a Java issue? Any help would be much appreciated.
Regards,
Tony
-
SteveB
- Posts: 45
- Joined: Mon Sep 30, 2019 4:49 pm
Post
by SteveB » Fri Sep 01, 2023 11:52 am
Hi Panos,
Ah that would be the problem then, I think if you delete the folder "/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/" and then try again to set the SDK root path in LiveCode Preferences, then the correct JDK will be auto-filled and you will be able to build an Android standalone with no errors.
Didn't work for me. The only way I can get it to work is with the OpenLogic build of SDK tools and setting the path manually.
@istech
I couldn't build 9.6.10 on Windows either until I installed the OpenLogic distribution. Google "OpenLogic’s OpenJDK Downloads" Use the 8u382-b05 .msi package, and make sure that you check the tick box to add the SDK to the path
Best
Steve