|

楼主 |
发表于 2018-7-18 10:36:12
|
显示全部楼层
本帖最后由 bh_chen 于 2018-7-18 10:38 编辑
为了解决打包APP失败的问题,这几天重装了电脑系统,再次打包本地APP出现了以下错误,请问这个怎么解决?
- <div> 生成android应用包:</div><div> </div><div> You have been opted out of telemetry. To change this, run: cordova telemetry on.</div><div> args.nofetch undefined</div><div> android project rename compelete!!!!!!</div><div> ANDROID_HOME=E:\WeX5_3.8\tools\adt-sdk</div><div> JAVA_HOME=E:\WeX5_3.8\java\jre1.8</div><div> Parallel execution with configuration on demand is an incubating feature.</div><div> :wrapper</div><div> </div><div> BUILD SUCCESSFUL</div><div> </div><div> Total time: 15.864 secs</div><div> Subproject Path: CordovaLib</div><div> Subproject Path: JustepGetContent</div><div> NDK is missing a "platforms" directory.</div><div> If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to E:\WeX5_3.8\tools\adt-sdk\ndk-bundle.</div><div> If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.</div><div> </div><div> The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.</div><div> <span style="white-space:pre"> </span>at build_boqb9aq841c7lrg9m4p4uwfn4.run(E:\WeX5_3.8\model\Native\锟斤拷途牛\build\src\platforms\android\build.gradle:148)</div><div> </div><div> FAILURE: Build failed with an exception.</div><div> </div><div> * What went wrong:</div><div> A problem occurred configuring root project 'android'.</div><div> > Could not resolve all dependencies for configuration ':_debugApk'.</div><div> > A problem occurred configuring project ':CordovaLib'.</div><div> > Could not resolve all files for configuration ':CordovaLib:classpath'.</div><div> > Could not download android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5)</div><div> > Could not get resource 'https://repo1.maven.org/maven2/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.jar'.</div><div> > Could not HEAD 'https://repo1.maven.org/maven2/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.jar'.</div><div> > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</div><div> > Could not download gradle-bintray-plugin.jar (com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3)</div><div> > Could not get resource 'https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.7.3/gradle-bintray-plugin-1.7.3.jar'.</div><div> > Could not HEAD 'https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.7.3/gradle-bintray-plugin-1.7.3.jar'.</div><div> > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</div><div> > Could not download http-builder.jar (org.codehaus.groovy.modules.http-builder:http-builder:0.7.2)</div><div> > Could not get resource 'https://jcenter.bintray.com/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.jar'.</div><div> > Could not HEAD 'https://jcenter.bintray.com/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.jar'.</div><div> > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</div><div> > Could not download maven-ant-tasks.jar (org.apache.maven:maven-ant-tasks:2.1.3)</div><div> > Could not get resource 'https://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar'.</div><div> > Could not HEAD 'https://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar'.</div><div> > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</div><div> > Could not download httpclient.jar (org.apache.httpcomponents:httpclient:4.2.1)</div><div> </div><div> BUILD FAILED</div>
复制代码
|
|