Resource compilation failed (Failed to compile values resource file /home/expo/workingdir/build/android/app/build/intermediates/incremental/release/mergeReleaseResources/merged.dir/values/values.xml. Cause: java.lang.IllegalStateException: Can not extract

Hello everybody! I’m developing an app in React Native and on my device it runs perfectly when I test it but, when I want to build it, the build fails and gives me an error. I’ve been looking for information everywhere but I haven’t found anything and I’m desperate. If someone could help me I would appreciate it.

[...]
209 actionable tasks: 209 executed
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
   > Resource compilation failed (Failed to compile values resource file /home/expo/workingdir/build/android/app/build/intermediates/incremental/release/mergeReleaseResources/merged.dir/values/values.xml. Cause: java.lang.IllegalStateException: Can not extract resource from com.android.aaptcompiler.ParsedResource@57d454a9.,Can not extract resource from com.android.aaptcompiler.ParsedResource@71679b12.). Check logs for more details.
* 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 4m 35s
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

One of the things I’ve found is to put wrong colours or dimensions, but it’s Android Studio’s help and in React Native I’d get the error if it was that (and even so I’ve gone over it thousands of times).
Thank you to anyone who takes the trouble to read this message. Best regards!

If by any chance the rest of the log would help in any way, here is some more:

[...]
> Task :react-native-localize:generateReleaseResValues
> Task :react-native-localize:generateReleaseResources
> Task :react-native-async-storage_async-storage:packageReleaseResources
> Task :expo:extractDeepLinksRelease
> Task :expo-splash-screen:packageReleaseResources
> Task :expo-application:extractDeepLinksRelease
> Task :react-native-localize:packageReleaseResources
> Task :expo-av:extractDeepLinksRelease
> Task :expo-application:processReleaseManifest
> Task :expo:processReleaseManifest
> Task :expo-constants:extractDeepLinksRelease
> Task :expo-constants:processReleaseManifest
> Task :expo-device:extractDeepLinksRelease
> Task :expo-device:processReleaseManifest
> Task :expo-file-system:extractDeepLinksRelease
> Task :expo-file-system:processReleaseManifest
/home/expo/workingdir/build/node_modules/expo-file-system/android/src/main/AndroidManifest.xml:6:9-8:20 Warning:
	provider#expo.modules.filesystem.FileSystemFileProvider@android:authorities was tagged at AndroidManifest.xml:6 to replace other declarations but no other declaration present
> Task :expo-font:extractDeepLinksRelease
> Task :expo-av:processReleaseManifest
> Task :expo-keep-awake:extractDeepLinksRelease
> Task :expo-keep-awake:processReleaseManifest
> Task :expo-linear-gradient:extractDeepLinksRelease
> Task :expo-font:processReleaseManifest
> Task :expo-modules-core:extractDeepLinksRelease
> Task :expo-linear-gradient:processReleaseManifest
> Task :expo-notifications:extractDeepLinksRelease
> Task :expo-modules-core:processReleaseManifest
/home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/AndroidManifest.xml:8:9-11:45 Warning:
	meta-data#com.facebook.soloader.enabled@android:value was tagged at AndroidManifest.xml:8 to replace other declarations but no other declaration present
> Task :expo-splash-screen:extractDeepLinksRelease
> Task :expo-splash-screen:processReleaseManifest
> Task :expo-notifications:processReleaseManifest
> Task :react-native-async-storage_async-storage:extractDeepLinksRelease
> Task :react-native-localize:extractDeepLinksRelease
> Task :react-native-localize:processReleaseManifest
package="com.zoontek.rnlocalize" found in source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/react-native-localize/android/src/main/AndroidManifest.xml.
Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace
This migration can be done automatically using the AGP Upgrade Assistant, please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.
> Task :react-native-async-storage_async-storage:processReleaseManifest
package="com.reactnativecommunity.asyncstorage" found in source AndroidManifest.xml: /home/expo/workingdir/build/node_modules/@react-native-async-storage/async-storage/android/src/main/AndroidManifest.xml.
Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace
This migration can be done automatically using the AGP Upgrade Assistant, please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.
> Task :expo-application:compileReleaseLibraryResources
> Task :expo:compileReleaseLibraryResources
> Task :expo-av:compileReleaseLibraryResources
> Task :expo-constants:compileReleaseLibraryResources
> Task :expo-device:compileReleaseLibraryResources
> Task :expo-file-system:compileReleaseLibraryResources
> Task :expo-font:compileReleaseLibraryResources
> Task :expo-keep-awake:compileReleaseLibraryResources
> Task :expo-linear-gradient:compileReleaseLibraryResources
> Task :expo-modules-core:compileReleaseLibraryResources
> Task :expo-notifications:compileReleaseLibraryResources
> Task :expo-splash-screen:compileReleaseLibraryResources
> Task :react-native-async-storage_async-storage:compileReleaseLibraryResources
> Task :react-native-localize:compileReleaseLibraryResources
> Task :react-native-async-storage_async-storage:compileReleaseAidl NO-SOURCE
> Task :react-native-async-storage_async-storage:generateReleaseBuildConfig
> Task :react-native-async-storage_async-storage:parseReleaseLocalResources
WARNING: [Processor] Library '/home/expo/.gradle/caches/modules-2/files-2.1/com.google.android.exoplayer/exoplayer-ui/2.18.1/eed81d49b8b0e9a365cbec260dafb222d6e5bc67/exoplayer-ui-2.18.1.aar' contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.
 Example of androidX reference: 'androidx/core/app/NotificationCompat$Builder'
 Example of support library reference: 'android/support/v4/media/session/MediaSessionCompat$Token'
> Task :app:buildCodegenCLI SKIPPED
> Task :app:generateCodegenSchemaFromJavaScript SKIPPED
> Task :app:generateCodegenArtifactsFromSchema SKIPPED
> Task :app:generatePackageList
> Task :app:preBuild
> Task :app:preReleaseBuild
> Task :app:compileReleaseRenderscript NO-SOURCE
> Task :app:createBundleReleaseJsAndAssets
warning: Bundler cache is empty, rebuilding (this may take a minute)
> Task :react-native-async-storage_async-storage:generateReleaseRFile
> Task :react-native-async-storage_async-storage:javaPreCompileRelease
> Task :react-native-async-storage_async-storage:compileReleaseJavaWithJavac
Note: /home/expo/workingdir/build/node_modules/@react-native-async-storage/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/expo/workingdir/build/node_modules/@react-native-async-storage/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :react-native-async-storage_async-storage:bundleLibRuntimeToJarRelease
> Task :app:createBundleReleaseJsAndAssets
info Writing bundle output to:, /home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle
info Writing sourcemap output to:, /home/expo/workingdir/build/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 18 asset files
info Done copying assets
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:2676:18: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow"
          typeof DebuggerInternal !== 'undefined' &&
                 ^~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:11489:7: warning: the variable "setTimeout" was not declared in function "logCapturedError"
      setTimeout(function () {
      ^~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:9449:108: warning: the variable "nativeFabricUIManager" was not declared in function "onChange"
...lInstanceHandle ? (from && nativeFabricUIManager.setIsJSResponder(from.sta...
                              ^~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:10070:21: warning: the variable "clearTimeout" was not declared in anonymous function " 264#"
cancelTimeout = clearTimeout;
                    ^~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:13820:30: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK__" was not declared in anonymous function " 264#"
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:15690:5: warning: the variable "setImmediate" was not declared in function "handleResolved"
    setImmediate(function () {
    ^~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:19858:12: warning: the variable "fetch" was not declared in anonymous function " 499#"
    fetch: fetch,
           ^~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:19859:14: warning: the variable "Headers" was not declared in anonymous function " 499#"
    Headers: Headers,
             ^~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:19860:14: warning: the variable "Request" was not declared in anonymous function " 499#"
    Request: Request,
             ^~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:19861:15: warning: the variable "Response" was not declared in anonymous function " 499#"
    Response: Response
              ^~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:20018:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer"
      var reader = new FileReader();
                       ^~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:20069:36: warning: the variable "Blob" was not declared in anonymous function " 510#"
        } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
                                   ^~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:20071:40: warning: the variable "FormData" was not declared in anonymous function " 510#"
        } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
                                       ^~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:20073:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 510#"
...e if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body...
                                 ^~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:20192:26: warning: the variable "AbortController" was not declared in anonymous function " 516#"
          var ctrl = new AbortController();
^~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:20325:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 520#"
        var xhr = new XMLHttpRequest();
                      ^~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:19871:71: warning: the variable "self" was not declared in anonymous function " 502#"
...undefined' && globalThis || typeof self !== 'undefined' && self ||
                                      ^~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:24720:27: warning: the variable "performance" was not declared in anonymous function " 711#"
  if ("object" === typeof performance && "function" === typeof performance.no...
                          ^~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:24743:26: warning: the variable "navigator" was not declared in anonymous function " 711#"
  "undefined" !== typeof navigator && undefined !== navigator.scheduling && u...
                         ^~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:24853:37: warning: the variable "MessageChannel" was not declared in anonymous function " 711#"
  };else if ("undefined" !== typeof MessageChannel) {
                                    ^~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:24868:34: warning: the variable "nativeRuntimeScheduler" was not declared in anonymous function " 711#"
... = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler....
                             ^~~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:37424:34: warning: the variable "requestAnimationFrame" was not declared in function "start 9#"
...    this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
                              ^~~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:61878:38: warning: the variable "SharedArrayBuffer" was not declared in anonymous function " 1806#"
...aredArrayBufferCopy = typeof SharedArrayBuffer !== 'undefined' ? SharedArr...
^~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:62112:25: warning: the variable "Atomics" was not declared in anonymous function " 1813#"
    '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
                        ^~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:62129:38: warning: the variable "FinalizationRegistry" was not declared in anonymous function " 1813#"
...lizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefine...
                              ^~~~~~~~~~~~~~~~~~~~
/home/expo/workingdir/build/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle:62168:25: warning: the variable "WeakRef" was not declared in anonymous function " 1813#"
    '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
                        ^~~~~~~
> Task :app:generateReleaseResValues
> Task :expo-modules-core$android-annotation:processResources NO-SOURCE
> Task :expo-modules-core$android-annotation-processor:processResources
> Task :expo-modules-core:compileReleaseAidl NO-SOURCE
> Task :expo-application:compileReleaseAidl NO-SOURCE
> Task :expo-av:compileReleaseAidl NO-SOURCE
> Task :expo-constants:compileReleaseAidl NO-SOURCE
> Task :expo-device:compileReleaseAidl NO-SOURCE
> Task :expo-file-system:compileReleaseAidl NO-SOURCE
> Task :expo-font:compileReleaseAidl NO-SOURCE
> Task :expo-keep-awake:compileReleaseAidl NO-SOURCE
> Task :expo-linear-gradient:compileReleaseAidl NO-SOURCE
> Task :expo-notifications:compileReleaseAidl NO-SOURCE
> Task :expo-splash-screen:compileReleaseAidl NO-SOURCE
> Task :expo:compileReleaseAidl NO-SOURCE
> Task :expo:generateReleaseBuildConfig
> Task :expo:parseReleaseLocalResources
> Task :expo-application:parseReleaseLocalResources
> Task :expo-modules-core:parseReleaseLocalResources
> Task :expo-modules-core:generateReleaseRFile
> Task :expo-application:generateReleaseRFile
> Task :expo-av:parseReleaseLocalResources
> Task :expo-modules-core$android-annotation:compileKotlin
> Task :expo-modules-core$android-annotation:compileJava NO-SOURCE
> Task :expo-modules-core$android-annotation:classes UP-TO-DATE
> Task :expo-modules-core$android-annotation:jar
> Task :expo-modules-core$android-annotation:inspectClassesForKotlinIC
> Task :expo-av:generateReleaseRFile
> Task :expo-constants:parseReleaseLocalResources
> Task :expo-constants:generateReleaseRFile
> Task :expo-device:parseReleaseLocalResources
> Task :expo-file-system:parseReleaseLocalResources
> Task :expo-file-system:generateReleaseRFile
> Task :expo-device:generateReleaseRFile
> Task :expo-font:parseReleaseLocalResources
> Task :expo-keep-awake:parseReleaseLocalResources
> Task :expo-keep-awake:generateReleaseRFile
> Task :expo-linear-gradient:parseReleaseLocalResources
> Task :expo-font:generateReleaseRFile
> Task :expo-notifications:parseReleaseLocalResources
> Task :expo-linear-gradient:generateReleaseRFile
> Task :expo-splash-screen:parseReleaseLocalResources
> Task :expo-splash-screen:generateReleaseRFile
> Task :expo-application:generateReleaseBuildConfig
> Task :expo-notifications:generateReleaseRFile
> Task :expo-modules-core:generateReleaseBuildConfig
> Task :expo:generateReleaseRFile
> Task :expo-application:javaPreCompileRelease
> Task :expo-av:generateReleaseBuildConfig
> Task :expo-av:javaPreCompileRelease
> Task :expo-constants:generateReleaseBuildConfig
> Task :expo-constants:javaPreCompileRelease
> Task :expo-device:generateReleaseBuildConfig
> Task :expo-device:javaPreCompileRelease
> Task :expo-file-system:generateReleaseBuildConfig
> Task :expo-file-system:javaPreCompileRelease
> Task :expo-font:generateReleaseBuildConfig
> Task :expo-font:javaPreCompileRelease
> Task :expo-keep-awake:generateReleaseBuildConfig
> Task :expo-keep-awake:javaPreCompileRelease
> Task :expo-linear-gradient:generateReleaseBuildConfig
> Task :expo-linear-gradient:javaPreCompileRelease
> Task :expo-notifications:generateReleaseBuildConfig
> Task :expo-notifications:javaPreCompileRelease
> Task :expo-splash-screen:generateReleaseBuildConfig
> Task :expo-splash-screen:javaPreCompileRelease
> Task :expo:javaPreCompileRelease
> Task :react-native-localize:compileReleaseAidl NO-SOURCE
> Task :react-native-localize:generateReleaseBuildConfig
> Task :react-native-localize:parseReleaseLocalResources
> Task :react-native-localize:generateReleaseRFile
> Task :react-native-localize:javaPreCompileRelease
> Task :react-native-localize:compileReleaseJavaWithJavac
> Task :react-native-localize:bundleLibRuntimeToJarRelease
Note: /home/expo/workingdir/build/node_modules/react-native-localize/android/src/main/java/com/zoontek/rnlocalize/RNLocalizeModuleImpl.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :expo-modules-core:javaPreCompileRelease
> Task :expo:writeReleaseAarMetadata
> Task :expo-application:writeReleaseAarMetadata
> Task :expo-av:writeReleaseAarMetadata
> Task :expo-constants:writeReleaseAarMetadata
> Task :expo-device:writeReleaseAarMetadata
> Task :expo-file-system:writeReleaseAarMetadata
> Task :expo-font:writeReleaseAarMetadata
> Task :expo-keep-awake:writeReleaseAarMetadata
> Task :expo-linear-gradient:writeReleaseAarMetadata
> Task :expo-modules-core:writeReleaseAarMetadata
> Task :expo-notifications:writeReleaseAarMetadata
> Task :expo-splash-screen:writeReleaseAarMetadata
> Task :react-native-async-storage_async-storage:writeReleaseAarMetadata
> Task :react-native-localize:writeReleaseAarMetadata
> Task :react-native-async-storage_async-storage:bundleLibCompileToJarRelease
> Task :react-native-localize:bundleLibCompileToJarRelease
> Task :expo:mergeReleaseShaders
> Task :expo:compileReleaseShaders NO-SOURCE
> Task :expo:generateReleaseAssets UP-TO-DATE
> Task :expo:packageReleaseAssets
> Task :expo-application:mergeReleaseShaders
> Task :expo-application:compileReleaseShaders NO-SOURCE
> Task :expo-application:generateReleaseAssets UP-TO-DATE
> Task :expo-application:packageReleaseAssets
> Task :expo-av:mergeReleaseShaders
> Task :expo-av:compileReleaseShaders NO-SOURCE
> Task :expo-av:generateReleaseAssets UP-TO-DATE
> Task :expo-av:packageReleaseAssets
> Task :expo-constants:mergeReleaseShaders
> Task :expo-constants:compileReleaseShaders NO-SOURCE
> Task :expo-constants:createReleaseExpoConfig
> Task :expo-constants:copyReleaseExpoConfig
> Task :expo-constants:generateReleaseAssets UP-TO-DATE
> Task :expo-constants:packageReleaseAssets
> Task :expo-device:mergeReleaseShaders
> Task :expo-device:compileReleaseShaders NO-SOURCE
> Task :expo-device:generateReleaseAssets UP-TO-DATE
> Task :expo-device:packageReleaseAssets
> Task :expo-file-system:mergeReleaseShaders
> Task :expo-file-system:compileReleaseShaders NO-SOURCE
> Task :expo-file-system:generateReleaseAssets UP-TO-DATE
> Task :expo-file-system:packageReleaseAssets
> Task :expo-font:mergeReleaseShaders
> Task :expo-font:compileReleaseShaders NO-SOURCE
> Task :expo-font:generateReleaseAssets UP-TO-DATE
> Task :expo-font:packageReleaseAssets
> Task :expo-keep-awake:mergeReleaseShaders
> Task :expo-keep-awake:compileReleaseShaders NO-SOURCE
> Task :expo-keep-awake:generateReleaseAssets UP-TO-DATE
> Task :expo-keep-awake:packageReleaseAssets
> Task :expo-linear-gradient:mergeReleaseShaders
> Task :expo-linear-gradient:compileReleaseShaders NO-SOURCE
> Task :expo-linear-gradient:generateReleaseAssets UP-TO-DATE
> Task :expo-linear-gradient:packageReleaseAssets
> Task :expo-modules-core:mergeReleaseShaders
> Task :expo-modules-core:compileReleaseShaders NO-SOURCE
> Task :expo-modules-core:generateReleaseAssets UP-TO-DATE
> Task :expo-modules-core:packageReleaseAssets
> Task :expo-notifications:mergeReleaseShaders
> Task :expo-notifications:compileReleaseShaders NO-SOURCE
> Task :expo-notifications:generateReleaseAssets UP-TO-DATE
> Task :expo-notifications:packageReleaseAssets
> Task :expo-splash-screen:mergeReleaseShaders
> Task :expo-splash-screen:compileReleaseShaders NO-SOURCE
> Task :expo-splash-screen:generateReleaseAssets UP-TO-DATE
> Task :expo-modules-core$android-annotation-processor:compileKotlin
> Task :expo-splash-screen:packageReleaseAssets
> Task :react-native-async-storage_async-storage:mergeReleaseShaders
> Task :expo-modules-core$android-annotation-processor:compileJava NO-SOURCE
> Task :expo-modules-core$android-annotation-processor:classes
> Task :react-native-async-storage_async-storage:compileReleaseShaders NO-SOURCE
> Task :react-native-async-storage_async-storage:generateReleaseAssets UP-TO-DATE
> Task :expo-modules-core$android-annotation-processor:jar
> Task :react-native-async-storage_async-storage:packageReleaseAssets
> Task :expo-modules-core$android-annotation-processor:inspectClassesForKotlinIC
> Task :react-native-localize:mergeReleaseShaders
> Task :react-native-localize:compileReleaseShaders NO-SOURCE
> Task :react-native-localize:generateReleaseAssets UP-TO-DATE
> Task :react-native-localize:packageReleaseAssets
> Task :expo:processReleaseJavaRes NO-SOURCE
> Task :expo-application:processReleaseJavaRes NO-SOURCE
> Task :expo-av:processReleaseJavaRes NO-SOURCE
> Task :expo-constants:cleanupReleaseExpoConfig
> Task :expo-constants:processReleaseJavaRes NO-SOURCE
> Task :expo-device:processReleaseJavaRes NO-SOURCE
> Task :expo-file-system:processReleaseJavaRes NO-SOURCE
> Task :expo-font:processReleaseJavaRes NO-SOURCE
> Task :expo-keep-awake:processReleaseJavaRes NO-SOURCE
> Task :expo-linear-gradient:processReleaseJavaRes NO-SOURCE
> Task :expo-modules-core:processReleaseJavaRes NO-SOURCE
> Task :expo-notifications:processReleaseJavaRes NO-SOURCE
> Task :expo-splash-screen:processReleaseJavaRes NO-SOURCE
> Task :react-native-async-storage_async-storage:processReleaseJavaRes NO-SOURCE
> Task :react-native-async-storage_async-storage:bundleLibResRelease NO-SOURCE
> Task :react-native-localize:processReleaseJavaRes NO-SOURCE
> Task :react-native-localize:bundleLibResRelease NO-SOURCE
> Task :expo:mergeReleaseJniLibFolders
> Task :expo:mergeReleaseNativeLibs NO-SOURCE
> Task :expo:copyReleaseJniLibsProjectOnly
> Task :expo-application:mergeReleaseJniLibFolders
> Task :expo-application:mergeReleaseNativeLibs NO-SOURCE
> Task :expo-application:copyReleaseJniLibsProjectOnly
> Task :expo-av:configureCMakeRelWithDebInfo[arm64-v8a]
> Task :expo-modules-core:configureCMakeRelWithDebInfo[arm64-v8a]
> Task :expo-av:buildCMakeRelWithDebInfo[arm64-v8a]
> Task :app:mapReleaseSourceSetPaths
> Task :app:generateReleaseResources
> Task :expo-av:configureCMakeRelWithDebInfo[armeabi-v7a]
> Task :app:mergeReleaseResources
/home/expo/.gradle/caches/transforms-3/f7c5e03387f63f3788dbd5294d085d57/transformed/appcompat-1.4.1/res/values/values.xml:27:4: Invalid <color> for given resource value.
/home/expo/.gradle/caches/transforms-3/f7c5e03387f63f3788dbd5294d085d57/transformed/appcompat-1.4.1/res/values/values.xml:63:4: Invalid <color> for given resource value.
> Task :expo-av:buildCMakeRelWithDebInfo[armeabi-v7a]
> Task :app:createReleaseCompatibleScreenManifests
> Task :app:extractDeepLinksRelease
> Task :expo-modules-core:compileReleaseKotlin
> Task :app:mergeReleaseResources FAILED
> Task :app:processReleaseMainManifest
/home/expo/workingdir/build/android/app/src/main/AndroidManifest.xml:21:9-30:20 Warning:
	provider#expo.modules.filesystem.FileSystemFileProvider@android:authorities was tagged at AndroidManifest.xml:21 to replace other declarations but no other declaration present
> Task :expo-modules-core:buildCMakeRelWithDebInfo[arm64-v8a]
> Task :expo-modules-core:compileReleaseKotlin
w: Argument -Xopt-in is deprecated. Please use -opt-in instead
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/adapters/react/permissions/PermissionsService.kt:157:30 'getPackageInfo(String, Int): PackageInfo!' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/core/utilities/EmulatorUtilities.kt:30:13 'SERIAL: String!' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/Promise.kt:68:18 This declaration overrides deprecated member but not marked as deprecated itself. This deprecation won't be inherited in future releases. Please add @Deprecated annotation or suppress. See https://youtrack.jetbrains.com/issue/KT-47902 for details
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/Utils.kt:8:3 Expected performance impact from inlining is insignificant. Inlining works best for functions with parameters of functional types
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/activityresult/ActivityResultsManager.kt:52:24 Parameter 'activity' is never used
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/activityresult/AppContextActivityResultRegistry.kt:119:51 'getParcelableExtra(String!): T?' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/activityresult/AppContextActivityResultRegistry.kt:180:26 'getParcelable(String?): T?' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/activityresult/AppContextActivityResultRegistry.kt:271:83 'getParcelable(String?): T?' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/activityresult/DataPersistor.kt:67:20 'getSerializable(String?): Serializable?' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/activityresult/DataPersistor.kt:85:26 'getSerializable(String?): Serializable?' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/devtools/cdp/CdpNetworkTypes.kt:184:54 Parameter 'request' is never used
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/devtools/cdp/CdpNetworkTypes.kt:208:54 Parameter 'request' is never used
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/devtools/cdp/CdpNetworkTypes.kt:228:15 Parameter 'now' is never used
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/devtools/cdp/CdpNetworkTypes.kt:228:54 Parameter 'request' is never used
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/events/KModuleEventEmitterWrapper.kt:90:7 'constructor Event<T : Event<(raw) Event<*>>!>(Int)' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/jni/JavaScriptObject.kt:88:33 Parameter 'null' is never used
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/jni/JavaScriptObject.kt:89:34 Parameter 'null' is never used
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/jni/JavaScriptObject.kt:130:5 Parameter 'null' is never used
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/types/Either.kt:24:11 Parameter 'type' is never used
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/types/Either.kt:27:11 Parameter 'type' is never used
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/types/Either.kt:44:11 Parameter 'type' is never used
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/types/Either.kt:59:11 Parameter 'type' is never used
w: file:///home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/types/JSTypeConverterHelper.kt:44:17 'get(String!): Any?' is deprecated. Deprecated in Java
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
209 actionable tasks: 209 executed
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
   > Resource compilation failed (Failed to compile values resource file /home/expo/workingdir/build/android/app/build/intermediates/incremental/release/mergeReleaseResources/merged.dir/values/values.xml. Cause: java.lang.IllegalStateException: Can not extract resource from com.android.aaptcompiler.ParsedResource@57d454a9.,Can not extract resource from com.android.aaptcompiler.ParsedResource@71679b12.). Check logs for more details.
* 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 4m 35s
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

This is not a Gradle topic, you should ask in some Android community.
Your second post shows that something is wrong while executing in :app:mergeReleaseResources and that you should look at the log.
If you scroll up to that task, you see the output

/home/expo/.gradle/caches/transforms-3/f7c5e03387f63f3788dbd5294d085d57/transformed/appcompat-1.4.1/res/values/values.xml:27:4: Invalid for given resource value.
/home/expo/.gradle/caches/transforms-3/f7c5e03387f63f3788dbd5294d085d57/transformed/appcompat-1.4.1/res/values/values.xml:63:4: Invalid for given resource value.

So it tells you exactly in which file and where exactly in the file it has problems.
But what that means? :man_shrugging:

Did you find a solution for it? I’m still struggling with the same issue

I’ve figured out the solution! Just double-check your app.json file and ensure everything is accurate.

{
  "expo": {
    "name": "QatarPrayersAndroid",
    "slug": "QatarPrayersAndroid",
    "version": "1.0.6",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "userInterfaceStyle": "light",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "cover",
      "backgroundColor": "#ffffff"
    },
    "assetBundlePatterns": ["**/*"],
    "ios": {
      "supportsTablet": true
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/icon.png",
        "backgroundColor": "#ffffff"
      },

In my case, the background color was set to “transparent,” and the foregroundImage was initialized incorrectly. Once I fixed those two, the error disappeared. Give it a try, and hopefully, it works for you too!