|
1、我在使用3.8打包app的时候,打包失败,因为插件名称变化,导致我从3.7中复制过来的插件有一些没有选择,然后对比3.7中的插件在3.8中也选择相应插件,发现在选择了这个插件(数字角标:cordova-plugin-badge)之后,打包会报错,报错信息再下面,请问下如何处理
2、我在对比的时候,发现3.7中极光有两个插件,如图
而3.8中只有一个插件
这样我在3.8中只需要选择这个插件,填写对应appkey,之后代码需要修改吗?
请帮我看看,谢谢
打包报错信息:
创建源代码工程:
生成源代码:
完成。
环境初始化:
开始......
生成应用环境准备:
android应用环境准备:
ios应用环境准备:
生成android应用包:
You have been opted out of telemetry. To change this, run: cordova telemetry on.
args.nofetch undefined
android project rename compelete!!!!!!
-----platforms: android context.hook: after_prepare
ANDROID_HOME=D:\x5work\BeX5_V3.8_pre\tools\adt-sdk
JAVA_HOME=D:\x5work\BeX5_V3.8_pre\java\jre1.8
Parallel execution with configuration on demand is an incubating feature.
:wrapper
BUILD SUCCESSFUL
Total time: 3.596 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 D:\x5work\BeX5_V3.8_pre\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_a5d8kn8jgcmhtuvgr86il7225.run(D:\x5work\BeX5_V3.8_pre\model\Native\zlz\build\src\platforms\android\build.gradle:152)
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 D:\x5work\BeX5_V3.8_pre\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 D:\x5work\BeX5_V3.8_pre\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 me.leolin:ShortcutBadger:1.1.19.
Required by:
project :
> No cached version of me.leolin:ShortcutBadger:1.1.19 available for offline mode.
> No cached version of me.leolin:ShortcutBadger:1.1.19 available for offline mode.
> No cached version of me.leolin:ShortcutBadger:1.1.19 available for offline mode.
> No cached version of me.leolin:ShortcutBadger:1.1.19 available for offline mode.
> No cached version of me.leolin:ShortcutBadger:1.1.19 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: 9.776 secs
Error: cmd: Command failed with exit code 1 Error output:
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 me.leolin:ShortcutBadger:1.1.19.
Required by:
project :
> No cached version of me.leolin:ShortcutBadger:1.1.19 available for offline mode.
> No cached version of me.leolin:ShortcutBadger:1.1.19 available for offline mode.
> No cached version of me.leolin:ShortcutBadger:1.1.19 available for offline mode.
> No cached version of me.leolin:ShortcutBadger:1.1.19 available for offline mode.
> No cached version of me.leolin:ShortcutBadger:1.1.19 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.
Picked up _JAVA_OPTIONS: -Xmx1024M
****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\c43d69e9-89db-4671-91fe-3a51d002dba6\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
|
|