“java.lang.reflect.InvocationTargetException”出错

时间:2017-08-28 06:32:00

标签: android android-studio

我刚刚导入项目时在Android Studio遇到问题, 我认为这些来源没有问题,因为它可以在其他计算机上运行。

但我找不到解决此错误的方法。

Error:Android Dex: [appPortal] Exception in thread "main" java.lang.reflect.InvocationTargetException
Error:Android Dex: [appPortal] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Error:Android Dex: [appPortal] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
Error:Android Dex: [appPortal] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Error:Android Dex: [appPortal] at java.lang.reflect.Method.invoke(Method.java:606)
Error:Android Dex: [appPortal] at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:130)
Error:Android Dex: [appPortal] Caused by: java.lang.UnsupportedClassVersionError: com/android/dx/command/dexer/Main : Unsupported major.minor version 52.0
Error:Android Dex: [appPortal] at java.lang.ClassLoader.defineClass1(Native Method)
Error:Android Dex: [appPortal] at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
Error:Android Dex: [appPortal] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
Error:Android Dex: [appPortal] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
Error:Android Dex: [appPortal] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
Error:Android Dex: [appPortal] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
Error:Android Dex: [appPortal] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
Error:Android Dex: [appPortal] at java.security.AccessController.doPrivileged(Native Method)
Error:Android Dex: [appPortal] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
Error:Android Dex: [appPortal] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
Error:Android Dex: [appPortal] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
Error:Android Dex: [appPortal] at org.jetbrains.android.compiler.tools.AndroidDxRunner.loadDex(AndroidDxRunner.java:75)
Error:Android Dex: [appPortal] at org.jetbrains.android.compiler.tools.AndroidDxRunner.runDex(AndroidDxRunner.java:128)
Error:Android Dex: [appPortal] at org.jetbrains.android.compiler.tools.AndroidDxRunner.main(AndroidDxRunner.java:294)
Error:Android Dex: [appPortal] ... 5 more

0 个答案:

没有答案