|
本帖最后由 lky 于 2018-1-29 11:00 编辑
Mac 下出错
生成android应用包:
You have been opted out of telemetry. To change this, run: cordova telemetry on.
args.nofetch undefined
android project rename compelete!!!!!!
ANDROID_HOME=/Users/jerome/Downloads/WeX5_3.8_pre-mac/tools/adt-sdk
JAVA_HOME=/Users/jerome/Downloads/WeX5_3.8_pre-mac/java/jdk1.8-x64/Contents/Home
Parallel execution with configuration on demand is an incubating feature.
:wrapper
BUILD SUCCESSFUL
Total time: 2.158 secs
Subproject Path: CordovaLib
Subproject Path: JustepGetContent
NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /Users/jerome/Downloads/WeX5_3.8_pre-mac/tools/adt-sdk/ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_92edlbw7m3vp1rwvq4edux1fq.run(/Users/jerome/Downloads/WeX5_3.8_pre-mac/model/Native/WeX5论坛/build/src/platforms/android/build.gradle:148)
BUILD FAILED
Total time: 3.838 secs
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugApk'.
> A problem occurred configuring project ':CordovaLib'.
> Could not resolve all files for configuration ':CordovaLib:classpath'.
> Could not download android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5): No cached version available for offline mode
...
> Could not download nekohtml.jar (nekohtml:nekohtml:1.9.6.2): No cached version available for offline mode
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
/var/folders/ws/9ll3pq89363bzg9qcbvjkjqh0000gn/T/4507b074-588a-4978-a577-a02c92378e02/pack.xml:91: exec returned: 1
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
Error: /Users/jerome/Downloads/WeX5_3.8_pre-mac/model/Native/WeX5论坛/build/src/platforms/android/gradlew: Command failed with exit code 1 Error output: at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)
Picked up _JAVA_OPTIONS: -Xmx1024M
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugApk'.
> A problem occurred configuring project ':CordovaLib'.
> Could not resolve all files for configuration ':CordovaLib:classpath'.
> Could not download android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5): No cached version available for offline mode
> Could not download gradle-bintray-plugin.jar (com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3): No cached version available for offline mode
at com.justep.deploy.app.utils.Builder.main(Unknown Source)
...
> Could not download nekohtml.jar (nekohtml:nekohtml:1.9.6.2): No cached version available for offline mode
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildAndroid" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: exec returned: 1
|
|