构建 Android Studio 应用程序 for pepper 时出错
Getting error in build of Android Studio app for pepper
我目前正在尝试为一个名为 pepper 的人形机器人开发一个应用程序。但不幸的是,我还没来得及执行我打算编写的代码就卡住了。
这是我不断收到的错误消息,它似乎试图找到一些可能已被删除的 poms,但我不完全确定这里到底是什么失败了。
Executing tasks: [:app:assembleDebug] in project C:\Users\Fabian\AndroidStudioProjects\MyApplication
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:compileDebugAidl NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig UP-TO-DATE
> Task :app:javaPreCompileDebug UP-TO-DATE
> Task :app:checkDebugAarMetadata FAILED
> Task :app:generateDebugResValues UP-TO-DATE
> Task :app:generateDebugResources UP-TO-DATE
> Task :app:mergeDebugResources FAILED
> Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
> Task :app:extractDeepLinksDebug UP-TO-DATE
> Task :app:processDebugMainManifest FAILED
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:mergeDebugShaders UP-TO-DATE
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets FAILED
> Task :app:processDebugJavaRes NO-SOURCE
> Task :app:mergeDebugJavaResource FAILED
> Task :app:checkDebugDuplicateClasses FAILED
> Task :app:desugarDebugFileDependencies FAILED
> Task :app:mergeDebugJniLibFolders UP-TO-DATE
> Task :app:mergeDebugNativeLibs FAILED
> Task :app:validateSigningDebug UP-TO-DATE
> Task :app:writeDebugAppMetadata UP-TO-DATE
> Task :app:writeDebugSigningConfigVersions UP-TO-DATE
FAILURE: Build completed with 8 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
4: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugAssets'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
5: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugJavaResource'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
6: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
7: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:desugarDebugFileDependencies'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
8: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1s
18 actionable tasks: 8 executed, 10 up-to-date
我的 gradle 依赖项:
plugins {
id 'com.android.application'
}
android {
compileSdk 31
defaultConfig {
applicationId "com.example.test"
minSdk 23
targetSdk 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.aldebaran:qisdk:1.7.5'
implementation 'com.aldebaran:qisdk-design:1.7.5'
}
还有我的构建 gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
maven {
url 'https://android.aldebaran.com/sdk/maven'
}
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.2"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
实际上,在您提到的所有存储库(google()
、mavenCentral()
或 jcenter()
)中都找不到 QiSDK。要获取 QiSDK,请将此代码添加到 repositories {}
中的 settings.gradle(重要)
maven {
url 'http://android.aldebaran.com/sdk/maven'
allowInsecureProtocol = true
}
此外,删除 jcenter()
,现在已弃用。
不用担心 allowInsecureProtocol=true
设置,maven url 是安全的。
这是因为 QiSDK 是在它自己的 repo 中找到的,android.aldebaran.com
我有同样的错误,不得不添加
maven {
url 'http://android.aldebaran.com/sdk/maven'
allowInsecureProtocol = true
}
也把settings.gradle文件放到repositories{}
中dependencyResolutionManagement{}
.
我目前正在尝试为一个名为 pepper 的人形机器人开发一个应用程序。但不幸的是,我还没来得及执行我打算编写的代码就卡住了。
这是我不断收到的错误消息,它似乎试图找到一些可能已被删除的 poms,但我不完全确定这里到底是什么失败了。
Executing tasks: [:app:assembleDebug] in project C:\Users\Fabian\AndroidStudioProjects\MyApplication
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:compileDebugAidl NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig UP-TO-DATE
> Task :app:javaPreCompileDebug UP-TO-DATE
> Task :app:checkDebugAarMetadata FAILED
> Task :app:generateDebugResValues UP-TO-DATE
> Task :app:generateDebugResources UP-TO-DATE
> Task :app:mergeDebugResources FAILED
> Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
> Task :app:extractDeepLinksDebug UP-TO-DATE
> Task :app:processDebugMainManifest FAILED
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:mergeDebugShaders UP-TO-DATE
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets FAILED
> Task :app:processDebugJavaRes NO-SOURCE
> Task :app:mergeDebugJavaResource FAILED
> Task :app:checkDebugDuplicateClasses FAILED
> Task :app:desugarDebugFileDependencies FAILED
> Task :app:mergeDebugJniLibFolders UP-TO-DATE
> Task :app:mergeDebugNativeLibs FAILED
> Task :app:validateSigningDebug UP-TO-DATE
> Task :app:writeDebugAppMetadata UP-TO-DATE
> Task :app:writeDebugSigningConfigVersions UP-TO-DATE
FAILURE: Build completed with 8 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
4: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugAssets'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
5: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugJavaResource'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
6: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
7: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:desugarDebugFileDependencies'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
8: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.aldebaran:qisdk:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk/1.7.5/qisdk-1.7.5.pom
Required by:
project :app
> Could not find com.aldebaran:qisdk-design:1.7.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://repo.maven.apache.org/maven2/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
- https://jcenter.bintray.com/com/aldebaran/qisdk-design/1.7.5/qisdk-design-1.7.5.pom
Required by:
project :app
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1s
18 actionable tasks: 8 executed, 10 up-to-date
我的 gradle 依赖项:
plugins {
id 'com.android.application'
}
android {
compileSdk 31
defaultConfig {
applicationId "com.example.test"
minSdk 23
targetSdk 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.aldebaran:qisdk:1.7.5'
implementation 'com.aldebaran:qisdk-design:1.7.5'
}
还有我的构建 gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
maven {
url 'https://android.aldebaran.com/sdk/maven'
}
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.2"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
实际上,在您提到的所有存储库(google()
、mavenCentral()
或 jcenter()
)中都找不到 QiSDK。要获取 QiSDK,请将此代码添加到 repositories {}
中的 settings.gradle(重要)
maven {
url 'http://android.aldebaran.com/sdk/maven'
allowInsecureProtocol = true
}
此外,删除 jcenter()
,现在已弃用。
不用担心 allowInsecureProtocol=true
设置,maven url 是安全的。
这是因为 QiSDK 是在它自己的 repo 中找到的,android.aldebaran.com
我有同样的错误,不得不添加
maven {
url 'http://android.aldebaran.com/sdk/maven'
allowInsecureProtocol = true
}
也把settings.gradle文件放到repositories{}
中dependencyResolutionManagement{}
.