机器人SLAM Windows下基于rosjava Android APP项目源码编译运行

在Windows 10上使用Android Studio编译ROSJava android_apps项目时遇到资源获取失败的问题。通过使用VPN并配置gradle代理端口,成功解决了编译失败的错误。最终项目成功编译,并在Android 9手机上运行无误。关键步骤包括注释掉特定gradle版本,应用rosandroid的buildscript,并在成功登录G--o-o-g--le后设置代理。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

编译失败 :

Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://github.com/rosjava/rosjava_bootstrap/raw/kinetic/buildscript.gradle'.

有没有人,有解决办法,

https://github.com/rosjava/android_appshttps://github.com/rosjava/android_apps

项目在windows上Android studio编译失败:

---------------------------更新---------------------------------

结果:项目编译成功了

结论:   Windows 系统下,VPN,VPN, VPN才能编译成功

 编译效果

目前,apk,测试安装在Android 9手机完全没有问题。

环境:

在windows 10下可以编译,在window系统下可以编译,在windows系统下可以编译

***重点是***:VPN

我的环境是:window 10 64bit

  1. Android Studio 4.1.2
  2. https://github.com/rosjava/android_apps, 这个项目根目录:buid.gradle ,注释掉这个

 //task wrapper(type: Wrapper) {
//    gradleVersion = '4.10.2'
//}

//task wrapper(type: Wrapper) {
//    gradleVersion = '4.10.2'
//}

buildscript {
    apply from: "https://github.com/rosjava/android_core/raw/kinetic/buildscript.gradle"
}

apply plugin: 'catkin'

allprojects {
    group 'com.github.rosjava.android_apps'
    version = project.catkin.pkg.version
}

subprojects {
    apply plugin: 'ros-android'

    afterEvaluate { project ->
        android {
            packagingOptions {
                /* https://github.com/rosjava/android_core/issues/194 */
                exclude 'META-INF/LICENSE.txt'
                exclude 'META-INF/NOTICE.txt'
            }
            flavorDimensions 'default'
        }
    }
}

注意:成功测试登录G--o-o-g--le之后,编译项目之前,配置一下gradle代理的端口号,这个端口号与梯子的app对应的http端口号一致即可。

 

致谢:  Lodon大神提供的帮助与梯子!

<think>好的,我需要帮助用户找到Apache Linkis项目的Git仓库地址。首先,我应该回忆一下Apache项目通常托管在哪里。Apache软件基金会一般使用Git作为版本控制工具,并且他们的项目代码仓库通常托管在Apache自己的Git服务或者GitHub镜像上。 我记得Apache项目通常会有两个主要的代码仓库:一个是官方的Apache Git仓库,另一个是GitHub上的镜像。例如,很多Apache项目的主仓库位于https://gitbox.apache.org/repos/asf/,而GitHub镜像则是在https://github.com/apache/项目名.git。 接下来,我需要确认Linkis项目的具体仓库地址。根据Apache项目的命名惯例,Linkis的仓库可能位于https://github.com/apache/linkis.git或者https://gitbox.apache.org/repos/asf/linkis.git。为了确保准确性,我应该检查官方文档或者Apache项目页面给出的信息。 另外,用户提供的引用内容中有提到使用git命令克隆仓库,例如引用[1]中的git -C path clone git@github.com:path_to_repo.git,这可能提示GitHub的地址。但Apache项目通常使用HTTPS协议公开仓库,所以正确的URL应该是HTTPS形式的,如https://github.com/apache/linkis.git,或者通过Apache的GitBox服务,如https://gitbox.apache.org/repos/asf/linkis.git。 为了验证这一点,我可以考虑访问Apache Linkis的官方网站,通常在官网的“下载”或“源代码”部分会提供仓库的链接。假设用户无法自行访问,我需要根据已有的Apache项目结构给出最可能的URL。Apache项目的GitHub镜像仓库一般结构是https://github.com/apache/{项目名}.git,因此Linkis应该是https://github.com/apache/linkis.git。 同时,用户提供的引用[3]提到了配置Apache HTTP服务器和repo文件的位置,这可能与仓库的部署有关,但主要仓库地址还是GitHub或Apache GitBox。需要确认的是,Apache Linkis的官方仓库是否已经迁移到GitHub,或者是否仍托管在Apache自己的Git实例上。根据当前大多数Apache项目的情况,GitHub镜像更为常用,因此先给出GitHub的URL,同时也可以提供Apache GitBox的URL作为备选。 总结下来,Apache Linkis的Git仓库地址应该是: - GitHub镜像:https://github.com/apache/linkis.git - Apache GitBox:https://gitbox.apache.org/repos/asf/linkis.git 用户可能更倾向于使用GitHub的地址,因为克隆更方便。此外,Apache项目通常推荐使用GitHub镜像进行贡献和克隆,因此这个地址更可能是正确的。需要确保这两个地址都存在并且有效,但根据现有信息,优先推荐GitHub的URL。</think>Apache Linkis项目的Git仓库地址可以通过以下方式获取: 1. **官方Git仓库地址**: - GitHub镜像仓库:`https://github.com/apache/linkis.git` - Apache GitBox仓库:`https://gitbox.apache.org/repos/asf/linkis.git` 可通过以下命令克隆仓库: ```bash git clone https://github.com/apache/linkis.git ``` 或 ```bash git clone https://gitbox.apache.org/repos/asf/linkis.git ``` 2. **验证方式**: - 访问Apache Linkis官网([https://linkis.apache.org/](https://linkis.apache.org/))确认“Download”或“Source Code”部分的链接[^3]。 - 查看Apache项目目录([https://projects.apache.org/](https://projects.apache.org/))中的注册信息。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值