|
没有使用cordova插件。但是打包时,提示有错。如下:
增加插件:
使用到的插件: [cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils, com.justep.cordova.plugin.engine.tencent, cordova-plugin-x-toast, cordova-plugin-inappbrowser, cordova-plugin-app-version, cordova-plugin-keyboard, cordova-plugin-spinner-dialog, com.justep.cordova.plugin.bmap, cordova-plugin-geolocation]
开始安装插件......
开始准备插件参数......
插件 "cordova-plugin-splashscreen" 参数如下:
插件 "cordova-plugin-app-preferences" 参数如下:
插件 "cordova-plugin-file" 参数如下:
插件 "cordova-plugin-file-transfer" 参数如下:
请求访问相册时的提示(TRANSFER_PHOTOLIBRARY_USAGE_DESCRIPTION):App需要您的同意才可以访问相册
插件 "cordova-plugin-network-information" 参数如下:
插件 "cordova-plugin-zip" 参数如下:
插件 "cordova-plugin-inappbrowser" 参数如下:
插件 "cordova-plugin-x-toast" 参数如下:
插件 "com.justep.cordova.plugin.app.utils" 参数如下:
插件 "com.justep.cordova.plugin.engine.tencent" 参数如下:
引擎选择方式(webViewEngine):auto
插件 "cordova-plugin-app-version" 参数如下:
插件 "cordova-plugin-keyboard" 参数如下:
插件 "cordova-plugin-spinner-dialog" 参数如下:
插件 "com.justep.cordova.plugin.bmap" 参数如下:
插件 "com.justep.cordova.plugin.baidulocation" 参数如下:
插件 "cordova-plugin-geolocation" 参数如下:
百度定位SDK开发秘钥,AK的申请地址为:http://lbsyun.baidu.com/apiconsole/key(android_AK):iOxsL9Z27dKiNtY5s4m8vRjUyZiNwZOC
插件参数准备完成
:JustepGetContent:javaPreCompileRelease
:JustepGetContent:compileReleaseJavaWithJavac
:JustepGetContent:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: E:\HTM5\wex5\WeX5_V3.7\model\Native\Tracker\build\src\platforms\android\JustepGetContent\src\main\java\com\justep\x5\support\chooser\FileUploadChooserActivity.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
:javaPreCompileDebug
:compileDebugJavaWithJavac
:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
E:\HTM5\wex5\WeX5_V3.7\model\Native\Tracker\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:160: 错误: 找不到符号
LocationManager myLocationManager = (LocationManager) cordova.getActivity().getSystemService(Context.LOCATION_SERVICE);
^
符号: 类 LocationManager
位置: 类 BaiduLocation
E:\HTM5\wex5\WeX5_V3.7\model\Native\Tracker\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:160: 错误: 找不到符号
LocationManager myLocationManager = (LocationManager) cordova.getActivity().getSystemService(Context.LOCATION_SERVICE);
^
符号: 类 LocationManager
位置: 类 BaiduLocation
BUILD FAILED
Total time: 33.031 secs
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
11 个错误
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
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
E:\HTM5\wex5\WeX5_V3.7\model\Native\Tracker\build\src\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "E:\HTM5\wex5\WeX5_V3.7\model\Native\Tracker\build\src\platforms\android\gradlew cdvBuildDebug -b E:\HTM5\wex5\WeX5_V3.7\model\Native\Tracker\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\00101944\AppData\Local\Temp\b1c87b50-4686-4548-b8ce-824c67f74cda\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
|
|