0
林建設上一個離子的應用程序,當我運行此::transformClassesWithDexForDebug錯誤建築離子應用
ionic build android
它給了我這樣的:
:compileDebugSources UP-TO-DATE
:transformClassesWithDexForDebugjava.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
FAILED
.....
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
Exception in thread "main"
BUILD FAILED
Total time: 3.567 secs
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformClassesWithDexForDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files (x86)\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: Error code 1 for command: cmd with args: /s,/c,"C:\Users\ggfre\Desktop\primerapp\platforms\android\gradlew cdvBuildDebug -b C:\Users\ggfre\Desktop\primerapp\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
我真的不知道還有什麼這樣做,我已經修改了文件的gradle並重新安裝了Android SDK