Why does QiSDK fail to resolve?

139 Views Asked by At

I'm trying to make an application for SoftBank's robot Pepper using Android Studio, Java and QiSDK as recommended on their website. After I create a robot application that adds the needed QiSDK dependencies to the project, those would not resolve after a gradle project sync. Image of a warning message.

I tried to create a project on different devices, but got the same result. Is it maybe a problem that I am using a newer version of Android Studio 2021.3.1 Patch 1?

1

There are 1 best solutions below

1
Emile On

Chances are it's because you're missing a link to the repository in which qisdk can be found. You need to add this to your settings.gradle file, in the dependencyResolutionManagement's section in repositories

     maven {
        url 'https://android.aldebaran.com/sdk/maven'
    }

Mine looks like this:

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven {
            url 'https://android.aldebaran.com/sdk/maven'
        }
    }
}

Initially, the Pepper plugin for Android Studio would edit the project's build.gradle to add this bit, but with newer versions of Android Studio, this repository config moved from the project's build.gradle to setting.gradle, so that line doesn't get updated any more, you need to add it manually.