|
哪位大哥帮忙看看,我的Wex5没法打包了,至从装了android studio后就老出问题,干脆把as卸载了,但是还是打不起包,android小白,急需帮助啊!
生成android应用包:
Running command: cmd "/s /c "G:\WeX5_V3.7\model\Native\绉诲姩鎶ゅ+绔橽build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
ANDROID_HOME=G:\WeX5_V3.7\tools\adt-sdk
JAVA_HOME=G:\WeX5_V3.7\java\jre1.8
Running: G:\WeX5_V3.7\model\Native\绉诲姩鎶ゅ+绔橽build\src\platforms\android\gradlew cdvBuildDebug -b G:\WeX5_V3.7\model\Native\绉诲姩鎶ゅ+绔橽build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
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 G:\WeX5_V3.7\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_3xj70y4t6q93qzr2xbh60bcqu.run(G:\WeX5_V3.7\model\Native\移动护士站\build\src\platforms\android\build.gradle:155)
WARNING: The `android.dexOptions.incremental` property is deprecated and it has no effect on the build process.
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 G:\WeX5_V3.7\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.
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 G:\WeX5_V3.7\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.
Incremental java compilation is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
> Could not resolve com.android.support:support-v4:26+.
Required by:
project :
> No cached version listing for com.android.support:support-v4:26+ available for offline mode.
> No cached version listing for com.android.support:support-v4:26+ 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.
BUILD FAILED
Total time: 3.636 secs
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to build this project
G:\WeX5_V3.7\model\Native\绉诲姩鎶ゅ+绔橽build\src\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "G:\WeX5_V3.7\model\Native\绉诲姩鎶ゅ+绔橽build\src\platforms\android\gradlew cdvBuildDebug -b G:\WeX5_V3.7\model\Native\绉诲姩鎶ゅ+绔橽build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
Error: cmd: Command failed with exit code 1
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildAndroid" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
C:\Users\ADMINI~1\AppData\Local\Temp\121714a4-468a-46f4-9d69-a4d765a9b8b5\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)
at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)
at com.justep.deploy.app.utils.Builder.main(Unknown Source)
****ERROR****: 子任务 "java" 执行失败。
****ERROR****: 任务 "pack" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: -3
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html |
|