我正在尝试创建简单的cordova示例,然后执行以下步骤.当我添加平台时,显示错误提示“ Unsupported major.minor version 52.0”.请帮忙.提前致谢.
脚步:
1.通过npm install -g cordova安装cordova
2.由cordova创建了一个应用,创建了一个hello com.example.hello HelloWorld
3.尝试通过cordova平台添加android平台添加android平台
要解决该错误,请尝试安装androID sdk 23,24和25
4.还检查了科尔多瓦的要求,它显示安装了gradle.
我删除了Android平台,并尝试再次添加它,遇到了同样的错误
错误:
cordova platform add androIDAdding androID project...Creating Cordova project for the AndroID platform: Path: platforms\androID Package: com.example.hello name: HelloWorld Activity: MainActivity AndroID target: androID-24Subproject Path: CordovalibAndroID project created with cordova-androID@6.0.0Installing "cordova-plugin-whiteList" for androIDANDROID_HOME=C:\Users\Richa\AppData\Local\AndroID\sdkJAVA_HOME=C:\Program files\Java\jre7Subproject Path: CordovalibFAILURE: Build Failed with an exception.* Where:Build file 'G:\Pogeyan\Projects\cordova test\sample\hello\platforms\androID\build.gradle' line: 20* What went wrong:A problem occurred evaluating root project 'androID'.> java.lang.UnsupportedClassversionError: com/androID/build/gradle/AppPlugin : Unsupported major.minor version 52.0* Try:Run with --stacktrace option to get the stack trace. Run with --info or --deBUG option to get more log output.BUILD FailedTotal time: 5.76 secsFailed to install 'cordova-plugin-whiteList':Error: cmd: Command Failed with exit code 1 at ChildProcess.whenDone (G:\Pogeyan\Projects\cordova test\sample\hello\platforms\androID\cordova\node_modules\cordova-common\src\superspawn.Js:169:23) at emitTwo (events.Js:87:13) at ChildProcess.emit (events.Js:172:7) at maybeClose (internal/child_process.Js:827:16) at Process.ChildProcess._handle.onexit (internal/child_process.Js:211:5)Error: cmd: Command Failed with exit code 1
节点版本:v4.4.7
Cordova版本:6.4.0
解决方法:
我有同样的错误.请降级cordova版本:
npm uninstall -g cordovanpm install -g cordova@5.4.1
总结 以上是内存溢出为你收集整理的科尔多瓦添加平台失败,但异常,不支持major.minor 52.0版全部内容,希望文章能够帮你解决科尔多瓦添加平台失败,但异常,不支持major.minor 52.0版所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)