android_core在catkin_make中遇到的ERRO

2019-03-29  本文已影响0人  虚无一代

问题经过

之前安装官网(http://wiki.ros.org/android/Tutorials/kinetic/Installation%20-%20ROS%20Development%20Environment)的配置在catkin_make的时候ERROR
至于ERROR是什么,千奇百怪。
比如找不到SDK location,需要配置local.properties:sdk.dir。于是我在root目录建了该文件,写入了我的sdk位置,然后又报了下面的错:

BUILD SUCCESSFUL in 26s
218 actionable tasks: 218 executed
Built target gradle-android_core

FAILURE: Build failed with an exception.

*   Where:
    Script '[https://github.com/rosjava/rosjava_bootstrap/raw/kinetic/buildscript.gradle](https://github.com/rosjava/rosjava_bootstrap/raw/kinetic/buildscript.gradle)' line: 44

*   What went wrong:
    A problem occurred evaluating script.

> Could not find method google() for arguments [] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.

*   Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

总之解决了一个又出来一个。

问题解决

最后是在android_core的issue里找到了问题,主要就是contributer更新了gradle,用户也需要更新。
我最后是跟着contributer的指导一步步做的,然后就没问题了:


I just went through the steps once again and I didn't find any issue; have you cleaned android_coreworkspace after you updated your rosjava installation and so forth?

This is what I did:

mkdir -p ~/android_core_ws/src
cd ~/android_core_ws/src
git clone https://github.com/rosjava/android_core
export ANDROID_HOME=~/Android/Sdk
cd ~/android_core_ws
catkin_make

Within 20 seconds I had android_core compiled. Following these steps using rosjava from source and a clean start for android_core still don't work for you?


如果按照这个来还有问题,就检查一下你的gradle的版本
更新的方法见:
https://ywnz.com/linuxjc/3460.html

最后附上找到解答的github界面:
https://github.com/rosjava/rosjava_bootstrap/pull/73

上一篇下一篇

猜你喜欢

热点阅读