ERROR: Android: Could not encode class bundle

Dan Friedman dan at clearvisiontech.com
Mon Dec 19 21:11:05 EST 2016


Panos,

Ok… here’s what the result was:

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

What do you think?

Thanks!!!
-Dan


> Hi Dan,
> 
> I suggest you add a
> "answer the result "
> 
> before
> 
> throw "could not encode class bundle"
> 
> in revSaveAsAndroidStandalone script
> 
> Then try again to create an Android standalone, and post here the full
> error. Hopefully this will be more descriptive.
> 
> Best,
> Panos.


>> 
>> Anyone know where to look to resolve this error when building a standalone for Android:
>> 
>> “There was an error while saving the standalone application could not encode class bundle”
>> 
>> I’ve built many Android apps in the past without a problem.  Recently updated to OSX 10.12.1, and LC 8.1.1.  I’ve downloaded and run the latest version of Android Studio (2.2.3) and installed all updates to both Java and Android.  I’ve set the signing of the standalone to “Sign for development only”.   Whenever I build a standalone, I get a "could not encode class bundle” error.
>> 
>> ANY thoughts would be appreciated!
>> 
>> -Dan





More information about the Use-livecode mailing list