@GalileoGalileu

Ошибка Execution failed for task ':app:processDebugResources' при запуске React Native приложения, как исправить?

Здравствуйте!
При запуске мобильного приложения на андроид c React-native-cli возникает такая ошибка
> Task :app:processDebugResources FAILED
231 actionable tasks: 2 executed, 229 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform android-sdk-1.0.0-alpha16.aar (com.jivosite.sdk:android-sdk:1.0.0-alpha16) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for AarResourcesCompilerTransform: C:\Users\USER\.gradle\caches\transforms-2\files-2.1\247af7b6317068240801c677af56dc2c\jetified-android-sdk-1.0.0-alpha16.
         > AAPT2 aapt2-4.1.0-6503028-windows Daemon #1: Unexpected error during compile 'C:\Users\USER\.gradle\caches\transforms-2\files-2.1\247af7b6317068240801c677af56dc2c\jetified-android-sdk-1.0.0-alpha16\res\drawable-hdpi-v4\bg_appbar.png', attempting to stop daemon.
           This should not happen under normal circumstances, please file an issue if it does.
   > Failed to transform play-services-base-16.1.0.aar (com.google.android.gms:play-services-base:16.1.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for AarResourcesCompilerTransform: C:\Users\USER\.gradle\caches\transforms-2\files-2.1\a755c80670c0d1b47ed6c7ab5b400cec\jetified-play-services-base-16.1.0.
         > AAPT2 aapt2-4.1.0-6503028-windows Daemon #0: Unexpected error during compile 'C:\Users\USER\.gradle\caches\transforms-2\files-2.1\a755c80670c0d1b47ed6c7ab5b400cec\jetified-play-services-base-16.1.0\res\drawable-xhdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png', attempting to stop daemon.
           This should not happen under normal circumstances, please file an issue if it does.
   > Failed to transform play-services-base-16.1.0.aar (com.google.android.gms:play-services-base:16.1.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
      > Execution failed for AarResourcesCompilerTransform: C:\Users\USER\.gradle\caches\transforms-2\files-2.1\a755c80670c0d1b47ed6c7ab5b400cec\jetified-play-services-base-16.1.0.
         > AAPT2 aapt2-4.1.0-6503028-windows Daemon #0: Unexpected error during compile 'C:\Users\USER\.gradle\caches\transforms-2\files-2.1\a755c80670c0d1b47ed6c7ab5b400cec\jetified-play-services-base-16.1.0\res\drawable-xhdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png', attempting to stop daemon.
           This should not happen under normal circumstances, please file an issue if it does.
   > Failed to transform play-services-base-16.1.0.aar (com.google.android.gms:play-services-base:16.1.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
      > Execution failed for AarResourcesCompilerTransform: C:\Users\USER\.gradle\caches\transforms-2\files-2.1\a755c80670c0d1b47ed6c7ab5b400cec\jetified-play-services-base-16.1.0.
         > AAPT2 aapt2-4.1.0-6503028-windows Daemon #0: Unexpected error during compile 'C:\Users\USER\.gradle\caches\transforms-2\files-2.1\a755c80670c0d1b47ed6c7ab5b400cec\jetified-play-services-base-16.1.0\res\drawable-xhdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png', attempting to stop daemon.
           This should not happen under normal circumstances, please file an issue if it does.
   > Failed to transform play-services-base-16.1.0.aar (com.google.android.gms:play-services-base:16.1.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
      > Execution failed for AarResourcesCompilerTransform: C:\Users\USER\.gradle\caches\transforms-2\files-2.1\a755c80670c0d1b47ed6c7ab5b400cec\jetified-play-services-base-16.1.0.
         > AAPT2 aapt2-4.1.0-6503028-windows Daemon #0: Unexpected error during compile 'C:\Users\USER\.gradle\caches\transforms-2\files-2.1\a755c80670c0d1b47ed6c7ab5b400cec\jetified-play-services-base-16.1.0\res\drawable-xhdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png', attempting to stop daemon.
           This should not happen under normal circumstances, please file an issue if it does.
   > Failed to transform play-services-base-16.1.0.aar (com.google.android.gms:play-services-base:16.1.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
      > Execution failed for AarResourcesCompilerTransform: C:\Users\USER\.gradle\caches\transforms-2\files-2.1\a755c80670c0d1b47ed6c7ab5b400cec\jetified-play-services-base-16.1.0.
         > AAPT2 aapt2-4.1.0-6503028-windows Daemon #0: Unexpected error during compile 'C:\Users\USER\.gradle\caches\transforms-2\files-2.1\a755c80670c0d1b47ed6c7ab5b400cec\jetified-play-services-base-16.1.0\res\drawable-xhdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png', attempting to stop daemon.
           This should not happen under normal circumstances, please file an issue if it does.
   > Failed to transform play-services-base-16.1.0.aar (com.google.android.gms:play-services-base:16.1.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
      > Execution failed for AarResourcesCompilerTransform: C:\Users\USER\.gradle\caches\transforms-2\files-2.1\a755c80670c0d1b47ed6c7ab5b400cec\jetified-play-services-base-16.1.0.
         > AAPT2 aapt2-4.1.0-6503028-windows Daemon #0: Unexpected error during compile 'C:\Users\USER\.gradle\caches\transforms-2\files-2.1\a755c80670c0d1b47ed6c7ab5b400cec\jetified-play-services-base-16.1.0\res\drawable-xhdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png', attempting to stop daemon.
           This should not happen under normal circumstances, please file an issue if it does.

* 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


Советы вроде gradlew clean и изменение buildToolsVersion пробовал и к сожалению не помогло
Ругается на изображения, но в проекте таких нет
Буду благодарен если еще получится объяснить причину такого поведения
Спасибо за любые ответы!
  • Вопрос задан
  • 666 просмотров
Решения вопроса 1
@GalileoGalileu Автор вопроса
И так! Пришлось потратить время, но мне помог некоторый комплекс действий
Шут знает что именно помогло но я полностью снёс папку node_modules, проверил наличие доступа у корневой директории проекта и папки "C:\Users\USER\.gradle" (снял галочки "только для чтения"), поставил gradle версии 6.7.1 в gradlew-wrapper.properties, что немного выше чем раньше
Разумеется заново установил модули и это сработало
Буду рад если кому-то поможет
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы