LC , Android Studio Hedgehog and JRE - unable to build

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
j9v6
Posts: 77
Joined: Tue Aug 06, 2019 9:27 am
Location: U.K.
Contact:

LC , Android Studio Hedgehog and JRE - unable to build

Post by j9v6 » Thu Feb 29, 2024 2:23 pm

Hi All,

I've not built for Android in a while, and since I last did, I've upgraded to a new macBook which means everything been installed afresh:

Livecode 9.6.11
Android Studio Hedgehog 2023.1.1 Patch 2
JRE 1.8.0_401

Now when I try building for Android I get the following error message:
There was an error while saving the standalone application could not encode class bundle - error:
Exception in thread "main" java.lang.UnsupportedClassVersionError:
com/android/tools/r8/D8 has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
Additionally, when I check the Mobile Deployment settings in LiveCode the JDK Path is blank.

So, if I downgrade Android Studio to an older version, will this fix the problem or is something else afoot?

Really appreciate any pointers.

Thanks all.
Al.

j9v6
Posts: 77
Joined: Tue Aug 06, 2019 9:27 am
Location: U.K.
Contact:

Re: LC , Android Studio Hedgehog and JRE - unable to build

Post by j9v6 » Thu Feb 29, 2024 7:46 pm

Update: All fixed.

Had to manually specify the JDK Path.

Used

Code: Select all

set the visible of button "ChooseJDK" of group "Android SDK" of card "Mobile Support" of stack "revPreferencesGUI" to true
from this post which really helped

https://forums.livecode.com/viewtopic.php?f=53&t=34837

Post Reply

Return to “Android Deployment”