科尔多瓦运行android错误:线程“ main”中的异常java.lang.NullPointerException

时间:2019-12-06 15:24:37

标签: java android cordova gradle android-sdk-tools

我正在尝试运行cordova项目,但是出现此错误:

  

cordova-android-support-gradle-release:Android平台:V6       cordova-android-support-gradle-release:将自定义版本“ 27. +”写入   C:\ Users \ admin \ Desktop \ Proyecto \ pawpals1 \ platforms \ android \ build.gradle       cordova-android-support-gradle-release:将自定义版本“ 27. +”写入   C:\ Users \ admin \ Desktop \ Proyecto \ pawpals1 \ platforms \ android \ cordova-android-support-gradle-release \ pawpals-cordova-android-support-gradle-release.gradle       ANDROID_HOME = C:\ Program Files \ Android \ sdk       JAVA_HOME = C:\ Program Files(x86)\ Java \ jdk1.8.0_231       子项目路径:CordovaLib       线程“主”中的异常java.lang.NullPointerException               在org.gradle.wrapper.PathAssembler.getDistName(PathAssembler.java:84)               在org.gradle.wrapper.PathAssembler.getDistribution(PathAssembler.java:40)               在org.gradle.wrapper.Install.createDist(Install.java:44)               在org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)               在org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:63)       cmd:命令失败,退出代码为1错误输出:       线程“主”中的异常java.lang.NullPointerException               在org.gradle.wrapper.PathAssembler.getDistName(PathAssembler.java:84)               在org.gradle.wrapper.PathAssembler.getDistribution(PathAssembler.java:40)               在org.gradle.wrapper.Install.createDist(Install.java:44)               在org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)               在org.gradle.wrapper.GradleWr

我检查了环境变量,并安装了gradle。我也删除了平台并再次添加,我从C:/ users / admin中删除了.gradle文件夹,但仍无法正常工作,并且我将Java版本从1.5更改为1.8,因为我遇到了与那。 我不知道该怎么办。

0 个答案:

没有答案