我使用的是java版本" 1.7.0_80" Java(TM)SE运行时环境(版本1.7.0_80-b15) Java HotSpot(TM)64位服务器VM(内置24.80-b11,混合模式)
升级后使用最新的钛sdk作为5.3.0.GA和android sdk,我无法摩擦模拟器,它给了我错误日志,如下所述
[INFO] : Running dexer: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java "-Xmx512M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/Users/Ashishgajjar/Library/android-sdk/platform-tools" "-jar" "/Users/Ashishgajjar/Library/android-sdk/build-tools/24.0.0/lib/dx.jar" "--dex" "--output=/Users/Ashishgajjar/Documents/Appcelerator_Studio_Workspace/eswsdvr1/build/android/bin/classes.dex" "/Users/Ashishgajjar/Documents/Appcelerator_Studio_Workspace/eswsdvr1/build/android/bin/classes" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/lib/titanium-verify.jar" "/Library/Application Support/Titanium/modules/android/ti.paint/2.0/paint.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/kroll-v8.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-analytics.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/aps-analytics.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-android.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/jaxen-1.1.1.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/ti-commons-codec-1.3.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/kroll-common.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/titanium.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-app.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-ui.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-filesystem.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-media.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-appcompat.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/android-support-v4.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/android-support-v7-appcompat.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-cardview.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/cardview-v7-23.0.1.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-locale.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-network.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-xml.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-utils.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-geolocation.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-accelerometer.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-contacts.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-map.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-gesture.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-calendar.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-platform.jar" "/Users/Ashishgajjar/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.GA/android/modules/titanium-database.jar"
[ERROR] : Failed to run dexer:
[ERROR] :
[ERROR] : Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
[ERROR] : at java.lang.ClassLoader.defineClass1(Native Method)
[ERROR] : at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
[ERROR] : at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[ERROR] : at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
[ERROR] : at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
[ERROR] : at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[ERROR] : at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[ERROR] : at java.security.AccessController.doPrivileged(Native Method)
[ERROR] : at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[ERROR] : at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[ERROR] : at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[ERROR] : at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[ERROR] : at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
请提供解决上述问题的指导 感谢
答案 0 :(得分:0)
这意味着,您正在尝试使用JDK 1.8(版本52.0)的android编译库,运行时间为1.7
这里,com/android/dx/command/Main
使用JDK 1.8编译,但您当前的环境指向jdk1.7.0_80.jdk