Hi,
I have been trying to build a simple Unity scene file on an android device but with no success. I have followed all the possible tutorials and step by step installation process but no matter what I do, I just cant get rid of the following error in Unity:
Error building Player: Exception: android (invokation failed)
ERROR: unknown error
cmd:android list target -c
stdout;
stderr:
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread “main”
I installed JDK1.7, JRE, Android SDK, set all path variable with necessary parameters, have dont Everything possible. I can’t think of any single step that I might have missed. I even uninstalled everything and started from scratch getting the same result. Now this is what is interesting…I am able to successfully launch an app from within the android platform (without the Unity) but somehow, I am gettign this error when I try to build the app from Unity to the device. Someone please help!! I feel like I am wasting a lot of time figuring out by myself for over 2 days and any number of googling and searching the internet for answers is just not helping.
Thanks so much!