找不到 com.zendesk:support-providers:5.0.2
Could not find com.zendesk:support-providers:5.0.2
好吧,我刚刚尝试在我的 Azure DevOps 管道中生成一个 Android APK,它给了我以下错误,有人解决了这个问题吗?,在 Android Studio,在我的管道中添加此依赖项之前也工作正常。
Searched in the following locations:
- file:/home/vsts/work/1/s/ProjectFolder/module01/libs/support-providers-5.0.2.jar
- file:/home/vsts/work/1/s/ProjectFolder/module01/libs/support-providers.jar
Required by:
project :module01 > project :module02 > project :module03
更新 - 即使是最基本的管道也无法解决依赖关系。
我更改了依赖项并改为使用我正在使用的提供者支持 sdk
implementation "com.zendesk:support:5.0.2"
而且returns也是一个错误。
Could not find com.zendesk:support:5.0.2.
这是我的基本流程。
# Start of the pipeline
# Android
# Build your Android project with Gradle.
# Add steps that test, sign, and distribute the APK, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/android
trigger: none
pool:
vmImage: 'ubuntu-latest'
steps:
- task: JavaToolInstaller@0
inputs:
versionSpec: '11'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- task: Gradle@2
inputs:
workingDirectory: 'CustomFolder'
gradleWrapperFile: 'CustomFolder/gradlew'
gradleOptions: '-Xmx3072m'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
tasks: 'assembleDevelopment'
# End of the pipeline
好吧,我解决了将存储库添加到项目 build.gradle 文件中的所有项目的问题。
// build.gradle file (project)
allprojects {
repositories {
// other repositories...
maven {
url "https://zendesk.jfrog.io/zendesk/repo"
}
}
}
好吧,我刚刚尝试在我的 Azure DevOps 管道中生成一个 Android APK,它给了我以下错误,有人解决了这个问题吗?,在 Android Studio,在我的管道中添加此依赖项之前也工作正常。
Searched in the following locations:
- file:/home/vsts/work/1/s/ProjectFolder/module01/libs/support-providers-5.0.2.jar
- file:/home/vsts/work/1/s/ProjectFolder/module01/libs/support-providers.jar
Required by:
project :module01 > project :module02 > project :module03
更新 - 即使是最基本的管道也无法解决依赖关系。
我更改了依赖项并改为使用我正在使用的提供者支持 sdk
implementation "com.zendesk:support:5.0.2"
而且returns也是一个错误。
Could not find com.zendesk:support:5.0.2.
这是我的基本流程。
# Start of the pipeline
# Android
# Build your Android project with Gradle.
# Add steps that test, sign, and distribute the APK, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/android
trigger: none
pool:
vmImage: 'ubuntu-latest'
steps:
- task: JavaToolInstaller@0
inputs:
versionSpec: '11'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- task: Gradle@2
inputs:
workingDirectory: 'CustomFolder'
gradleWrapperFile: 'CustomFolder/gradlew'
gradleOptions: '-Xmx3072m'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
tasks: 'assembleDevelopment'
# End of the pipeline
好吧,我解决了将存储库添加到项目 build.gradle 文件中的所有项目的问题。
// build.gradle file (project)
allprojects {
repositories {
// other repositories...
maven {
url "https://zendesk.jfrog.io/zendesk/repo"
}
}
}