好吧,我只是尝试在我的 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"
并返回一个错误。
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