Hi All
Does anyone face this before?
I just use Livecode 10-0-3 RC1 on MacBook, to upgrade my apps to use API35, which under google requirment, When make the standaline application. it come with the following error.
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) this version of the Java Runtime only recognizes
class file version up to 52
Regards
Terry Ho
android unsupperted class error
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 39
- Joined: Tue Jun 27, 2006 8:35 pm
- Contact:
Re: android unsupperted class error
The release of LiveCode 10.0.3 (rc 1) no longer requires java version 8. In fact, it no longer allows it.
https://www.oracle.com/java/technologie ... loads.html
Additionally, I used Android studio to (mine is the Meerkat version) open the SDK manager window (Under the "Tools" menu --> "SDK Manager") and (under the SDK Platforms tab) install Android 15 SDK 35 then (under the SDK Tools tab) install Android SDK Build-Tools 35. (I have no idea if that Build-Tool version is required but it worked for me.) I installed a few other things but I suspect those weren't necessary to the LiveCode build.
I'm using a Mac. I found the directions online for removing the Java 8 version to be surprisingly unhelpful. While there were plenty of command line bits, none of them seemed to address the location of the main jdk on my machine. (Though some YouTube videos did.) I knew the location of mine: and eventually just threw the jdk folders in the trash. But I was surprised that the Oracle Java installer didn't also have an uninstaller. (Okay, I found a Java uninstaller but it didn't work
)
--
Scott Morrow
So, you will need to remove Java 8 and install at least Java version 11.You now only require a minimum version of Java 11, and you can use the latest versions of Java and Build Tools.
https://www.oracle.com/java/technologie ... loads.html
Additionally, I used Android studio to (mine is the Meerkat version) open the SDK manager window (Under the "Tools" menu --> "SDK Manager") and (under the SDK Platforms tab) install Android 15 SDK 35 then (under the SDK Tools tab) install Android SDK Build-Tools 35. (I have no idea if that Build-Tool version is required but it worked for me.) I installed a few other things but I suspect those weren't necessary to the LiveCode build.
I'm using a Mac. I found the directions online for removing the Java 8 version to be surprisingly unhelpful. While there were plenty of command line bits, none of them seemed to address the location of the main jdk on my machine. (Though some YouTube videos did.) I knew the location of mine:
Code: Select all
/Library/Java/JavaVirtualMachines/jdk-1.8.jdk

--
Scott Morrow
Elementary Software
...now with 20% less chalk dust!
...now with 20% less chalk dust!