起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: 109492927

[处理中6] 官网下载的铛铛应用,里面有这么个插件,发图片报错?

[复制链接]

60

主题

138

帖子

301

积分

中级会员

Rank: 3Rank: 3

积分
301
QQ
 楼主| 发表于 2017-11-7 11:37:43 | 显示全部楼层
本帖最后由 109492927 于 2017-11-7 13:20 编辑
liangyongfei 发表于 2017-11-7 11:23
你使用到了这个插件吗??
cordova-plugin-jcore

3.6的不存在,但是不报错,。3.7的有这个plugin但是里面是空的,第二次打包我去掉了这个选项,但是又报其他错了,如下
生成android应用包:
      Running command: cmd "/s /c "E:\wex37\model\Native\test\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
      ANDROID_HOME=E:\wex37\tools\adt-sdk
      JAVA_HOME=E:\wex37\java\jre1.8
      Running: E:\wex37\model\Native\test\build\src\platforms\android\gradlew cdvBuildDebug -b E:\wex37\model\Native\test\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
      Starting a Gradle Daemon (subsequent builds will be faster)
      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 E:\wex37\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.
      
      embedded
      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_78460em5wt6w4optbsn8a8793.run(E:\wex37\model\Native\test\build\src\platforms\android\build.gradle:158)
      WARNING: The `android.dexOptions.incremental` property is deprecated and it has no effect on the build process.
      org.xwalk:xwalk_core_library:15+
      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 E:\wex37\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 E:\wex37\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 ':_armv7DebugApkCopy'.
         > Could not resolve com.github.tony19:logback-android-core:1.1.1-6.
           Required by:
               project :
            > No cached version of com.github.tony19:logback-android-core:1.1.1-6 available for offline mode.
            > No cached version of com.github.tony19:logback-android-core:1.1.1-6 available for offline mode.
            > No cached version of com.github.tony19:logback-android-core:1.1.1-6 available for offline mode.
         > Could not resolve com.github.tony19:logback-android-classic:1.1.1-6.
           Required by:
               project :
            > No cached version of com.github.tony19:logback-android-classic:1.1.1-6 available for offline mode.
            > No cached version of com.github.tony19:logback-android-classic:1.1.1-6 available for offline mode.
            > No cached version of com.github.tony19:logback-android-classic:1.1.1-6 available for offline mode.
         > Could not resolve org.slf4j:slf4j-api:1.7.21.
           Required by:
               project :
            > No cached version of org.slf4j:slf4j-api:1.7.21 available for offline mode.
            > No cached version of org.slf4j:slf4j-api:1.7.21 available for offline mode.
            > No cached version of org.slf4j:slf4j-api:1.7.21 available for offline mode.
         > Could not resolve com.google.android.gms:play-services-location:+.
           Required by:
               project :
            > No cached version listing for com.google.android.gms:play-services-location:+ available for offline mode.
            > No cached version listing for com.google.android.gms:play-services-location:+ available for offline mode.
            > No cached version listing for com.google.android.gms:play-services-location:+ 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: 14.703 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
      
      E:\wex37\model\Native\test\build\src\platforms\android\cordova\node_modules\q\q.js:126
                          throw e;
                          ^
      Error code 1 for command: cmd with args: /s /c "E:\wex37\model\Native\test\build\src\platforms\android\gradlew cdvBuildDebug -b E:\wex37\model\Native\test\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\f8d9753f-dd45-4dfc-bc51-e6af988848a2\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
回复 支持 反对

使用道具 举报

60

主题

138

帖子

301

积分

中级会员

Rank: 3Rank: 3

积分
301
QQ
 楼主| 发表于 2017-11-7 15:46:03 | 显示全部楼层
liangyongfei 发表于 2017-11-7 11:23
你使用到了这个插件吗??
cordova-plugin-jcore

3.7打包报错,。。。。
回复 支持 反对

使用道具 举报

发表于 2017-11-7 15:58:45 | 显示全部楼层
109492927 发表于 2017-11-7 15:46
3.7打包报错,。。。。

你没有开启360等杀毒软件吧
有的话,需要退出杀毒软件! 重新解压!
建议先重新打包下平台案例是否正常?
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

60

主题

138

帖子

301

积分

中级会员

Rank: 3Rank: 3

积分
301
QQ
 楼主| 发表于 2017-11-7 16:02:38 | 显示全部楼层
liangyongfei 发表于 2017-11-7 15:58
你没有开启360等杀毒软件吧
有的话,需要退出杀毒软件! 重新解压!
建议先重新打包下平台案例是否正常? ...

我从用电脑开始就是裸奔,从来不安装应用以外的垃圾软件,绝对是纯正系统
回复 支持 反对

使用道具 举报

发表于 2017-11-7 16:07:06 | 显示全部楼层
109492927 发表于 2017-11-7 16:02
我从用电脑开始就是裸奔,从来不安装应用以外的垃圾软件,绝对是纯正系统 ...

http://doc.wex5.com/wex5-app-question-list-0004/

试试这个链接

还有就是,先打包平台自带案例试试!保证环境没问题!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

60

主题

138

帖子

301

积分

中级会员

Rank: 3Rank: 3

积分
301
QQ
 楼主| 发表于 2017-11-7 16:21:59 | 显示全部楼层
liangyongfei 发表于 2017-11-7 16:07
http://doc.wex5.com/wex5-app-question-list-0004/

试试这个链接

那的先打包才能生成应用文件夹,我改了后,再打包,它就把 我之前的文件夹清空了,相当于没改啊
回复 支持 反对

使用道具 举报

发表于 2017-11-7 16:27:50 | 显示全部楼层
109492927 发表于 2017-11-7 16:21
那的先打包才能生成应用文件夹,我改了后,再打包,它就把 我之前的文件夹清空了,相当于没改啊 ...

那你修改模板资源试试吧!
/Native/templates/normal/build.properties
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

60

主题

138

帖子

301

积分

中级会员

Rank: 3Rank: 3

积分
301
QQ
 楼主| 发表于 2017-11-7 17:20:06 | 显示全部楼层
liangyongfei 发表于 2017-11-7 16:27
那你修改模板资源试试吧!
/Native/templates/normal/build.properties

      符号:   类 Intent
        位置: 类 BaiduLocation
      E:\wex37\model\Native\test\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:177: 错误: 找不到符号
            Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
                                       ^
        符号:   变量 Settings
        位置: 类 BaiduLocation
      :compileDebugJavaWithJavac FAILED
      
      BUILD FAILED
      
      Total time: 42.393 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:\wex37\model\Native\test\build\src\platforms\android\cordova\node_modules\q\q.js:126
                          throw e;
                          ^
      Error code 1 for command: cmd with args: /s /c "E:\wex37\model\Native\test\build\src\platforms\android\gradlew cdvBuildDebug -b E:\wex37\model\Native\test\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true"
      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\f030443f-d563-4195-aa54-d22fd7b3dd5c\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
回复 支持 反对

使用道具 举报

发表于 2017-11-7 17:22:31 | 显示全部楼层
109492927 发表于 2017-11-7 17:20
符号:   类 Intent
        位置: 类 BaiduLocation
      E:\wex37\model\Native\test\build\src\ ...

BaiduLocation  这个插件有bug

http://docs.wex5.com/wex5-app-question-list-2106/

这个链接,你下载 com.justep.cordova.plugin.baidulocation  这个插件替换下吧! 
3.7这个插件存在bug的
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

60

主题

138

帖子

301

积分

中级会员

Rank: 3Rank: 3

积分
301
QQ
 楼主| 发表于 2017-11-8 09:09:54 | 显示全部楼层
本帖最后由 109492927 于 2017-11-8 09:19 编辑

我替换了百度插件,还报错\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:122: 错误: 方法不会覆盖或实现超类型的方法
  :compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).      E:\wex37\model\Native\test3\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:122: 错误: 方法不会覆盖或实现超类型的方法        @Override        ^      E:\wex37\model\Native\test3\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:144: 错误: 找不到符号              if(!cordova.hasPermission(Manifest.permission.ACCESS_FINE_LOCATION)){                         ^        符号:   方法 hasPermission(String)        位置: 类型为CordovaInterface的变量 cordova      E:\wex37\model\Native\test3\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:148: 错误: 找不到符号              if(!cordova.hasPermission(Manifest.permission.ACCESS_COARSE_LOCATION)){                         ^        符号:   方法 hasPermission(String)        位置: 类型为CordovaInterface的变量 cordova      E:\wex37\model\Native\test3\build\src\platforms\android\src\com\justep\cordova\plugin\baidulocation\BaiduLocation.java:155: 错误: 找不到符号                cordova.requestPermissions(this, 0, permissions);                       ^        符号:   方法 requestPermissions(BaiduLocation,int,String[])        位置: 类型为CordovaInterface的变量 cordova      注: 某些输入文件使用或覆盖了已过时的 API。      注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。      注: 某些输入文件使用了未经检查或不安全的操作。      注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。      4 个错误            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.      :compileDebugJavaWithJavac FAILED            BUILD FAILED            Total time: 16.846 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            E:\wex37\model\Native\test3\build\src\platforms\android\cordova\node_modules\q\q.js:126                          throw e;                          ^      Error code 1 for command: cmd with args: /s /c "E:\wex37\model\Native\test3\build\src\platforms\android\gradlew cdvBuildDebug -b E:\wex37\model\Native\test3\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true"      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\cc83e926-9249-413d-9617-7f931caba909\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
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-5-3 17:44 , Processed in 0.076484 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表