Ошибка при сборке с Gradle на TeamCity: Задача: приложение: processDebugResources FAILED - PullRequest
0 голосов
/ 27 апреля 2020

Я строю свой проект Android с помощью Gradle Builder в командной строке:

Gradlew build

Все работает:

BUILD SUCCESSFUL in 4s
54 actionable tasks: 1 executed, 53 up-to-date

, но в том же проекте, в той же среде, ошибка во время построить в TeamCity:

Execution failed for task ':app:processDebugResources'. org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.'

много много артефактов, не найденных, как это:

What went wrong:
[org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':app:processDebugResources'.
[org.gradle.internal.buildevents.BuildExceptionReporter] > Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
[org.gradle.internal.buildevents.BuildExceptionReporter]    > Failed to transform artifact 'appcompat.aar (androidx.appcompat:appcompat:1.1.0)' to match attributes {artifactType=android-compiled-dependencies-resources}.
[org.gradle.internal.buildevents.BuildExceptionReporter]       > Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\f7fa931c10060cb31b4ececcd856b65d\appcompat-1.1.0.
[org.gradle.internal.buildevents.BuildExceptionReporter]          > Android resource compilation failed
[org.gradle.internal.buildevents.BuildExceptionReporter]            AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\7340c553bf3aabb8e86abd5cba76d4e6\androidx.appcompat: error: The system cannot find the file specified. (2).

Я пытаюсь выполнить команду clean build или build, но она не работает.

также я добавляю строку в Gradle.properties для отключения демона gradle:

add org.gradle.daemon=false

gradle-wrapper.properties:

distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip

Build.gradle:

dependencies {
        classpath 'com.android.tools.build:gradle:3.6.1

Может ли это быть потому, что проект расположен на GitHub удаленно и требует дополнительных скриптов? введите описание изображения здесь

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...