RunGradle.bat is Failed : Execution failed for task ':app:processDebugResources'

It builds normally in the editor, but an error occurs when building in Jenkins.

  Execution failed for task ':app:processDebugResources'.
  > Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
     > Failed to transform play-services-auth-11.8.0.aar (com.google.android.gms:play-services-auth:11.8.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:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\a5bfefc3390fe8242124503106abe28c\play-services-auth-11.8.0.
           > Android resource compilation failed
             AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\4d012f171b26dfa012344c6ceb51db27\com.google.android.gms.auth.api: error: 占�??ε μ™μ˜™?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™ 六얠쓣 ?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™. (2).
  
  
     > Failed to transform play-services-plus-11.8.0.aar (com.google.android.gms:play-services-plus:11.8.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:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\807577d7e014edfac0a575371ca99ae5\play-services-plus-11.8.0.
           > Android resource compilation failed
             AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\9e34c169d374c5d58c1aae38312e35d8\com.google.android.gms.plus: error: 占�??ε μ™μ˜™?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™ 六얠쓣 ?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™. (2).
  
  
     > Failed to transform play-services-base-11.8.0.aar (com.google.android.gms:play-services-base:11.8.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
        > Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\5a9e64eaa775527212e8809063333fcd\play-services-base-11.8.0.
           > Android resource compilation failed
             AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\66edd846d91b68db7e415f8a881ab1c0\com.google.android.gms.base: error: 占�??ε μ™μ˜™?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™ 六얠쓣 ?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™. (2).
  
  
     > Failed to transform play-services-base-11.8.0.aar (com.google.android.gms:play-services-base:11.8.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
        > Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\5a9e64eaa775527212e8809063333fcd\play-services-base-11.8.0.
           > Android resource compilation failed
             AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\66edd846d91b68db7e415f8a881ab1c0\com.google.android.gms.base: error: 占�??ε μ™μ˜™?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™ 六얠쓣 ?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™. (2).
  
  
     > Failed to transform play-services-base-11.8.0.aar (com.google.android.gms:play-services-base:11.8.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
        > Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\5a9e64eaa775527212e8809063333fcd\play-services-base-11.8.0.
           > Android resource compilation failed
             AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\66edd846d91b68db7e415f8a881ab1c0\com.google.android.gms.base: error: 占�??ε μ™μ˜™?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™ 六얠쓣 ?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™. (2).
  
  
     > Failed to transform play-services-base-11.8.0.aar (com.google.android.gms:play-services-base:11.8.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
        > Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\5a9e64eaa775527212e8809063333fcd\play-services-base-11.8.0.
           > Android resource compilation failed
             AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\66edd846d91b68db7e415f8a881ab1c0\com.google.android.gms.base: error: 占�??ε μ™μ˜™?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™ 六얠쓣 ?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™. (2).
  
  
     > Failed to transform play-services-base-11.8.0.aar (com.google.android.gms:play-services-base:11.8.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
        > Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\5a9e64eaa775527212e8809063333fcd\play-services-base-11.8.0.
           > Android resource compilation failed
             AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\66edd846d91b68db7e415f8a881ab1c0\com.google.android.gms.base: error: 占�??ε μ™μ˜™?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™ 六얠쓣 ?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™. (2).
  
  
     > Failed to transform play-services-base-11.8.0.aar (com.google.android.gms:play-services-base:11.8.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
        > Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\5a9e64eaa775527212e8809063333fcd\play-services-base-11.8.0.
           > Android resource compilation failed
             AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\66edd846d91b68db7e415f8a881ab1c0\com.google.android.gms.base: error: 占�??ε μ™μ˜™?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™ 六얠쓣 ?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™. (2).
  
  
     > Failed to transform play-services-base-11.8.0.aar (com.google.android.gms:play-services-base:11.8.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
        > Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\5a9e64eaa775527212e8809063333fcd\play-services-base-11.8.0.
           > Android resource compilation failed
             AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\66edd846d91b68db7e415f8a881ab1c0\com.google.android.gms.base: error: 占�??ε μ™μ˜™?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™ 六얠쓣 ?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™. (2).
  
  
     > Failed to transform support-media-compat-27.1.0.aar (com.android.support:support-media-compat:27.1.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
        > Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\f2951af0c9a3852e4971aa7ee1fa81bb\support-media-compat-27.1.0.
           > Android resource compilation failed
             AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\dc0550d99ca914f0ddca71cc4ff11796\android.support.mediacompat: error: 占�??ε μ™μ˜™?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™ 六얠쓣 ?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™. (2).
  
  
     > Failed to transform support-compat-27.1.0.aar (com.android.support:support-compat:27.1.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
        > Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\42713a44eae2131946fbd126fa19168a\support-compat-27.1.0.
           > Android resource compilation failed
             AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\caf11be8fd23a43f4f685d8139529f79\android.support.compat: error: 占�??ε μ™μ˜™?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™ 六얠쓣 ?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™. (2).
  
  
     > Failed to transform support-compat-27.1.0.aar (com.android.support:support-compat:27.1.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
        > Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\42713a44eae2131946fbd126fa19168a\support-compat-27.1.0.
           > Android resource compilation failed
             AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\caf11be8fd23a43f4f685d8139529f79\android.support.compat: error: 占�??ε μ™μ˜™?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™ 六얠쓣 ?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™. (2).
  
  
     > Failed to transform support-compat-27.1.0.aar (com.android.support:support-compat:27.1.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
        > Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\42713a44eae2131946fbd126fa19168a\support-compat-27.1.0.
           > Android resource compilation failed
             AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\caf11be8fd23a43f4f685d8139529f79\android.support.compat: error: 占�??ε μ™μ˜™?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™ 六얠쓣 ?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™. (2).
  
  
     > Failed to transform support-compat-27.1.0.aar (com.android.support:support-compat:27.1.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
        > Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\42713a44eae2131946fbd126fa19168a\support-compat-27.1.0.
           > Android resource compilation failed
             AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\caf11be8fd23a43f4f685d8139529f79\android.support.compat: error: 占�??ε μ™μ˜™?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™ 六얠쓣 ?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™. (2).
  
  
     > Failed to transform support-compat-27.1.0.aar (com.android.support:support-compat:27.1.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
        > Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\42713a44eae2131946fbd126fa19168a\support-compat-27.1.0.
           > Android resource compilation failed
             AAPT: C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-2\files-2.1\caf11be8fd23a43f4f685d8139529f79\android.support.compat: error: 占�??ε μ™μ˜™?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™ 六얠쓣 ?ε μ™μ˜™ ?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™?ε μ™μ˜™. (2).
  
  
     * 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
     BUILD FAILED in 13s   47 actionable tasks: 47 executed   ERROR: cmd.exe failed with args /c "C:\Jenkins\workspace\Build_BlackClover_Android\Intermediate\Android\arm64\gradle\rungradle.bat" :app:assembleDebug Took 110.7509105s to run UnrealBuildTool.exe, ExitCode=6 UnrealBuildTool failed. See log for more details. (C:\Windows\system32\config\systemprofile\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.26\UBT-ProjectVic-Android-Development.txt) AutomationTool exiting with ExitCode=6 (6)

UE4 4.26
Android Gradle Plugin 3.5.3
Gradle 6.1.1
Build Configuarion : Development

Run β€œC:\Jenkins\workspace{workspaceName}\Intermediate\Android\arm64\gradle\rungradle.bat” :app:assembleDebug" in command prompt is no error. But always failed in jenkins.

Why is this error happening?

I tried change build-tools version from 30.0.3 to 29.0.2, delete Intermediate folder, environment variables check… but all failed. I have no idea what to do.

Please help… lol.

1 Like

Same problem here. Have you fixed this issue?

Solved this by adding gradle path to β€œGRADLE_USER_HOME” Environment variable.

Related links: