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

QQ登录

只需一步,快速开始

查看: 2382|回复: 5

[处理中3] 使用org.flybuy.cordova.background-location-services后编译失败的问题

[复制链接]

55

主题

207

帖子

551

积分

高级会员

Rank: 4

积分
551
QQ
发表于 2017-1-16 11:19:13 | 显示全部楼层 |阅读模式
本帖最后由 forrlx 于 2017-1-16 11:26 编辑

添加上述插件后,编译失败,告警信息如下:  * What went wrong:   A problem occurred configuring root project 'android'.      BUILD FAILED> Could not resolve all dependencies for configuration ':_debugCompile'.      Total time: 2.629 secs         > Could not resolve com.google.android.gms:play-services-location:+.        Required by:            :android:unspecified         > 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.   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      D:\WeX5_V3.5\model\Native\test1\build\src\platforms\android\cordova\node_modules\q\q.js:126                       throw e;                       ^   Error code 1 for command: cmd with args: /s /c "D:\WeX5_V3.5\model\Native\test1\build\src\platforms\android\gradlew cdvBuildDebug -b D:\WeX5_V3.5\model\Native\test1\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
请帮忙分析一下如何解决,谢谢!


err1.png

cordova-background-geolocation-services-master.zip

53.97 KB, 下载次数: 91

发表于 2017-1-16 14:17:20 | 显示全部楼层
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

55

主题

207

帖子

551

积分

高级会员

Rank: 4

积分
551
QQ
 楼主| 发表于 2017-1-16 16:03:56 | 显示全部楼层
本帖最后由 forrlx 于 2017-1-16 16:08 编辑

应该不是这个原因,我开了vpn后能访问google了。但仍然出现了如下错误:生成android应用包:   Running command: cmd "/s /c "D:\WeX5_V3.5\model\Native\test1\build\src\platforms\android\cordova\build.bat --debug""   ANDROID_HOME=D:\WeX5_V3.5\tools\adt-sdk   JAVA_HOME=D:\WeX5_V3.5\java\jre1.8   Running: D:\WeX5_V3.5\model\Native\test1\build\src\platforms\android\gradlew cdvBuildDebug -b D:\WeX5_V3.5\model\Native\test1\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true   Incremental java compilation is an incubating feature.      FAILURE: Build failed with an exception.      * What went wrong:   A problem occurred configuring root project 'android'.      BUILD FAILED> Could not resolve all dependencies for configuration ':_debugCompile'.      Total time: 6.655 secs         > Could not find any matches for com.google.android.gms:play-services-location:+ as no versions of com.google.android.gms:play-services-location are available.        Searched in the following locations:            file:/D:/WeX5_V3.5/tools/maven/repo/com/google/android/gms/play-services-location/maven-metadata.xml            file:/D:/WeX5_V3.5/tools/maven/repo/com/google/android/gms/play-services-location/            https://repo1.maven.org/maven2/c ... /maven-metadata.xml            https://repo1.maven.org/maven2/c ... -services-location/            file:/D:/WeX5_V3.5/tools/adt-sdk/extras/android/m2repository/com/google/android/gms/play-services-location/maven-metadata.xml            file:/D:/WeX5_V3.5/tools/adt-sdk/extras/android/m2repository/com/google/android/gms/play-services-location/        Required by:            :android:unspecified      * Try:   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.      D:\WeX5_V3.5\model\Native\test1\build\src\platforms\android\cordova\node_modules\q\q.js:126                       throw e;                       ^   Error code 1 for command: cmd with args: /s /c "D:\WeX5_V3.5\model\Native\test1\build\src\platforms\android\gradlew cdvBuildDebug -b D:\WeX5_V3.5\model\Native\test1\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true"   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   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
====================================分割线===========================================================================
插件的介绍中有如下说明:
Setup:Installation:

Cordova :

cordova plugin add https://github.com/pmwisdom/cord ... cation-services.git --save

Meteor :

meteor add mirrorcell:background-geolocation-plus

err2.png
回复 支持 反对

使用道具 举报

发表于 2017-1-16 16:24:12 | 显示全部楼层
forrlx 发表于 2017-1-16 16:03
应该不是这个原因,我开了vpn后能访问google了。但仍然出现了如下错误:生成android应用包:   Running com ...

日志信息可以发的工整点吗??好难看出错误啊!
请问这个插件是你自己写的吗??
是自定义插件吗??
http://docs.wex5.com/wex5-app-question-list-2051
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

55

主题

207

帖子

551

积分

高级会员

Rank: 4

积分
551
QQ
 楼主| 发表于 2017-1-18 21:53:07 | 显示全部楼层
liangyongfei 发表于 2017-1-16 16:24
日志信息可以发的工整点吗??好难看出错误啊!
请问这个插件是你自己写的吗??
是自定义插件吗??

这个问题高了一天找到原因了,但怎么解决还得需要X5帮助一下:
请先看下这个连接:https://github.com/EddyVerbrugge ... oogleplus/issues/77
解决方法:You need to have Android Support Repository and Android Support Library installed in the Android SDK manager. This worked for me.
但是weX5配套的Android SDK怎么添加库,需要指导一下,谢谢!
回复 支持 反对

使用道具 举报

发表于 2017-1-19 14:08:53 | 显示全部楼层
forrlx 发表于 2017-1-18 21:53
这个问题高了一天找到原因了,但怎么解决还得需要X5帮助一下:
请先看下这个连接:https://github.com/Ed ...

你是想引入jar包吗??
http://docs.wex5.com/wex5-app-question-list-2052
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-7-20 07:10 , Processed in 0.077111 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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