
> echo Attempting build for OzymandiasTheGreat-react-native-live-rich-text with Node 18 and jdk 17
Attempting build for OzymandiasTheGreat-react-native-live-rich-text with Node 18 and jdk 17

> docker run --rm -v /home/ubuntu/storage/extracted/OzymandiasTheGreat-react-native-live-rich-text/react-native-live-rich-text-a78c7f17024d0bf4b396f9dbb2d7d4b01a80876c/example:/source:ro -v /home/ubuntu/BachelorsThesis/scripts/RN/output/OzymandiasTheGreat-react-native-live-rich-text:/output -v /home/ubuntu/.npm:/root/.npm react-android:18-jdk17 bash -c 
                set -e

                cp -r /source/. /app &&                 cd /app && 
                # ---- install deps (yarn or npm) ----
                if [ -f yarn.lock ]; then
                    yarn install;
                else
                    npm install --ignore-scripts;
                fi && 
                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----
                if [ ! -f google-services.json ]; then                     python3 -c "import json; open('google-services.json','w').write(json.dumps({'project_info':{'project_number':'000000000000','project_id':'stub','storage_bucket':'stub.appspot.com'},'client':[{'client_info':{'mobilesdk_app_id':'1:000000000000:android:0000000000000000','android_client_info':{'package_name':'com.stub'}},'oauth_client':[],'api_key':[{'current_key':'stub'}],'services':{'appinvite_service':{'other_platform_oauth_client':[]}}}],'configuration_version':'1'}))" 2>/dev/null || true;                 fi && 
                # ---- detect expo ----
                if grep -q '"expo"' package.json && [ ! -d android ]; then
                    echo "Expo project detected";
                    CI=1 npx --yes expo prebuild --platform android
                fi && 
                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && 
                chmod +x gradlew && 
                # ---- inject fallback repositories via Gradle init script ----
                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo 'gradle.beforeProject {project ->' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.buildscript.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '}' >> $GRADLE_USER_HOME/init.d/repos.gradle && 
                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----
                sed -i 's/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\/.bin\/react-native config")/' settings.gradle 2>/dev/null || true && 
                # ---- clean gradle ----
                (./gradlew clean || true) && 
                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----
                ./gradlew :app:dependencies --configuration debugCompileClasspath --no-daemon > /dev/null 2>&1 || true && 
                # ---- enable ABI splits ----
                if grep -q 'splits' app/build.gradle 2>/dev/null; then                     sed -i 's/enable false/enable true/' app/build.gradle || true;                 else                     sed -i '/^android[[:space:]]*{/a\    splits {\n        abi {\n            reset()\n            enable true\n            universalApk false\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\n        }\n    }' app/build.gradle || true;                 fi && 
                # ---- build debug apk ----
                ./gradlew assembleDebug --no-daemon || exit 1 && 
                APK_PATH="app/build/outputs/apk/debug"

                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then
                    echo "ERROR: APK not generated"
                    exit 1
                fi
                # ---- copy output ----
                cp app/build/outputs/apk/debug/*.apk /output/

                # ---- copy TPL metadata ----
                [ -f ../package.json ] && cp ../package.json /output/ || true
                [ -f ../package-lock.json ] && cp ../package-lock.json /output/ || true
                [ -f ../yarn.lock ] && cp ../yarn.lock /output/ || true
                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/ || true
                [ -f app/build.gradle ] && cp app/build.gradle /output/android-build.gradle || true
                [ -f build.gradle ] && cp build.gradle /output/root-build.gradle || true
                [ -f build.gradle.kts ] && cp build.gradle.kts /output/root-build.gradle.kts || true
                [ -f settings.gradle ] && cp settings.gradle /output/ || true
                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/ || true
                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/ || true
                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true
                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true
                mkdir -p /output/libs
                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                    
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "expo > babel-preset-expo > @react-native/babel-preset > @react-native/babel-plugin-codegen > @react-native/codegen@0.76.7" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "react-native > @react-native/codegen > jscodeshift@0.14.0" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "react-native > @react-native/codegen@0.76.8" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
[4/4] Building fresh packages...
success Saved lockfile.
$ patch-package
patch-package 8.0.0
Applying patches...
html-entities@2.5.3 ✔
Done in 48.78s.
Downloading https://services.gradle.org/distributions/gradle-8.10.2-all.zip
.....................10%......................20%......................30%.....................40%......................50%......................60%......................70%.....................80%......................90%......................100%

Welcome to Gradle 8.10.2!

Here are the highlights of this release:
 - Support for Java 23
 - Faster configuration cache
 - Better configuration cache reports

For more details see https://docs.gradle.org/8.10.2/release-notes.html

To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
> Task :gradle-plugin:settings-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:processResources NO-SOURCE
> Task :gradle-plugin:settings-plugin:pluginDescriptors
> Task :gradle-plugin:settings-plugin:processResources
> Task :gradle-plugin:shared:compileKotlin
> Task :gradle-plugin:shared:compileJava NO-SOURCE
> Task :gradle-plugin:shared:classes UP-TO-DATE
> Task :gradle-plugin:shared:jar
> Task :gradle-plugin:settings-plugin:compileKotlin
> Task :gradle-plugin:settings-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:settings-plugin:classes
> Task :gradle-plugin:settings-plugin:jar
> Task :gradle-plugin:react-native-gradle-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:react-native-gradle-plugin:pluginDescriptors
> Task :gradle-plugin:react-native-gradle-plugin:processResources
> Task :gradle-plugin:react-native-gradle-plugin:compileKotlin
> Task :gradle-plugin:react-native-gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:react-native-gradle-plugin:classes
> Task :gradle-plugin:react-native-gradle-plugin:jar

> Configure project :app
Checking the license for package NDK (Side by side) 26.1.10909125 in /opt/android/licenses
License for package NDK (Side by side) 26.1.10909125 accepted.
Preparing "Install NDK (Side by side) 26.1.10909125 v.26.1.10909125".
"Install NDK (Side by side) 26.1.10909125 v.26.1.10909125" ready.
Installing NDK (Side by side) 26.1.10909125 in /opt/android/ndk/26.1.10909125
"Install NDK (Side by side) 26.1.10909125 v.26.1.10909125" complete.
"Install NDK (Side by side) 26.1.10909125 v.26.1.10909125" finished.

> Configure project :expo

Using expo modules
  - [32mexpo-asset[0m (11.0.5)
  - [32mexpo-constants[0m (17.0.8)
  - [32mexpo-file-system[0m (18.0.12)
  - [32mexpo-font[0m (13.0.4)
  - [32mexpo-keep-awake[0m (14.0.3)
  - [32mexpo-modules-core[0m (2.2.3)


> Configure project :react-native-reanimated
Android gradle plugin: 8.6.0
Gradle: 8.10.2

> Task :app:externalNativeBuildCleanDebug
> Task :app:externalNativeBuildCleanRelease
> Task :app:clean UP-TO-DATE
> Task :expensify_react-native-live-markdown:externalNativeBuildCleanDebug
> Task :expensify_react-native-live-markdown:externalNativeBuildCleanRelease
> Task :expensify_react-native-live-markdown:clean UP-TO-DATE
> Task :expo:clean UP-TO-DATE
> Task :expo-asset:clean UP-TO-DATE
> Task :expo-constants:clean UP-TO-DATE
> Task :expo-file-system:clean UP-TO-DATE
> Task :expo-font:clean UP-TO-DATE
> Task :expo-keep-awake:clean UP-TO-DATE
> Task :expo-modules-core:externalNativeBuildCleanDebug
> Task :expo-modules-core:externalNativeBuildCleanRelease
> Task :expo-modules-core:clean UP-TO-DATE
> Task :react-native-reanimated:cleanCmakeCache
> Task :react-native-reanimated:externalNativeBuildCleanDebug
> Task :react-native-reanimated:externalNativeBuildCleanRelease
> Task :react-native-reanimated:clean
> Task :react-native-safe-area-context:clean UP-TO-DATE

BUILD SUCCESSFUL in 6m 30s
33 actionable tasks: 23 executed, 10 up-to-date
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
> Task :gradle-plugin:settings-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:compileKotlin UP-TO-DATE
> Task :gradle-plugin:shared:compileJava NO-SOURCE
> Task :gradle-plugin:shared:processResources NO-SOURCE
> Task :gradle-plugin:shared:classes UP-TO-DATE
> Task :gradle-plugin:shared:jar UP-TO-DATE
> Task :gradle-plugin:settings-plugin:compileKotlin UP-TO-DATE
> Task :gradle-plugin:settings-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:settings-plugin:pluginDescriptors UP-TO-DATE
> Task :gradle-plugin:settings-plugin:processResources UP-TO-DATE
> Task :gradle-plugin:settings-plugin:classes UP-TO-DATE
> Task :gradle-plugin:settings-plugin:jar UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:react-native-gradle-plugin:compileKotlin UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:react-native-gradle-plugin:pluginDescriptors UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:processResources UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:classes UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:jar UP-TO-DATE

> Configure project :expo

Using expo modules
  - [32mexpo-asset[0m (11.0.5)
  - [32mexpo-constants[0m (17.0.8)
  - [32mexpo-file-system[0m (18.0.12)
  - [32mexpo-font[0m (13.0.4)
  - [32mexpo-keep-awake[0m (14.0.3)
  - [32mexpo-modules-core[0m (2.2.3)


> Configure project :react-native-reanimated
Android gradle plugin: 8.6.0
Gradle: 8.10.2
Checking the license for package Android SDK Build-Tools 35 in /opt/android/licenses
License for package Android SDK Build-Tools 35 accepted.
Preparing "Install Android SDK Build-Tools 35 v.35.0.0".
"Install Android SDK Build-Tools 35 v.35.0.0" ready.
Installing Android SDK Build-Tools 35 in /opt/android/build-tools/35.0.0
"Install Android SDK Build-Tools 35 v.35.0.0" complete.
"Install Android SDK Build-Tools 35 v.35.0.0" finished.
Checking the license for package Android SDK Platform 35 in /opt/android/licenses
License for package Android SDK Platform 35 accepted.
Preparing "Install Android SDK Platform 35 (revision 2)".
"Install Android SDK Platform 35 (revision 2)" ready.
Installing Android SDK Platform 35 in /opt/android/platforms/android-35
"Install Android SDK Platform 35 (revision 2)" complete.
"Install Android SDK Platform 35 (revision 2)" finished.

> Task :app:generateAutolinkingNewArchitectureFiles
> Task :app:generateAutolinkingPackageList
> Task :app:generateCodegenSchemaFromJavaScript SKIPPED
> Task :app:generateCodegenArtifactsFromSchema SKIPPED
> Task :app:preBuild
> Task :app:preDebugBuild
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:checkKotlinGradlePluginConfigurationErrors
> Task :app:generateDebugBuildConfig
> Task :expensify_react-native-live-markdown:generateCodegenSchemaFromJavaScript
> Task :expensify_react-native-live-markdown:generateCodegenArtifactsFromSchema
> Task :expensify_react-native-live-markdown:preBuild
> Task :expensify_react-native-live-markdown:preDebugBuild
> Task :expensify_react-native-live-markdown:writeDebugAarMetadata
> Task :expo:generateExpoModulesPackageListTask
> Task :expo:preBuild
> Task :expo:preDebugBuild
> Task :expo-asset:preBuild UP-TO-DATE
> Task :expo:writeDebugAarMetadata
> Task :expo-asset:preDebugBuild UP-TO-DATE
> Task :expo-asset:writeDebugAarMetadata

> Task :expo-constants:createExpoConfig

> Task :expo-constants:preBuild
> Task :expo-constants:preDebugBuild
> Task :expo-file-system:preBuild UP-TO-DATE
> Task :expo-file-system:preDebugBuild UP-TO-DATE
> Task :expo-constants:writeDebugAarMetadataThe NODE_ENV environment variable is required but was not specified. Ensure the project is bundled with Expo CLI or NODE_ENV is set.
Proceeding without mode-specific .env

> Task :expo-font:preBuild UP-TO-DATE
> Task :expo-font:preDebugBuild UP-TO-DATE
> Task :expo-file-system:writeDebugAarMetadata
> Task :expo-keep-awake:preBuild UP-TO-DATE
> Task :expo-keep-awake:preDebugBuild UP-TO-DATE
> Task :expo-font:writeDebugAarMetadata
> Task :expo-modules-core:preBuild UP-TO-DATE
> Task :expo-modules-core:preDebugBuild UP-TO-DATE
> Task :react-native-reanimated:assertMinimalReactNativeVersionTask SKIPPED
> Task :expo-keep-awake:writeDebugAarMetadata
> Task :expo-modules-core:writeDebugAarMetadata
> Task :react-native-reanimated:generateCodegenSchemaFromJavaScript
> Task :react-native-reanimated:generateCodegenArtifactsFromSchema
> Task :react-native-reanimated:prepareReanimatedHeadersForPrefabs
> Task :react-native-reanimated:prepareWorkletsHeadersForPrefabs
> Task :react-native-reanimated:preBuild
> Task :react-native-reanimated:preDebugBuild
> Task :react-native-reanimated:writeDebugAarMetadata
> Task :react-native-safe-area-context:generateCodegenSchemaFromJavaScript
> Task :react-native-safe-area-context:generateCodegenArtifactsFromSchema
> Task :react-native-safe-area-context:preBuild
> Task :react-native-safe-area-context:preDebugBuild
> Task :react-native-safe-area-context:writeDebugAarMetadata
> Task :app:generateDebugResValues
> Task :expensify_react-native-live-markdown:generateDebugResValues
> Task :expensify_react-native-live-markdown:generateDebugResources
> Task :app:checkDebugAarMetadata
> Task :expensify_react-native-live-markdown:packageDebugResources
> Task :expo:generateDebugResValues
> Task :expo:generateDebugResources
> Task :expo:packageDebugResources
> Task :expo-asset:generateDebugResValues
> Task :expo-asset:generateDebugResources
> Task :expo-asset:packageDebugResources
> Task :expo-constants:generateDebugResValues
> Task :expo-constants:generateDebugResources
> Task :expo-constants:packageDebugResources
> Task :expo-file-system:generateDebugResValues
> Task :expo-file-system:generateDebugResources
> Task :expo-file-system:packageDebugResources
> Task :expo-font:generateDebugResValues
> Task :expo-font:generateDebugResources
> Task :expo-font:packageDebugResources
> Task :expo-keep-awake:generateDebugResValues
> Task :expo-keep-awake:generateDebugResources
> Task :expo-keep-awake:packageDebugResources
> Task :expo-modules-core:generateDebugResValues
> Task :expo-modules-core:generateDebugResources
> Task :expo-modules-core:packageDebugResources
> Task :react-native-reanimated:generateDebugResValues
> Task :react-native-reanimated:generateDebugResources
> Task :react-native-reanimated:packageDebugResources
> Task :react-native-safe-area-context:generateDebugResValues
> Task :react-native-safe-area-context:generateDebugResources
> Task :react-native-safe-area-context:packageDebugResources
> Task :app:mapDebugSourceSetPaths
> Task :app:generateDebugResources
> Task :app:packageDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :expensify_react-native-live-markdown:extractDeepLinksDebug
> Task :app:parseDebugLocalResources
> Task :expo:extractDeepLinksDebug
> Task :expo-asset:extractDeepLinksDebug
> Task :expo-constants:extractDeepLinksDebug
> Task :expo-file-system:extractDeepLinksDebug
> Task :app:mergeDebugResources
> Task :expo-font:extractDeepLinksDebug
> Task :expo-keep-awake:extractDeepLinksDebug
> Task :expo-modules-core:extractDeepLinksDebug
> Task :expo-keep-awake:processDebugManifest
> Task :expensify_react-native-live-markdown:processDebugManifest
> Task :expo-asset:processDebugManifest
> Task :expo-font:processDebugManifest
> Task :expo:processDebugManifest
> Task :expo-constants:processDebugManifest

> Task :expo-modules-core:processDebugManifest
/app/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-file-system:processDebugManifest
/app/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 :react-native-reanimated:extractDeepLinksDebug
> Task :react-native-reanimated:processDebugManifest
> Task :react-native-safe-area-context:extractDeepLinksDebug

> Task :react-native-safe-area-context:processDebugManifest
package="com.th3rdwave.safeareacontext" found in source AndroidManifest.xml: /app/node_modules/react-native-safe-area-context/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.th3rdwave.safeareacontext" from the source AndroidManifest.xml: /app/node_modules/react-native-safe-area-context/android/src/main/AndroidManifest.xml.

> Task :expensify_react-native-live-markdown:compileDebugLibraryResources

> Task :app:processDebugMainManifest
/app/android/app/src/debug/AndroidManifest.xml:6:5-162 Warning:
	application@android:usesCleartextTraffic was tagged at AndroidManifest.xml:6 to replace other declarations but no other declaration present
/app/android/app/src/debug/AndroidManifest.xml Warning:
	provider#expo.modules.filesystem.FileSystemFileProvider@android:authorities was tagged at AndroidManifest.xml:0 to replace other declarations but no other declaration present

> Task :app:processDebugManifest
> Task :expo:compileDebugLibraryResources
> Task :expensify_react-native-live-markdown:parseDebugLocalResources
> Task :expo:parseDebugLocalResources
> Task :expo-asset:compileDebugLibraryResources
> Task :expo-constants:compileDebugLibraryResources
> Task :expo-asset:parseDebugLocalResources
> Task :expensify_react-native-live-markdown:generateDebugRFile
> Task :expo-constants:parseDebugLocalResources
> Task :expo:generateDebugRFile
> Task :expo-asset:generateDebugRFile
> Task :expo-constants:generateDebugRFile
> Task :expo-file-system:compileDebugLibraryResources
> Task :expo-file-system:parseDebugLocalResources
> Task :expo-font:compileDebugLibraryResources
> Task :expo-font:parseDebugLocalResources
> Task :expo-file-system:generateDebugRFile
> Task :expo-keep-awake:compileDebugLibraryResources
> Task :expo-font:generateDebugRFile
> Task :expo-modules-core:compileDebugLibraryResources
> Task :expo-keep-awake:parseDebugLocalResources
> Task :app:processDebugManifestForPackage
> Task :expo-keep-awake:generateDebugRFile
> Task :expo-modules-core:parseDebugLocalResources
> Task :react-native-reanimated:compileDebugLibraryResources
> Task :react-native-reanimated:parseDebugLocalResources
> Task :expo-modules-core:generateDebugRFile
> Task :react-native-safe-area-context:compileDebugLibraryResources
> Task :react-native-reanimated:generateDebugRFile
> Task :react-native-safe-area-context:parseDebugLocalResources
> Task :expensify_react-native-live-markdown:generateDebugBuildConfig
> Task :react-native-safe-area-context:generateDebugRFile
> Task :expensify_react-native-live-markdown:javaPreCompileDebug
> Task :react-native-reanimated:generateDebugBuildConfig
> Task :react-native-reanimated:packageNdkLibs NO-SOURCE
> Task :expo:checkKotlinGradlePluginConfigurationErrors
> Task :react-native-reanimated:javaPreCompileDebug
> Task :expo:generateDebugBuildConfig
> Task :app:processDebugResources

> Task :react-native-reanimated:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :expo-asset:checkKotlinGradlePluginConfigurationErrors
> Task :expo-asset:generateDebugBuildConfig
> Task :expo-modules-core:checkKotlinGradlePluginConfigurationErrors
> Task :expo-modules-core:generateDebugBuildConfig
> Task :react-native-reanimated:bundleLibCompileToJarDebug
> Task :expensify_react-native-live-markdown:compileDebugJavaWithJavac
> Task :expo-modules-core:javaPreCompileDebug
> Task :expo-asset:javaPreCompileDebug
> Task :expo-constants:checkKotlinGradlePluginConfigurationErrors
> Task :expensify_react-native-live-markdown:bundleLibCompileToJarDebug
> Task :expo-constants:generateDebugBuildConfig
> Task :expo-file-system:checkKotlinGradlePluginConfigurationErrors
> Task :expo-constants:javaPreCompileDebug
> Task :expo-file-system:generateDebugBuildConfig
> Task :expo-file-system:javaPreCompileDebug
> Task :expo-font:checkKotlinGradlePluginConfigurationErrors
> Task :expo-font:generateDebugBuildConfig
> Task :expo-keep-awake:checkKotlinGradlePluginConfigurationErrors
> Task :expo-font:javaPreCompileDebug
> Task :expo-keep-awake:generateDebugBuildConfig
> Task :expo-keep-awake:javaPreCompileDebug
> Task :expo:javaPreCompileDebug
> Task :react-native-safe-area-context:checkKotlinGradlePluginConfigurationErrors
> Task :react-native-safe-area-context:generateDebugBuildConfig
> Task :react-native-safe-area-context:javaPreCompileDebug
> Task :app:javaPreCompileDebug
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :expensify_react-native-live-markdown:mergeDebugShaders
> Task :expensify_react-native-live-markdown:compileDebugShaders NO-SOURCE
> Task :expensify_react-native-live-markdown:generateDebugAssets UP-TO-DATE
> Task :expensify_react-native-live-markdown:packageDebugAssets
> Task :expo:mergeDebugShaders
> Task :expo:compileDebugShaders NO-SOURCE
> Task :expo:generateDebugAssets UP-TO-DATE
> Task :expo:packageDebugAssets
> Task :expo-asset:mergeDebugShaders
> Task :expo-asset:compileDebugShaders NO-SOURCE
> Task :expo-asset:generateDebugAssets UP-TO-DATE
> Task :expo-asset:packageDebugAssets
> Task :expo-constants:mergeDebugShaders
> Task :expo-constants:compileDebugShaders NO-SOURCE
> Task :expo-constants:generateDebugAssets UP-TO-DATE
> Task :expo-constants:packageDebugAssets
> Task :expo-file-system:mergeDebugShaders
> Task :expo-file-system:compileDebugShaders NO-SOURCE
> Task :expo-file-system:generateDebugAssets UP-TO-DATE
> Task :expo-file-system:packageDebugAssets
> Task :expo-font:mergeDebugShaders
> Task :expo-font:compileDebugShaders NO-SOURCE
> Task :expo-font:generateDebugAssets UP-TO-DATE
> Task :expo-font:packageDebugAssets
> Task :expo-keep-awake:mergeDebugShaders
> Task :expo-keep-awake:compileDebugShaders NO-SOURCE
> Task :expo-keep-awake:generateDebugAssets UP-TO-DATE
> Task :expo-keep-awake:packageDebugAssets
> Task :expo-modules-core:mergeDebugShaders
> Task :expo-modules-core:compileDebugShaders NO-SOURCE
> Task :expo-modules-core:generateDebugAssets UP-TO-DATE
> Task :expo-modules-core:packageDebugAssets
> Task :react-native-reanimated:mergeDebugShaders
> Task :react-native-reanimated:compileDebugShaders NO-SOURCE
> Task :react-native-reanimated:generateDebugAssets UP-TO-DATE
> Task :react-native-reanimated:packageDebugAssets
> Task :react-native-safe-area-context:mergeDebugShaders
> Task :react-native-safe-area-context:compileDebugShaders NO-SOURCE
> Task :react-native-safe-area-context:generateDebugAssets UP-TO-DATE
> Task :react-native-safe-area-context:packageDebugAssets
> Task :app:mergeDebugAssets
> Task :app:compressDebugAssets
> Task :expensify_react-native-live-markdown:bundleLibRuntimeToJarDebug
> Task :app:desugarDebugFileDependencies
> Task :expensify_react-native-live-markdown:processDebugJavaRes NO-SOURCE
> Task :react-native-reanimated:processDebugJavaRes NO-SOURCE
> Task :react-native-reanimated:bundleLibRuntimeToJarDebug
> Task :expensify_react-native-live-markdown:bundleLibRuntimeToDirDebug
> Task :app:checkDebugDuplicateClasses
> Task :react-native-reanimated:bundleLibRuntimeToDirDebug

> Task :react-native-reanimated:configureCMakeDebug[arm64-v8a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-safe-area-context:compileDebugKotlin
w: file:///app/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaView.kt:59:23 'getter for uiImplementation: UIImplementation!' is deprecated. Deprecated in Java

> Task :expo-modules-core:compileDebugKotlin
> Task :react-native-safe-area-context:compileDebugJavaWithJavac
> Task :react-native-safe-area-context:bundleLibCompileToJarDebug
> Task :react-native-safe-area-context:bundleLibRuntimeToJarDebug
> Task :react-native-safe-area-context:processDebugJavaRes
> Task :react-native-safe-area-context:bundleLibRuntimeToDirDebug
> Task :app:mergeExtDexDebug

> Task :react-native-reanimated:configureCMakeDebug[armeabi-v7a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-reanimated:configureCMakeDebug[x86]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-reanimated:configureCMakeDebug[x86_64]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-reanimated:generateJsonModelDebug
> Task :react-native-reanimated:prefabDebugConfigurePackage
> Task :app:configureCMakeDebug[arm64-v8a]
> Task :expo-modules-core:compileDebugJavaWithJavac
> Task :expo-modules-core:processDebugJavaRes
> Task :expo-modules-core:bundleLibRuntimeToJarDebug
> Task :expo-modules-core:bundleLibCompileToJarDebug
> Task :expo-modules-core:bundleLibRuntimeToDirDebug
> Task :react-native-reanimated:buildCMakeDebug[arm64-v8a][reanimated,worklets]
> Task :expo-asset:compileDebugKotlin
> Task :expo-asset:compileDebugJavaWithJavac
> Task :expo-asset:bundleLibCompileToJarDebug
> Task :expo-constants:compileDebugKotlin
> Task :expo-font:compileDebugKotlin
> Task :expo-constants:compileDebugJavaWithJavac
> Task :expo-constants:bundleLibCompileToJarDebug
> Task :expo-font:compileDebugJavaWithJavac
> Task :expo-font:bundleLibCompileToJarDebug
> Task :expo-asset:bundleLibRuntimeToJarDebug
> Task :expo-constants:bundleLibRuntimeToJarDebug
> Task :expo-asset:processDebugJavaRes
> Task :expo-font:bundleLibRuntimeToJarDebug
> Task :expo-constants:processDebugJavaRes
> Task :expo-font:processDebugJavaRes
> Task :expo-asset:bundleLibRuntimeToDirDebug
> Task :expo-constants:bundleLibRuntimeToDirDebug
> Task :expo-keep-awake:compileDebugKotlin
> Task :expo-font:bundleLibRuntimeToDirDebug
> Task :expo-keep-awake:compileDebugJavaWithJavac
> Task :expo-keep-awake:bundleLibCompileToJarDebug
> Task :expo-keep-awake:bundleLibRuntimeToJarDebug
> Task :expo-keep-awake:processDebugJavaRes
> Task :expo-keep-awake:bundleLibRuntimeToDirDebug
> Task :expo-file-system:compileDebugKotlin
> Task :react-native-reanimated:buildCMakeDebug[armeabi-v7a][reanimated,worklets]
> Task :expo-file-system:compileDebugJavaWithJavac
> Task :expo-file-system:processDebugJavaRes
> Task :expo-file-system:bundleLibCompileToJarDebug
> Task :expo-file-system:bundleLibRuntimeToJarDebug
> Task :expo-file-system:bundleLibRuntimeToDirDebug

> Task :expo:compileDebugKotlin
w: file:///app/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt:163:34 'constructor ReactDelegate(Activity!, ReactNativeHost!, String?, Bundle?)' is deprecated. Deprecated in Java
w: file:///app/node_modules/expo/android/src/main/java/expo/modules/fetch/NativeResponse.kt:40:16 This declaration overrides deprecated member but not marked as deprecated itself. Please add @Deprecated annotation or suppress. See https://youtrack.jetbrains.com/issue/KT-47902 for details
w: file:///app/node_modules/expo/android/src/main/java/expo/modules/fetch/NativeResponse.kt:42:11 'deallocate(): Unit' is deprecated. Use sharedObjectDidRelease() instead.

> Task :react-native-reanimated:buildCMakeDebug[x86][reanimated,worklets]
> Task :expo:compileDebugJavaWithJavac
> Task :expo:bundleLibCompileToJarDebug
> Task :expo:bundleLibRuntimeToJarDebug
> Task :expo:processDebugJavaRes
> Task :expo:bundleLibRuntimeToDirDebug
> Task :app:compileDebugKotlin
> Task :react-native-reanimated:buildCMakeDebug[x86_64][reanimated,worklets]
> Task :app:compileDebugJavaWithJavac
> Task :app:dexBuilderDebug
> Task :app:processDebugJavaRes
> Task :app:mergeDebugGlobalSynthetics
> Task :app:mergeProjectDexDebug
> Task :app:mergeLibDexDebug
> Task :app:mergeDebugJavaResource
> Task :react-native-reanimated:externalNativeBuildDebug
> Task :react-native-reanimated:prefabDebugPackage
> Task :app:buildCMakeDebug[arm64-v8a]
> Task :app:configureCMakeDebug[armeabi-v7a]
> Task :app:buildCMakeDebug[armeabi-v7a]
> Task :app:configureCMakeDebug[x86]
> Task :app:buildCMakeDebug[x86]
> Task :app:configureCMakeDebug[x86_64]
> Task :app:buildCMakeDebug[x86_64]
> Task :app:mergeDebugJniLibFolders
> Task :expensify_react-native-live-markdown:configureCMakeDebug[arm64-v8a]
> Task :expensify_react-native-live-markdown:buildCMakeDebug[arm64-v8a]
> Task :expensify_react-native-live-markdown:configureCMakeDebug[armeabi-v7a]
> Task :expensify_react-native-live-markdown:buildCMakeDebug[armeabi-v7a]
> Task :expensify_react-native-live-markdown:configureCMakeDebug[x86]
> Task :expensify_react-native-live-markdown:buildCMakeDebug[x86]
> Task :expensify_react-native-live-markdown:configureCMakeDebug[x86_64]
> Task :expensify_react-native-live-markdown:buildCMakeDebug[x86_64]
> Task :expensify_react-native-live-markdown:mergeDebugJniLibFolders
> Task :expo:mergeDebugJniLibFolders
> Task :expo:mergeDebugNativeLibs NO-SOURCE
> Task :expo:copyDebugJniLibsProjectOnly
> Task :expensify_react-native-live-markdown:mergeDebugNativeLibs
> Task :expo-asset:mergeDebugJniLibFolders
> Task :expo-asset:mergeDebugNativeLibs NO-SOURCE
> Task :expo-asset:copyDebugJniLibsProjectOnly
> Task :expo-constants:mergeDebugJniLibFolders
> Task :expo-constants:mergeDebugNativeLibs NO-SOURCE
> Task :expo-constants:copyDebugJniLibsProjectOnly
> Task :expo-file-system:mergeDebugJniLibFolders
> Task :expo-file-system:mergeDebugNativeLibs NO-SOURCE
> Task :expo-file-system:copyDebugJniLibsProjectOnly
> Task :expensify_react-native-live-markdown:copyDebugJniLibsProjectOnly
> Task :expo-font:mergeDebugJniLibFolders
> Task :expo-font:mergeDebugNativeLibs NO-SOURCE
> Task :expo-font:copyDebugJniLibsProjectOnly
> Task :expo-keep-awake:mergeDebugJniLibFolders
> Task :expo-keep-awake:mergeDebugNativeLibs NO-SOURCE
> Task :expo-keep-awake:copyDebugJniLibsProjectOnly
> Task :expo-modules-core:configureCMakeDebug[arm64-v8a]
> Task :expo-modules-core:buildCMakeDebug[arm64-v8a]
> Task :expo-modules-core:configureCMakeDebug[armeabi-v7a]
> Task :expo-modules-core:buildCMakeDebug[armeabi-v7a]
> Task :expo-modules-core:configureCMakeDebug[x86]
> Task :expo-modules-core:buildCMakeDebug[x86]
> Task :expo-modules-core:configureCMakeDebug[x86_64]
> Task :expo-modules-core:buildCMakeDebug[x86_64]
> Task :expo-modules-core:mergeDebugJniLibFolders
> Task :react-native-reanimated:mergeDebugJniLibFolders
> Task :react-native-safe-area-context:mergeDebugJniLibFolders
> Task :react-native-safe-area-context:mergeDebugNativeLibs NO-SOURCE
> Task :react-native-safe-area-context:copyDebugJniLibsProjectOnly
> Task :app:validateSigningDebug
> Task :app:writeDebugAppMetadata
> Task :app:writeDebugSigningConfigVersions
> Task :expo-modules-core:mergeDebugNativeLibs
> Task :react-native-reanimated:mergeDebugNativeLibs
> Task :expensify_react-native-live-markdown:stripDebugDebugSymbols
> Task :expensify_react-native-live-markdown:extractDebugAnnotations
> Task :expensify_react-native-live-markdown:extractDeepLinksForAarDebug
> Task :expensify_react-native-live-markdown:mergeDebugGeneratedProguardFiles
> Task :expensify_react-native-live-markdown:mergeDebugConsumerProguardFiles
> Task :expensify_react-native-live-markdown:copyDebugJniLibsProjectAndLocalJars
> Task :expensify_react-native-live-markdown:prepareDebugArtProfile
> Task :expensify_react-native-live-markdown:prepareLintJarForPublish
> Task :expo:stripDebugDebugSymbols NO-SOURCE
> Task :expo:copyDebugJniLibsProjectAndLocalJars
> Task :expensify_react-native-live-markdown:mergeDebugJavaResource
> Task :expo:extractDebugAnnotations
> Task :expensify_react-native-live-markdown:syncDebugLibJars
> Task :expo-modules-core:copyDebugJniLibsProjectOnly
> Task :expensify_react-native-live-markdown:bundleDebugAar
> Task :expensify_react-native-live-markdown:assembleDebug
> Task :expo:extractDeepLinksForAarDebug
> Task :expo:mergeDebugGeneratedProguardFiles
> Task :expo:mergeDebugConsumerProguardFiles
> Task :expo:prepareDebugArtProfile
> Task :expo:prepareLintJarForPublish
> Task :expo-asset:stripDebugDebugSymbols NO-SOURCE
> Task :expo-asset:copyDebugJniLibsProjectAndLocalJars
> Task :expo-asset:extractDebugAnnotations
> Task :expo:mergeDebugJavaResource
> Task :expo-asset:extractDeepLinksForAarDebug
> Task :expo:syncDebugLibJars
> Task :expo:bundleDebugAar
> Task :expo:assembleDebug
> Task :expo-asset:mergeDebugGeneratedProguardFiles
> Task :expo-asset:mergeDebugConsumerProguardFiles
> Task :expo-asset:prepareDebugArtProfile
> Task :expo-asset:prepareLintJarForPublish
> Task :expo-constants:stripDebugDebugSymbols NO-SOURCE
> Task :expo-asset:mergeDebugJavaResource
> Task :expo-constants:copyDebugJniLibsProjectAndLocalJars
> Task :expo-asset:syncDebugLibJars
> Task :expo-asset:bundleDebugAar
> Task :expo-asset:assembleDebug
> Task :react-native-reanimated:copyDebugJniLibsProjectOnly
> Task :expo-constants:extractDebugAnnotations
> Task :expo-constants:extractDeepLinksForAarDebug
> Task :expo-constants:mergeDebugGeneratedProguardFiles
> Task :expo-constants:mergeDebugConsumerProguardFiles
> Task :expo-constants:prepareDebugArtProfile
> Task :expo-constants:prepareLintJarForPublish
> Task :expo-file-system:stripDebugDebugSymbols NO-SOURCE
> Task :expo-constants:mergeDebugJavaResource
> Task :expo-file-system:copyDebugJniLibsProjectAndLocalJars
> Task :expo-constants:syncDebugLibJars
> Task :expo-constants:bundleDebugAar
> Task :expo-constants:assembleDebug
> Task :expo-file-system:extractDebugAnnotations
> Task :expo-file-system:extractDeepLinksForAarDebug
> Task :expo-file-system:mergeDebugGeneratedProguardFiles
> Task :expo-file-system:mergeDebugConsumerProguardFiles
> Task :expo-file-system:prepareDebugArtProfile
> Task :expo-file-system:prepareLintJarForPublish
> Task :expo-font:stripDebugDebugSymbols NO-SOURCE
> Task :expo-file-system:mergeDebugJavaResource
> Task :expo-font:copyDebugJniLibsProjectAndLocalJars
> Task :expo-file-system:syncDebugLibJars
> Task :expo-file-system:bundleDebugAar
> Task :expo-file-system:assembleDebug
> Task :expo-font:extractDebugAnnotations
> Task :expo-font:extractDeepLinksForAarDebug
> Task :expo-font:mergeDebugGeneratedProguardFiles
> Task :expo-font:mergeDebugConsumerProguardFiles
> Task :expo-font:prepareDebugArtProfile
> Task :expo-font:prepareLintJarForPublish
> Task :expo-keep-awake:stripDebugDebugSymbols NO-SOURCE
> Task :expo-keep-awake:copyDebugJniLibsProjectAndLocalJars
> Task :expo-font:mergeDebugJavaResource
> Task :expo-keep-awake:extractDebugAnnotations
> Task :expo-font:syncDebugLibJars
> Task :expo-font:bundleDebugAar
> Task :expo-font:assembleDebug
> Task :expo-keep-awake:extractDeepLinksForAarDebug
> Task :expo-keep-awake:mergeDebugGeneratedProguardFiles
> Task :expo-keep-awake:mergeDebugConsumerProguardFiles
> Task :expo-keep-awake:prepareDebugArtProfile
> Task :expo-keep-awake:prepareLintJarForPublish
> Task :expo-keep-awake:mergeDebugJavaResource
> Task :expo-modules-core:extractDebugAnnotations
> Task :expo-keep-awake:syncDebugLibJars
> Task :expo-keep-awake:bundleDebugAar
> Task :expo-keep-awake:assembleDebug
> Task :expo-modules-core:extractDeepLinksForAarDebug
> Task :expo-modules-core:mergeDebugGeneratedProguardFiles
> Task :expo-modules-core:mergeDebugConsumerProguardFiles
> Task :expo-modules-core:prepareDebugArtProfile
> Task :expo-modules-core:prepareLintJarForPublish
> Task :react-native-reanimated:extractDebugAnnotations
> Task :react-native-reanimated:extractDeepLinksForAarDebug
> Task :expo-modules-core:mergeDebugJavaResource
> Task :react-native-reanimated:mergeDebugGeneratedProguardFiles
> Task :expo-modules-core:stripDebugDebugSymbols
> Task :expo-modules-core:syncDebugLibJars
> Task :react-native-reanimated:mergeDebugConsumerProguardFiles
> Task :react-native-reanimated:prepareDebugArtProfile
> Task :react-native-reanimated:prepareLintJarForPublish
> Task :react-native-safe-area-context:stripDebugDebugSymbols NO-SOURCE
> Task :react-native-safe-area-context:copyDebugJniLibsProjectAndLocalJars
> Task :react-native-reanimated:mergeDebugJavaResource
> Task :expo-modules-core:copyDebugJniLibsProjectAndLocalJars
> Task :react-native-safe-area-context:extractDebugAnnotations
> Task :react-native-reanimated:stripDebugDebugSymbols
> Task :expo-modules-core:bundleDebugAar
> Task :expo-modules-core:assembleDebug
> Task :react-native-reanimated:syncDebugLibJars
> Task :react-native-safe-area-context:extractDeepLinksForAarDebug
> Task :react-native-safe-area-context:mergeDebugGeneratedProguardFiles
> Task :react-native-safe-area-context:mergeDebugConsumerProguardFiles
> Task :react-native-safe-area-context:prepareDebugArtProfile
> Task :react-native-safe-area-context:prepareLintJarForPublish
> Task :react-native-safe-area-context:mergeDebugJavaResource
> Task :react-native-safe-area-context:syncDebugLibJars
> Task :react-native-safe-area-context:bundleDebugAar
> Task :react-native-safe-area-context:assembleDebug
> Task :react-native-reanimated:copyDebugJniLibsProjectAndLocalJars
> Task :app:mergeDebugNativeLibs
> Task :react-native-reanimated:bundleDebugAar
> Task :react-native-reanimated:assembleDebug
> Task :app:stripDebugDebugSymbols
> Task :app:packageDebug
> Task :app:createDebugApkListingFileRedirect
> Task :app:assembleDebug

BUILD SUCCESSFUL in 8m 29s
418 actionable tasks: 408 executed, 10 up-to-date

> docker run --rm -v /home/ubuntu/storage/extracted/OzymandiasTheGreat-react-native-live-rich-text/react-native-live-rich-text-a78c7f17024d0bf4b396f9dbb2d7d4b01a80876c/example:/source:ro -v /home/ubuntu/BachelorsThesis/scripts/RN/output/OzymandiasTheGreat-react-native-live-rich-text:/output -v /home/ubuntu/.npm:/root/.npm react-android:18-jdk17 bash -c 
                set -e

                cp -r /source/. /app &&                 cd /app && 
                # ---- install deps (yarn or npm) ----
                if [ -f yarn.lock ]; then
                    yarn install;
                else
                    npm install --ignore-scripts;
                fi && 
                # ---- stub missing parent package.json (monorepo metro configs) ----
                [ ! -f ../package.json ] && cp package.json ../package.json 2>/dev/null || true && 
                # ---- patch toReversed (Node <20 compat) ----
                find node_modules -name "loadConfig.js" -path "*/metro-config/*" -exec sed -i 's/\.toReversed()/.slice().reverse()/g' {} \; 2>/dev/null || true && 
                # ---- patch missing expo/AppEntry ----
                if grep -q '"main".*expo/AppEntry' package.json 2>/dev/null &&                    [ ! -f node_modules/expo/AppEntry.js ] && [ ! -f node_modules/expo/AppEntry.ts ]; then                     node -e "const fs=require('fs'); const p=JSON.parse(fs.readFileSync('package.json','utf8')); if(fs.existsSync('index.js')){p.main='index.js'; fs.writeFileSync('package.json',JSON.stringify(p,null,2));}" 2>/dev/null || true;                 fi && 
                # ---- patch broken metro config (ESM-only, null-returning, or monorepo-only) ----
                # NOTE: do NOT replace configs that merely use expo/metro-config — those carry
                # Expo-specific resolver paths (watchFolders, extraNodeModules) needed for
                # packages like @react-native-masked-view/masked-view to resolve.
                if grep -q 'react-native-monorepo-config' metro.config.js 2>/dev/null ||                    ! node -e "const c=require('./metro.config.js'); if(!c||typeof c!=='object') process.exit(1);" 2>/dev/null; then                     if [ -d node_modules/@react-native/metro-config ]; then                         printf 'const {getDefaultConfig, mergeConfig} = require("@react-native/metro-config");
module.exports = mergeConfig(getDefaultConfig(__dirname), {});
' > metro.config.js;                     else                         printf 'const {getDefaultConfig} = require("metro-config");
module.exports = getDefaultConfig(__dirname);
' > metro.config.js;                     fi;                 fi && 
                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----
                if [ ! -f google-services.json ]; then                     python3 -c "import json; open('google-services.json','w').write(json.dumps({'project_info':{'project_number':'000000000000','project_id':'stub','storage_bucket':'stub.appspot.com'},'client':[{'client_info':{'mobilesdk_app_id':'1:000000000000:android:0000000000000000','android_client_info':{'package_name':'com.stub'}},'oauth_client':[],'api_key':[{'current_key':'stub'}],'services':{'appinvite_service':{'other_platform_oauth_client':[]}}}],'configuration_version':'1'}))" 2>/dev/null || true;                 fi && 
                # ---- detect expo ----
                if grep -q '"expo"' package.json && [ ! -d android ]; then
                    echo "Expo project detected";
                    CI=1 npx --yes expo prebuild --platform android
                fi && 
                # ---- fix expo/metro-config: serializer + Flow transformIgnorePatterns ----
                # Runs AFTER prebuild because prebuild generates metro.config.js for managed-workflow
                # projects — patching before prebuild would be overwritten by the generated file.
                # Fix 1: remove customSerializer that returns JS string instead of JSON
                #   ("var __BUND..." → "Serializer did not return expected format").
                # Fix 2: add transformIgnorePatterns so expo/src/Expo.ts goes through Babel
                #   (default pattern excludes all node_modules → raw Flow types → SyntaxError).
                if [ -f metro.config.js ] && [ -d node_modules/expo ] &&                    ( grep -q 'expo/metro-config\|@expo/metro-config' metro.config.js 2>/dev/null ||                      ! grep -q 'transformIgnorePatterns' metro.config.js 2>/dev/null ); then                     cp metro.config.js metro.config.orig.js &&                     printf 'const c=require("./metro.config.orig.js");const r=Object.assign({},c);if(r.serializer){r.serializer=Object.assign({},r.serializer);delete r.serializer.customSerializer;}r.transformer=Object.assign({},r.transformer||{});if(!r.transformer.transformIgnorePatterns){r.transformer.transformIgnorePatterns=["node_modules/(?!(react-native|@react-native|expo|@expo|@unimodules|react-clone-referenced-element|@react-navigation|native-base)/)"];}module.exports=r;\n' > metro.config.js;                 fi && 
                # ---- stub missing metro watchFolders paths ----
                mkdir -p /src 2>/dev/null || true && 
                # ---- fix babel configs that use react-native-builder-bob ----
                # builder-bob is a library-dev tool; its getConfig() throws "Couldn't determine the source
                # directory" when built outside the library's own workspace. Replace with a standard preset.
                if grep -ql 'react-native-builder-bob' babel.config.js babel.config.json .babelrc .babelrc.js 2>/dev/null; then                     if [ -d node_modules/babel-preset-expo ]; then                         printf 'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};
' > babel.config.js;                     elif [ -d node_modules/@react-native/babel-preset ]; then                         printf 'module.exports={presets:["module:@react-native/babel-preset"]};' > babel.config.js;                     else                         printf 'module.exports={presets:["module:metro-react-native-babel-preset"]};' > babel.config.js;                     fi;                 fi && 
                # ---- ensure TypeScript babel support (fixes 'interface' SyntaxError in metro bundling) ----
                if [ -d node_modules/babel-preset-expo ]; then                     grep -ql "expo\|typescript" babel.config.js .babelrc .babelrc.js babel.config.json 2>/dev/null ||                     printf 'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};
' > babel.config.js;                 fi && 
                # ---- stub missing-asset-registry-path (Metro virtual module not resolved in release) ----
                # Metro normally aliases this to @react-native/assets-registry/registry at bundle time.
                # When that alias is missing, any PNG asset in node_modules triggers "Unable to resolve module".
                if [ ! -d node_modules/missing-asset-registry-path ]; then                     mkdir -p node_modules/missing-asset-registry-path &&                     if [ -f node_modules/@react-native/assets-registry/registry.js ]; then                         printf 'module.exports=require("@react-native/assets-registry/registry");' > node_modules/missing-asset-registry-path/index.js;                     else                         printf 'module.exports={registerAsset:function(){return 0;},getAssetByID:function(){return null;}};' > node_modules/missing-asset-registry-path/index.js;                     fi;                 fi && 
                # ---- stub @react-native-masked-view/masked-view if missing ----
                # Required by @react-navigation/elements but often not installed as a direct dependency.
                if [ ! -d node_modules/@react-native-masked-view/masked-view ]; then                     mkdir -p node_modules/@react-native-masked-view/masked-view &&                     printf '{"name":"@react-native-masked-view/masked-view","version":"0.1.11","main":"index.js"}' > node_modules/@react-native-masked-view/masked-view/package.json &&                     printf 'const React=require("react");const {View}=require("react-native");function MaskedView(p){return React.createElement(View,p.style?{style:p.style}:{},p.children);}module.exports=MaskedView;module.exports.default=MaskedView;' > node_modules/@react-native-masked-view/masked-view/index.js;                 fi && 
                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && 
                chmod +x gradlew && 
                # ---- inject fallback repositories via Gradle init script ----
                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo 'gradle.beforeProject {project ->' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.buildscript.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '}' >> $GRADLE_USER_HOME/init.d/repos.gradle && 
                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----
                sed -i 's/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\/.bin\/react-native config")/' settings.gradle 2>/dev/null || true && 
                # ---- disable Sentry source map upload (no credentials in CI) ----
                export SENTRY_DISABLE_AUTO_UPLOAD=true &&                 echo "sentryUploadEnabled=false" >> gradle.properties 2>/dev/null || true && 
                # ---- enable ABI splits ----
                if grep -q 'splits' app/build.gradle 2>/dev/null; then                     sed -i 's/enable false/enable true/' app/build.gradle || true;                 else                     sed -i '/^android[[:space:]]*{/a\    splits {\n        abi {\n            reset()\n            enable true\n            universalApk false\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\n        }\n    }' app/build.gradle || true;                 fi && 
                # ---- enable R8 ----
                sed -i 's/enableProguardInReleaseBuilds = false/enableProguardInReleaseBuilds = true/' app/build.gradle || true && 
                # ---- sign release with debug key ----
                sed -i '/buildTypes/,/}/s/release {/release {
            signingConfig signingConfigs.debug/' app/build.gradle || true && 
                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----
                ./gradlew :app:dependencies --configuration releaseCompileClasspath --no-daemon > /dev/null 2>&1 || true && 
                # ---- build release apk ----
                ./gradlew assembleRelease --no-daemon || exit 1 &&                     
                APK_PATH="app/build/outputs/apk/release"

                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then
                    echo "ERROR: APK not generated"
                    exit 1
                fi

                # ---- copy output ----
                cp app/build/outputs/apk/release/*.apk /output/r8/

                # ---- copy TPL metadata ----
                [ -f ../package.json ] && cp ../package.json /output/r8/ || true
                [ -f ../package-lock.json ] && cp ../package-lock.json /output/r8/ || true
                [ -f ../yarn.lock ] && cp ../yarn.lock /output/r8/ || true
                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/r8/ || true
                [ -f app/build.gradle ] && cp app/build.gradle /output/r8/android-build.gradle || true
                [ -f build.gradle ] && cp build.gradle /output/r8/root-build.gradle || true
                [ -f build.gradle.kts ] && cp build.gradle.kts /output/r8/root-build.gradle.kts || true
                [ -f settings.gradle ] && cp settings.gradle /output/r8/ || true
                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/r8/ || true
                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/r8/ || true
                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true
                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true
                mkdir -p /output/r8/libs
                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true
                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true
                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true
                    
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "expo > babel-preset-expo > @react-native/babel-preset > @react-native/babel-plugin-codegen > @react-native/codegen@0.76.7" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "react-native > @react-native/codegen > jscodeshift@0.14.0" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "react-native > @react-native/codegen@0.76.8" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
[4/4] Building fresh packages...
success Saved lockfile.
$ patch-package
patch-package 8.0.0
Applying patches...
html-entities@2.5.3 ✔
Done in 42.73s.
sed: -e expression #1, char 37: unterminated `s' command
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
> Task :gradle-plugin:settings-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:compileKotlin UP-TO-DATE
> Task :gradle-plugin:shared:compileJava NO-SOURCE
> Task :gradle-plugin:shared:processResources NO-SOURCE
> Task :gradle-plugin:shared:classes UP-TO-DATE
> Task :gradle-plugin:shared:jar UP-TO-DATE
> Task :gradle-plugin:settings-plugin:compileKotlin UP-TO-DATE
> Task :gradle-plugin:settings-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:settings-plugin:pluginDescriptors UP-TO-DATE
> Task :gradle-plugin:settings-plugin:processResources UP-TO-DATE
> Task :gradle-plugin:settings-plugin:classes UP-TO-DATE
> Task :gradle-plugin:settings-plugin:jar UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:react-native-gradle-plugin:compileKotlin UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:react-native-gradle-plugin:pluginDescriptors UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:processResources UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:classes UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:jar UP-TO-DATE

> Configure project :expo

Using expo modules
  - [32mexpo-asset[0m (11.0.5)
  - [32mexpo-constants[0m (17.0.8)
  - [32mexpo-file-system[0m (18.0.12)
  - [32mexpo-font[0m (13.0.4)
  - [32mexpo-keep-awake[0m (14.0.3)
  - [32mexpo-modules-core[0m (2.2.3)


> Configure project :react-native-reanimated
Android gradle plugin: 8.6.0
Gradle: 8.10.2
Checking the license for package Android SDK Build-Tools 35 in /opt/android/licenses
License for package Android SDK Build-Tools 35 accepted.
Preparing "Install Android SDK Build-Tools 35 v.35.0.0".
"Install Android SDK Build-Tools 35 v.35.0.0" ready.
Installing Android SDK Build-Tools 35 in /opt/android/build-tools/35.0.0
"Install Android SDK Build-Tools 35 v.35.0.0" complete.
"Install Android SDK Build-Tools 35 v.35.0.0" finished.
Checking the license for package Android SDK Platform 35 in /opt/android/licenses
License for package Android SDK Platform 35 accepted.
Preparing "Install Android SDK Platform 35 (revision 2)".
"Install Android SDK Platform 35 (revision 2)" ready.
Installing Android SDK Platform 35 in /opt/android/platforms/android-35
"Install Android SDK Platform 35 (revision 2)" complete.
"Install Android SDK Platform 35 (revision 2)" finished.

> Task :app:checkKotlinGradlePluginConfigurationErrors
> Task :app:generateAutolinkingNewArchitectureFiles
> Task :app:generateAutolinkingPackageList
> Task :app:generateCodegenSchemaFromJavaScript SKIPPED
> Task :app:generateCodegenArtifactsFromSchema SKIPPED
> Task :app:preBuild
> Task :app:preReleaseBuild
> Task :app:generateReleaseBuildConfig
> Task :expensify_react-native-live-markdown:generateCodegenSchemaFromJavaScript
> Task :expensify_react-native-live-markdown:generateCodegenArtifactsFromSchema
> Task :expensify_react-native-live-markdown:preBuild
> Task :expensify_react-native-live-markdown:preReleaseBuild
> Task :expensify_react-native-live-markdown:writeReleaseAarMetadata
> Task :expo:generateExpoModulesPackageListTask
> Task :expo:preBuild
> Task :expo:preReleaseBuild
> Task :expo-asset:preBuild UP-TO-DATE
> Task :expo-asset:preReleaseBuild UP-TO-DATE
> Task :expo:writeReleaseAarMetadata
> Task :expo-asset:writeReleaseAarMetadata

> Task :expo-constants:createExpoConfig
The NODE_ENV environment variable is required but was not specified. Ensure the project is bundled with Expo CLI or NODE_ENV is set.
Proceeding without mode-specific .env

> Task :expo-constants:preBuild
> Task :expo-constants:preReleaseBuild
> Task :expo-file-system:preBuild UP-TO-DATE
> Task :expo-constants:writeReleaseAarMetadata
> Task :expo-file-system:preReleaseBuild UP-TO-DATE
> Task :expo-font:preBuild UP-TO-DATE
> Task :expo-font:preReleaseBuild UP-TO-DATE
> Task :expo-file-system:writeReleaseAarMetadata
> Task :expo-keep-awake:preBuild UP-TO-DATE
> Task :expo-keep-awake:preReleaseBuild UP-TO-DATE
> Task :expo-font:writeReleaseAarMetadata
> Task :expo-modules-core:preBuild UP-TO-DATE
> Task :expo-modules-core:preReleaseBuild UP-TO-DATE
> Task :expo-keep-awake:writeReleaseAarMetadata
> Task :react-native-reanimated:assertMinimalReactNativeVersionTask SKIPPED
> Task :expo-modules-core:writeReleaseAarMetadata
> Task :react-native-reanimated:generateCodegenSchemaFromJavaScript
> Task :react-native-reanimated:generateCodegenArtifactsFromSchema
> Task :react-native-reanimated:prepareReanimatedHeadersForPrefabs
> Task :react-native-reanimated:prepareWorkletsHeadersForPrefabs
> Task :react-native-reanimated:preBuild
> Task :react-native-reanimated:preReleaseBuild
> Task :react-native-reanimated:writeReleaseAarMetadata
> Task :react-native-safe-area-context:generateCodegenSchemaFromJavaScript
> Task :react-native-safe-area-context:generateCodegenArtifactsFromSchema
> Task :react-native-safe-area-context:preBuild
> Task :react-native-safe-area-context:preReleaseBuild
> Task :react-native-safe-area-context:writeReleaseAarMetadata

> Task :app:createBundleReleaseJsAndAssets
Starting Metro Bundler
warning: Bundler cache is empty, rebuilding (this may take a minute)
Error: Unable to resolve module react-native from /app/node_modules/expo/src/Expo.fx.tsx: react-native could not be found within the project or in these directories:
  node_modules/expo/node_modules
  node_modules
  node_modules
[0m [90m 4 |[39m
 [90m 5 |[39m [36mimport[39m [33mConstants[39m [36mfrom[39m [32m'expo-constants'[39m[33m;[39m
[31m[1m>[22m[39m[90m 6 |[39m [36mimport[39m { [33mAppRegistry[39m[33m,[39m [33mNativeModules[39m[33m,[39m [33mLogBox[39m[33m,[39m [33mPlatform[39m } [36mfrom[39m [32m'react-native'[39m[33m;[39m
 [90m   |[39m                                                               [31m[1m^[22m[39m
 [90m 7 |[39m
 [90m 8 |[39m [36mimport[39m { isRunningInExpoGo } [36mfrom[39m [32m'./environment/ExpoGo'[39m[33m;[39m
 [90m 9 |[39m [36mimport[39m { [33mAppEntryNotFound[39m } [36mfrom[39m [32m'./errors/AppEntryNotFound'[39m[33m;[39m[0m
Error: Unable to resolve module react-native from /app/node_modules/expo/src/Expo.fx.tsx: react-native could not be found within the project or in these directories:
  node_modules/expo/node_modules
  node_modules
  node_modules
[0m [90m 4 |[39m
 [90m 5 |[39m [36mimport[39m [33mConstants[39m [36mfrom[39m [32m'expo-constants'[39m[33m;[39m
[31m[1m>[22m[39m[90m 6 |[39m [36mimport[39m { [33mAppRegistry[39m[33m,[39m [33mNativeModules[39m[33m,[39m [33mLogBox[39m[33m,[39m [33mPlatform[39m } [36mfrom[39m [32m'react-native'[39m[33m;[39m
 [90m   |[39m                                                               [31m[1m^[22m[39m
 [90m 7 |[39m
 [90m 8 |[39m [36mimport[39m { isRunningInExpoGo } [36mfrom[39m [32m'./environment/ExpoGo'[39m[33m;[39m
 [90m 9 |[39m [36mimport[39m { [33mAppEntryNotFound[39m } [36mfrom[39m [32m'./errors/AppEntryNotFound'[39m[33m;[39m[0m
    at ModuleResolver.resolveDependency (/app/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:150:15)
    at DependencyGraph.resolveDependency (/app/node_modules/metro/src/node-haste/DependencyGraph.js:248:43)
    at /app/node_modules/metro/src/lib/transformHelpers.js:165:21
    at resolveDependencies (/app/node_modules/metro/src/DeltaBundler/buildSubgraph.js:42:25)
    at visit (/app/node_modules/metro/src/DeltaBundler/buildSubgraph.js:83:30)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 5)
    at visit (/app/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)
    at async Promise.all (index 2)
    at visit (/app/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)

> Task :app:createBundleReleaseJsAndAssets FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:createBundleReleaseJsAndAssets'.
> Process 'command 'node'' finished with non-zero exit value 1

* 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 15m 51s
38 actionable tasks: 28 executed, 10 up-to-date

> echo Build failed with Node 18 and jdk version 17 with the following error: Command '['docker', 'run', '--rm', '-v', '/home/ubuntu/storage/extracted/OzymandiasTheGreat-react-native-live-rich-text/react-native-live-rich-text-a78c7f17024d0bf4b396f9dbb2d7d4b01a80876c/example:/source:ro', '-v', '/home/ubuntu/BachelorsThesis/scripts/RN/output/OzymandiasTheGreat-react-native-live-rich-text:/output', '-v', '/home/ubuntu/.npm:/root/.npm', 'react-android:18-jdk17', 'bash', '-c', '\n                set -e\n\n                cp -r /source/. /app &&                 cd /app && \n                # ---- install deps (yarn or npm) ----\n                if [ -f yarn.lock ]; then\n                    yarn install;\n                else\n                    npm install --ignore-scripts;\n                fi && \n                # ---- stub missing parent package.json (monorepo metro configs) ----\n                [ ! -f ../package.json ] && cp package.json ../package.json 2>/dev/null || true && \n                # ---- patch toReversed (Node <20 compat) ----\n                find node_modules -name "loadConfig.js" -path "*/metro-config/*" -exec sed -i \'s/\\.toReversed()/.slice().reverse()/g\' {} \\; 2>/dev/null || true && \n                # ---- patch missing expo/AppEntry ----\n                if grep -q \'"main".*expo/AppEntry\' package.json 2>/dev/null &&                    [ ! -f node_modules/expo/AppEntry.js ] && [ ! -f node_modules/expo/AppEntry.ts ]; then                     node -e "const fs=require(\'fs\'); const p=JSON.parse(fs.readFileSync(\'package.json\',\'utf8\')); if(fs.existsSync(\'index.js\')){p.main=\'index.js\'; fs.writeFileSync(\'package.json\',JSON.stringify(p,null,2));}" 2>/dev/null || true;                 fi && \n                # ---- patch broken metro config (ESM-only, null-returning, or monorepo-only) ----\n                # NOTE: do NOT replace configs that merely use expo/metro-config — those carry\n                # Expo-specific resolver paths (watchFolders, extraNodeModules) needed for\n                # packages like @react-native-masked-view/masked-view to resolve.\n                if grep -q \'react-native-monorepo-config\' metro.config.js 2>/dev/null ||                    ! node -e "const c=require(\'./metro.config.js\'); if(!c||typeof c!==\'object\') process.exit(1);" 2>/dev/null; then                     if [ -d node_modules/@react-native/metro-config ]; then                         printf \'const {getDefaultConfig, mergeConfig} = require("@react-native/metro-config");\nmodule.exports = mergeConfig(getDefaultConfig(__dirname), {});\n\' > metro.config.js;                     else                         printf \'const {getDefaultConfig} = require("metro-config");\nmodule.exports = getDefaultConfig(__dirname);\n\' > metro.config.js;                     fi;                 fi && \n                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----\n                if [ ! -f google-services.json ]; then                     python3 -c "import json; open(\'google-services.json\',\'w\').write(json.dumps({\'project_info\':{\'project_number\':\'000000000000\',\'project_id\':\'stub\',\'storage_bucket\':\'stub.appspot.com\'},\'client\':[{\'client_info\':{\'mobilesdk_app_id\':\'1:000000000000:android:0000000000000000\',\'android_client_info\':{\'package_name\':\'com.stub\'}},\'oauth_client\':[],\'api_key\':[{\'current_key\':\'stub\'}],\'services\':{\'appinvite_service\':{\'other_platform_oauth_client\':[]}}}],\'configuration_version\':\'1\'}))" 2>/dev/null || true;                 fi && \n                # ---- detect expo ----\n                if grep -q \'"expo"\' package.json && [ ! -d android ]; then\n                    echo "Expo project detected";\n                    CI=1 npx --yes expo prebuild --platform android\n                fi && \n                # ---- fix expo/metro-config: serializer + Flow transformIgnorePatterns ----\n                # Runs AFTER prebuild because prebuild generates metro.config.js for managed-workflow\n                # projects — patching before prebuild would be overwritten by the generated file.\n                # Fix 1: remove customSerializer that returns JS string instead of JSON\n                #   ("var __BUND..." → "Serializer did not return expected format").\n                # Fix 2: add transformIgnorePatterns so expo/src/Expo.ts goes through Babel\n                #   (default pattern excludes all node_modules → raw Flow types → SyntaxError).\n                if [ -f metro.config.js ] && [ -d node_modules/expo ] &&                    ( grep -q \'expo/metro-config\\|@expo/metro-config\' metro.config.js 2>/dev/null ||                      ! grep -q \'transformIgnorePatterns\' metro.config.js 2>/dev/null ); then                     cp metro.config.js metro.config.orig.js &&                     printf \'const c=require("./metro.config.orig.js");const r=Object.assign({},c);if(r.serializer){r.serializer=Object.assign({},r.serializer);delete r.serializer.customSerializer;}r.transformer=Object.assign({},r.transformer||{});if(!r.transformer.transformIgnorePatterns){r.transformer.transformIgnorePatterns=["node_modules/(?!(react-native|@react-native|expo|@expo|@unimodules|react-clone-referenced-element|@react-navigation|native-base)/)"];}module.exports=r;\\n\' > metro.config.js;                 fi && \n                # ---- stub missing metro watchFolders paths ----\n                mkdir -p /src 2>/dev/null || true && \n                # ---- fix babel configs that use react-native-builder-bob ----\n                # builder-bob is a library-dev tool; its getConfig() throws "Couldn\'t determine the source\n                # directory" when built outside the library\'s own workspace. Replace with a standard preset.\n                if grep -ql \'react-native-builder-bob\' babel.config.js babel.config.json .babelrc .babelrc.js 2>/dev/null; then                     if [ -d node_modules/babel-preset-expo ]; then                         printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                     elif [ -d node_modules/@react-native/babel-preset ]; then                         printf \'module.exports={presets:["module:@react-native/babel-preset"]};\' > babel.config.js;                     else                         printf \'module.exports={presets:["module:metro-react-native-babel-preset"]};\' > babel.config.js;                     fi;                 fi && \n                # ---- ensure TypeScript babel support (fixes \'interface\' SyntaxError in metro bundling) ----\n                if [ -d node_modules/babel-preset-expo ]; then                     grep -ql "expo\\|typescript" babel.config.js .babelrc .babelrc.js babel.config.json 2>/dev/null ||                     printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                 fi && \n                # ---- stub missing-asset-registry-path (Metro virtual module not resolved in release) ----\n                # Metro normally aliases this to @react-native/assets-registry/registry at bundle time.\n                # When that alias is missing, any PNG asset in node_modules triggers "Unable to resolve module".\n                if [ ! -d node_modules/missing-asset-registry-path ]; then                     mkdir -p node_modules/missing-asset-registry-path &&                     if [ -f node_modules/@react-native/assets-registry/registry.js ]; then                         printf \'module.exports=require("@react-native/assets-registry/registry");\' > node_modules/missing-asset-registry-path/index.js;                     else                         printf \'module.exports={registerAsset:function(){return 0;},getAssetByID:function(){return null;}};\' > node_modules/missing-asset-registry-path/index.js;                     fi;                 fi && \n                # ---- stub @react-native-masked-view/masked-view if missing ----\n                # Required by @react-navigation/elements but often not installed as a direct dependency.\n                if [ ! -d node_modules/@react-native-masked-view/masked-view ]; then                     mkdir -p node_modules/@react-native-masked-view/masked-view &&                     printf \'{"name":"@react-native-masked-view/masked-view","version":"0.1.11","main":"index.js"}\' > node_modules/@react-native-masked-view/masked-view/package.json &&                     printf \'const React=require("react");const {View}=require("react-native");function MaskedView(p){return React.createElement(View,p.style?{style:p.style}:{},p.children);}module.exports=MaskedView;module.exports.default=MaskedView;\' > node_modules/@react-native-masked-view/masked-view/index.js;                 fi && \n                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && \n                chmod +x gradlew && \n                # ---- inject fallback repositories via Gradle init script ----\n                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo \'gradle.beforeProject {project ->\' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.buildscript.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'}\' >> $GRADLE_USER_HOME/init.d/repos.gradle && \n                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----\n                sed -i \'s/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\\/.bin\\/react-native config")/\' settings.gradle 2>/dev/null || true && \n                # ---- disable Sentry source map upload (no credentials in CI) ----\n                export SENTRY_DISABLE_AUTO_UPLOAD=true &&                 echo "sentryUploadEnabled=false" >> gradle.properties 2>/dev/null || true && \n                # ---- enable ABI splits ----\n                if grep -q \'splits\' app/build.gradle 2>/dev/null; then                     sed -i \'s/enable false/enable true/\' app/build.gradle || true;                 else                     sed -i \'/^android[[:space:]]*{/a\\    splits {\\n        abi {\\n            reset()\\n            enable true\\n            universalApk false\\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\\n        }\\n    }\' app/build.gradle || true;                 fi && \n                # ---- enable R8 ----\n                sed -i \'s/enableProguardInReleaseBuilds = false/enableProguardInReleaseBuilds = true/\' app/build.gradle || true && \n                # ---- sign release with debug key ----\n                sed -i \'/buildTypes/,/}/s/release {/release {\n            signingConfig signingConfigs.debug/\' app/build.gradle || true && \n                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----\n                ./gradlew :app:dependencies --configuration releaseCompileClasspath --no-daemon > /dev/null 2>&1 || true && \n                # ---- build release apk ----\n                ./gradlew assembleRelease --no-daemon || exit 1 &&                     \n                APK_PATH="app/build/outputs/apk/release"\n\n                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then\n                    echo "ERROR: APK not generated"\n                    exit 1\n                fi\n\n                # ---- copy output ----\n                cp app/build/outputs/apk/release/*.apk /output/r8/\n\n                # ---- copy TPL metadata ----\n                [ -f ../package.json ] && cp ../package.json /output/r8/ || true\n                [ -f ../package-lock.json ] && cp ../package-lock.json /output/r8/ || true\n                [ -f ../yarn.lock ] && cp ../yarn.lock /output/r8/ || true\n                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/r8/ || true\n                [ -f app/build.gradle ] && cp app/build.gradle /output/r8/android-build.gradle || true\n                [ -f build.gradle ] && cp build.gradle /output/r8/root-build.gradle || true\n                [ -f build.gradle.kts ] && cp build.gradle.kts /output/r8/root-build.gradle.kts || true\n                [ -f settings.gradle ] && cp settings.gradle /output/r8/ || true\n                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/r8/ || true\n                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/r8/ || true\n                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                mkdir -p /output/r8/libs\n                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                    ']' returned non-zero exit status 1.
Build failed with Node 18 and jdk version 17 with the following error: Command '['docker', 'run', '--rm', '-v', '/home/ubuntu/storage/extracted/OzymandiasTheGreat-react-native-live-rich-text/react-native-live-rich-text-a78c7f17024d0bf4b396f9dbb2d7d4b01a80876c/example:/source:ro', '-v', '/home/ubuntu/BachelorsThesis/scripts/RN/output/OzymandiasTheGreat-react-native-live-rich-text:/output', '-v', '/home/ubuntu/.npm:/root/.npm', 'react-android:18-jdk17', 'bash', '-c', '\n                set -e\n\n                cp -r /source/. /app &&                 cd /app && \n                # ---- install deps (yarn or npm) ----\n                if [ -f yarn.lock ]; then\n                    yarn install;\n                else\n                    npm install --ignore-scripts;\n                fi && \n                # ---- stub missing parent package.json (monorepo metro configs) ----\n                [ ! -f ../package.json ] && cp package.json ../package.json 2>/dev/null || true && \n                # ---- patch toReversed (Node <20 compat) ----\n                find node_modules -name "loadConfig.js" -path "*/metro-config/*" -exec sed -i \'s/\\.toReversed()/.slice().reverse()/g\' {} \\; 2>/dev/null || true && \n                # ---- patch missing expo/AppEntry ----\n                if grep -q \'"main".*expo/AppEntry\' package.json 2>/dev/null &&                    [ ! -f node_modules/expo/AppEntry.js ] && [ ! -f node_modules/expo/AppEntry.ts ]; then                     node -e "const fs=require(\'fs\'); const p=JSON.parse(fs.readFileSync(\'package.json\',\'utf8\')); if(fs.existsSync(\'index.js\')){p.main=\'index.js\'; fs.writeFileSync(\'package.json\',JSON.stringify(p,null,2));}" 2>/dev/null || true;                 fi && \n                # ---- patch broken metro config (ESM-only, null-returning, or monorepo-only) ----\n                # NOTE: do NOT replace configs that merely use expo/metro-config — those carry\n                # Expo-specific resolver paths (watchFolders, extraNodeModules) needed for\n                # packages like @react-native-masked-view/masked-view to resolve.\n                if grep -q \'react-native-monorepo-config\' metro.config.js 2>/dev/null ||                    ! node -e "const c=require(\'./metro.config.js\'); if(!c||typeof c!==\'object\') process.exit(1);" 2>/dev/null; then                     if [ -d node_modules/@react-native/metro-config ]; then                         printf \'const {getDefaultConfig, mergeConfig} = require("@react-native/metro-config");\nmodule.exports = mergeConfig(getDefaultConfig(__dirname), {});\n\' > metro.config.js;                     else                         printf \'const {getDefaultConfig} = require("metro-config");\nmodule.exports = getDefaultConfig(__dirname);\n\' > metro.config.js;                     fi;                 fi && \n                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----\n                if [ ! -f google-services.json ]; then                     python3 -c "import json; open(\'google-services.json\',\'w\').write(json.dumps({\'project_info\':{\'project_number\':\'000000000000\',\'project_id\':\'stub\',\'storage_bucket\':\'stub.appspot.com\'},\'client\':[{\'client_info\':{\'mobilesdk_app_id\':\'1:000000000000:android:0000000000000000\',\'android_client_info\':{\'package_name\':\'com.stub\'}},\'oauth_client\':[],\'api_key\':[{\'current_key\':\'stub\'}],\'services\':{\'appinvite_service\':{\'other_platform_oauth_client\':[]}}}],\'configuration_version\':\'1\'}))" 2>/dev/null || true;                 fi && \n                # ---- detect expo ----\n                if grep -q \'"expo"\' package.json && [ ! -d android ]; then\n                    echo "Expo project detected";\n                    CI=1 npx --yes expo prebuild --platform android\n                fi && \n                # ---- fix expo/metro-config: serializer + Flow transformIgnorePatterns ----\n                # Runs AFTER prebuild because prebuild generates metro.config.js for managed-workflow\n                # projects — patching before prebuild would be overwritten by the generated file.\n                # Fix 1: remove customSerializer that returns JS string instead of JSON\n                #   ("var __BUND..." → "Serializer did not return expected format").\n                # Fix 2: add transformIgnorePatterns so expo/src/Expo.ts goes through Babel\n                #   (default pattern excludes all node_modules → raw Flow types → SyntaxError).\n                if [ -f metro.config.js ] && [ -d node_modules/expo ] &&                    ( grep -q \'expo/metro-config\\|@expo/metro-config\' metro.config.js 2>/dev/null ||                      ! grep -q \'transformIgnorePatterns\' metro.config.js 2>/dev/null ); then                     cp metro.config.js metro.config.orig.js &&                     printf \'const c=require("./metro.config.orig.js");const r=Object.assign({},c);if(r.serializer){r.serializer=Object.assign({},r.serializer);delete r.serializer.customSerializer;}r.transformer=Object.assign({},r.transformer||{});if(!r.transformer.transformIgnorePatterns){r.transformer.transformIgnorePatterns=["node_modules/(?!(react-native|@react-native|expo|@expo|@unimodules|react-clone-referenced-element|@react-navigation|native-base)/)"];}module.exports=r;\\n\' > metro.config.js;                 fi && \n                # ---- stub missing metro watchFolders paths ----\n                mkdir -p /src 2>/dev/null || true && \n                # ---- fix babel configs that use react-native-builder-bob ----\n                # builder-bob is a library-dev tool; its getConfig() throws "Couldn\'t determine the source\n                # directory" when built outside the library\'s own workspace. Replace with a standard preset.\n                if grep -ql \'react-native-builder-bob\' babel.config.js babel.config.json .babelrc .babelrc.js 2>/dev/null; then                     if [ -d node_modules/babel-preset-expo ]; then                         printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                     elif [ -d node_modules/@react-native/babel-preset ]; then                         printf \'module.exports={presets:["module:@react-native/babel-preset"]};\' > babel.config.js;                     else                         printf \'module.exports={presets:["module:metro-react-native-babel-preset"]};\' > babel.config.js;                     fi;                 fi && \n                # ---- ensure TypeScript babel support (fixes \'interface\' SyntaxError in metro bundling) ----\n                if [ -d node_modules/babel-preset-expo ]; then                     grep -ql "expo\\|typescript" babel.config.js .babelrc .babelrc.js babel.config.json 2>/dev/null ||                     printf \'module.exports=function(api){api.cache(true);return{presets:["babel-preset-expo"]};};\n\' > babel.config.js;                 fi && \n                # ---- stub missing-asset-registry-path (Metro virtual module not resolved in release) ----\n                # Metro normally aliases this to @react-native/assets-registry/registry at bundle time.\n                # When that alias is missing, any PNG asset in node_modules triggers "Unable to resolve module".\n                if [ ! -d node_modules/missing-asset-registry-path ]; then                     mkdir -p node_modules/missing-asset-registry-path &&                     if [ -f node_modules/@react-native/assets-registry/registry.js ]; then                         printf \'module.exports=require("@react-native/assets-registry/registry");\' > node_modules/missing-asset-registry-path/index.js;                     else                         printf \'module.exports={registerAsset:function(){return 0;},getAssetByID:function(){return null;}};\' > node_modules/missing-asset-registry-path/index.js;                     fi;                 fi && \n                # ---- stub @react-native-masked-view/masked-view if missing ----\n                # Required by @react-navigation/elements but often not installed as a direct dependency.\n                if [ ! -d node_modules/@react-native-masked-view/masked-view ]; then                     mkdir -p node_modules/@react-native-masked-view/masked-view &&                     printf \'{"name":"@react-native-masked-view/masked-view","version":"0.1.11","main":"index.js"}\' > node_modules/@react-native-masked-view/masked-view/package.json &&                     printf \'const React=require("react");const {View}=require("react-native");function MaskedView(p){return React.createElement(View,p.style?{style:p.style}:{},p.children);}module.exports=MaskedView;module.exports.default=MaskedView;\' > node_modules/@react-native-masked-view/masked-view/index.js;                 fi && \n                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && \n                chmod +x gradlew && \n                # ---- inject fallback repositories via Gradle init script ----\n                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo \'gradle.beforeProject {project ->\' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.buildscript.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'}\' >> $GRADLE_USER_HOME/init.d/repos.gradle && \n                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----\n                sed -i \'s/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\\/.bin\\/react-native config")/\' settings.gradle 2>/dev/null || true && \n                # ---- disable Sentry source map upload (no credentials in CI) ----\n                export SENTRY_DISABLE_AUTO_UPLOAD=true &&                 echo "sentryUploadEnabled=false" >> gradle.properties 2>/dev/null || true && \n                # ---- enable ABI splits ----\n                if grep -q \'splits\' app/build.gradle 2>/dev/null; then                     sed -i \'s/enable false/enable true/\' app/build.gradle || true;                 else                     sed -i \'/^android[[:space:]]*{/a\\    splits {\\n        abi {\\n            reset()\\n            enable true\\n            universalApk false\\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\\n        }\\n    }\' app/build.gradle || true;                 fi && \n                # ---- enable R8 ----\n                sed -i \'s/enableProguardInReleaseBuilds = false/enableProguardInReleaseBuilds = true/\' app/build.gradle || true && \n                # ---- sign release with debug key ----\n                sed -i \'/buildTypes/,/}/s/release {/release {\n            signingConfig signingConfigs.debug/\' app/build.gradle || true && \n                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----\n                ./gradlew :app:dependencies --configuration releaseCompileClasspath --no-daemon > /dev/null 2>&1 || true && \n                # ---- build release apk ----\n                ./gradlew assembleRelease --no-daemon || exit 1 &&                     \n                APK_PATH="app/build/outputs/apk/release"\n\n                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then\n                    echo "ERROR: APK not generated"\n                    exit 1\n                fi\n\n                # ---- copy output ----\n                cp app/build/outputs/apk/release/*.apk /output/r8/\n\n                # ---- copy TPL metadata ----\n                [ -f ../package.json ] && cp ../package.json /output/r8/ || true\n                [ -f ../package-lock.json ] && cp ../package-lock.json /output/r8/ || true\n                [ -f ../yarn.lock ] && cp ../yarn.lock /output/r8/ || true\n                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/r8/ || true\n                [ -f app/build.gradle ] && cp app/build.gradle /output/r8/android-build.gradle || true\n                [ -f build.gradle ] && cp build.gradle /output/r8/root-build.gradle || true\n                [ -f build.gradle.kts ] && cp build.gradle.kts /output/r8/root-build.gradle.kts || true\n                [ -f settings.gradle ] && cp settings.gradle /output/r8/ || true\n                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/r8/ || true\n                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/r8/ || true\n                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/ 2>/dev/null; done || true\n                mkdir -p /output/r8/libs\n                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/r8/libs/ 2>/dev/null; done || true\n                    ']' returned non-zero exit status 1.

> echo Attempting build for OzymandiasTheGreat-react-native-live-rich-text with Node 20 and jdk 17
Attempting build for OzymandiasTheGreat-react-native-live-rich-text with Node 20 and jdk 17

> docker run --rm -v /home/ubuntu/storage/extracted/OzymandiasTheGreat-react-native-live-rich-text/react-native-live-rich-text-a78c7f17024d0bf4b396f9dbb2d7d4b01a80876c/example:/source:ro -v /home/ubuntu/BachelorsThesis/scripts/RN/output/OzymandiasTheGreat-react-native-live-rich-text:/output -v /home/ubuntu/.npm:/root/.npm react-android:20-jdk17 bash -c 
                set -e

                cp -r /source/. /app &&                 cd /app && 
                # ---- install deps (yarn or npm) ----
                if [ -f yarn.lock ]; then
                    yarn install;
                else
                    npm install --ignore-scripts;
                fi && 
                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----
                if [ ! -f google-services.json ]; then                     python3 -c "import json; open('google-services.json','w').write(json.dumps({'project_info':{'project_number':'000000000000','project_id':'stub','storage_bucket':'stub.appspot.com'},'client':[{'client_info':{'mobilesdk_app_id':'1:000000000000:android:0000000000000000','android_client_info':{'package_name':'com.stub'}},'oauth_client':[],'api_key':[{'current_key':'stub'}],'services':{'appinvite_service':{'other_platform_oauth_client':[]}}}],'configuration_version':'1'}))" 2>/dev/null || true;                 fi && 
                # ---- detect expo ----
                if grep -q '"expo"' package.json && [ ! -d android ]; then
                    echo "Expo project detected";
                    CI=1 npx --yes expo prebuild --platform android
                fi && 
                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && 
                chmod +x gradlew && 
                # ---- inject fallback repositories via Gradle init script ----
                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo 'gradle.beforeProject {project ->' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.buildscript.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '}' >> $GRADLE_USER_HOME/init.d/repos.gradle && 
                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----
                sed -i 's/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\/.bin\/react-native config")/' settings.gradle 2>/dev/null || true && 
                # ---- clean gradle ----
                (./gradlew clean || true) && 
                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----
                ./gradlew :app:dependencies --configuration debugCompileClasspath --no-daemon > /dev/null 2>&1 || true && 
                # ---- enable ABI splits ----
                if grep -q 'splits' app/build.gradle 2>/dev/null; then                     sed -i 's/enable false/enable true/' app/build.gradle || true;                 else                     sed -i '/^android[[:space:]]*{/a\    splits {\n        abi {\n            reset()\n            enable true\n            universalApk false\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\n        }\n    }' app/build.gradle || true;                 fi && 
                # ---- build debug apk ----
                ./gradlew assembleDebug --no-daemon || exit 1 && 
                APK_PATH="app/build/outputs/apk/debug"

                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then
                    echo "ERROR: APK not generated"
                    exit 1
                fi
                # ---- copy output ----
                cp app/build/outputs/apk/debug/*.apk /output/

                # ---- copy TPL metadata ----
                [ -f ../package.json ] && cp ../package.json /output/ || true
                [ -f ../package-lock.json ] && cp ../package-lock.json /output/ || true
                [ -f ../yarn.lock ] && cp ../yarn.lock /output/ || true
                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/ || true
                [ -f app/build.gradle ] && cp app/build.gradle /output/android-build.gradle || true
                [ -f build.gradle ] && cp build.gradle /output/root-build.gradle || true
                [ -f build.gradle.kts ] && cp build.gradle.kts /output/root-build.gradle.kts || true
                [ -f settings.gradle ] && cp settings.gradle /output/ || true
                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/ || true
                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/ || true
                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true
                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true
                mkdir -p /output/libs
                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                    
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "expo > babel-preset-expo > @react-native/babel-preset > @react-native/babel-plugin-codegen > @react-native/codegen@0.76.7" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "react-native > @react-native/codegen > jscodeshift@0.14.0" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "react-native > @react-native/codegen@0.76.8" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
[4/4] Building fresh packages...
success Saved lockfile.
$ patch-package
patch-package 8.0.0
Applying patches...
html-entities@2.5.3 ✔
Done in 43.56s.
Downloading https://services.gradle.org/distributions/gradle-8.10.2-all.zip
.....................10%......................20%......................30%.....................40%......................50%......................60%......................70%.....................80%......................90%......................100%

Welcome to Gradle 8.10.2!

Here are the highlights of this release:
 - Support for Java 23
 - Faster configuration cache
 - Better configuration cache reports

For more details see https://docs.gradle.org/8.10.2/release-notes.html

To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
> Task :gradle-plugin:settings-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:processResources NO-SOURCE
> Task :gradle-plugin:settings-plugin:pluginDescriptors
> Task :gradle-plugin:settings-plugin:processResources
> Task :gradle-plugin:shared:compileKotlin
> Task :gradle-plugin:shared:compileJava NO-SOURCE
> Task :gradle-plugin:shared:classes UP-TO-DATE
> Task :gradle-plugin:shared:jar
> Task :gradle-plugin:settings-plugin:compileKotlin
> Task :gradle-plugin:settings-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:settings-plugin:classes
> Task :gradle-plugin:settings-plugin:jar
> Task :gradle-plugin:react-native-gradle-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:react-native-gradle-plugin:pluginDescriptors
> Task :gradle-plugin:react-native-gradle-plugin:processResources
> Task :gradle-plugin:react-native-gradle-plugin:compileKotlin
> Task :gradle-plugin:react-native-gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:react-native-gradle-plugin:classes
> Task :gradle-plugin:react-native-gradle-plugin:jar

> Configure project :app
Checking the license for package NDK (Side by side) 26.1.10909125 in /opt/android/licenses
License for package NDK (Side by side) 26.1.10909125 accepted.
Preparing "Install NDK (Side by side) 26.1.10909125 v.26.1.10909125".
"Install NDK (Side by side) 26.1.10909125 v.26.1.10909125" ready.
Installing NDK (Side by side) 26.1.10909125 in /opt/android/ndk/26.1.10909125
"Install NDK (Side by side) 26.1.10909125 v.26.1.10909125" complete.
"Install NDK (Side by side) 26.1.10909125 v.26.1.10909125" finished.

> Configure project :expo

Using expo modules
  - [32mexpo-asset[0m (11.0.5)
  - [32mexpo-constants[0m (17.0.8)
  - [32mexpo-file-system[0m (18.0.12)
  - [32mexpo-font[0m (13.0.4)
  - [32mexpo-keep-awake[0m (14.0.3)
  - [32mexpo-modules-core[0m (2.2.3)


> Configure project :react-native-reanimated
Android gradle plugin: 8.6.0
Gradle: 8.10.2

> Task :app:externalNativeBuildCleanDebug
> Task :app:externalNativeBuildCleanRelease
> Task :app:clean UP-TO-DATE
> Task :expensify_react-native-live-markdown:externalNativeBuildCleanDebug
> Task :expensify_react-native-live-markdown:externalNativeBuildCleanRelease
> Task :expensify_react-native-live-markdown:clean UP-TO-DATE
> Task :expo:clean UP-TO-DATE
> Task :expo-asset:clean UP-TO-DATE
> Task :expo-constants:clean UP-TO-DATE
> Task :expo-file-system:clean UP-TO-DATE
> Task :expo-font:clean UP-TO-DATE
> Task :expo-keep-awake:clean UP-TO-DATE
> Task :expo-modules-core:externalNativeBuildCleanDebug
> Task :expo-modules-core:externalNativeBuildCleanRelease
> Task :expo-modules-core:clean UP-TO-DATE
> Task :react-native-reanimated:cleanCmakeCache
> Task :react-native-reanimated:externalNativeBuildCleanDebug
> Task :react-native-reanimated:externalNativeBuildCleanRelease
> Task :react-native-reanimated:clean
> Task :react-native-safe-area-context:clean UP-TO-DATE

BUILD SUCCESSFUL in 6m 44s
33 actionable tasks: 23 executed, 10 up-to-date
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
> Task :gradle-plugin:settings-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:compileKotlin UP-TO-DATE
> Task :gradle-plugin:shared:compileJava NO-SOURCE
> Task :gradle-plugin:shared:processResources NO-SOURCE
> Task :gradle-plugin:shared:classes UP-TO-DATE
> Task :gradle-plugin:shared:jar UP-TO-DATE
> Task :gradle-plugin:settings-plugin:compileKotlin UP-TO-DATE
> Task :gradle-plugin:settings-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:settings-plugin:pluginDescriptors UP-TO-DATE
> Task :gradle-plugin:settings-plugin:processResources UP-TO-DATE
> Task :gradle-plugin:settings-plugin:classes UP-TO-DATE
> Task :gradle-plugin:settings-plugin:jar UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:react-native-gradle-plugin:compileKotlin UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:react-native-gradle-plugin:pluginDescriptors UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:processResources UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:classes UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:jar UP-TO-DATE

> Configure project :expo

Using expo modules
  - [32mexpo-asset[0m (11.0.5)
  - [32mexpo-constants[0m (17.0.8)
  - [32mexpo-file-system[0m (18.0.12)
  - [32mexpo-font[0m (13.0.4)
  - [32mexpo-keep-awake[0m (14.0.3)
  - [32mexpo-modules-core[0m (2.2.3)


> Configure project :react-native-reanimated
Android gradle plugin: 8.6.0
Gradle: 8.10.2
Checking the license for package Android SDK Build-Tools 35 in /opt/android/licenses
License for package Android SDK Build-Tools 35 accepted.
Preparing "Install Android SDK Build-Tools 35 v.35.0.0".
"Install Android SDK Build-Tools 35 v.35.0.0" ready.
Installing Android SDK Build-Tools 35 in /opt/android/build-tools/35.0.0
"Install Android SDK Build-Tools 35 v.35.0.0" complete.
"Install Android SDK Build-Tools 35 v.35.0.0" finished.
Checking the license for package Android SDK Platform 35 in /opt/android/licenses
License for package Android SDK Platform 35 accepted.
Preparing "Install Android SDK Platform 35 (revision 2)".
"Install Android SDK Platform 35 (revision 2)" ready.
Installing Android SDK Platform 35 in /opt/android/platforms/android-35
"Install Android SDK Platform 35 (revision 2)" complete.
"Install Android SDK Platform 35 (revision 2)" finished.

> Task :app:generateAutolinkingNewArchitectureFiles
> Task :app:generateAutolinkingPackageList
> Task :app:generateCodegenSchemaFromJavaScript SKIPPED
> Task :app:generateCodegenArtifactsFromSchema SKIPPED
> Task :app:preBuild
> Task :app:preDebugBuild
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:checkKotlinGradlePluginConfigurationErrors
> Task :app:generateDebugBuildConfig
> Task :expensify_react-native-live-markdown:generateCodegenSchemaFromJavaScript
> Task :expensify_react-native-live-markdown:generateCodegenArtifactsFromSchema
> Task :expensify_react-native-live-markdown:preBuild
> Task :expensify_react-native-live-markdown:preDebugBuild
> Task :expensify_react-native-live-markdown:writeDebugAarMetadata
> Task :expo:generateExpoModulesPackageListTask
> Task :expo:preBuild
> Task :expo:preDebugBuild
> Task :expo:writeDebugAarMetadata
> Task :expo-asset:preBuild UP-TO-DATE
> Task :expo-asset:preDebugBuild UP-TO-DATE
> Task :expo-asset:writeDebugAarMetadata
The NODE_ENV environment variable is required but was not specified. Ensure the project is bundled with Expo CLI or NODE_ENV is set.
Proceeding without mode-specific .env

> Task :expo-constants:createExpoConfig

> Task :expo-constants:preBuild
> Task :expo-constants:preDebugBuild
> Task :expo-file-system:preBuild UP-TO-DATE
> Task :expo-file-system:preDebugBuild UP-TO-DATE
> Task :expo-constants:writeDebugAarMetadata
> Task :expo-file-system:writeDebugAarMetadata
> Task :expo-font:preBuild UP-TO-DATE
> Task :expo-font:preDebugBuild UP-TO-DATE
> Task :expo-font:writeDebugAarMetadata
> Task :expo-keep-awake:preBuild UP-TO-DATE
> Task :expo-keep-awake:preDebugBuild UP-TO-DATE
> Task :expo-modules-core:preBuild UP-TO-DATE
> Task :expo-keep-awake:writeDebugAarMetadata
> Task :expo-modules-core:preDebugBuild UP-TO-DATE
> Task :react-native-reanimated:assertMinimalReactNativeVersionTask SKIPPED
> Task :expo-modules-core:writeDebugAarMetadata
> Task :react-native-reanimated:generateCodegenSchemaFromJavaScript
> Task :react-native-reanimated:generateCodegenArtifactsFromSchema
> Task :react-native-reanimated:prepareReanimatedHeadersForPrefabs
> Task :react-native-reanimated:prepareWorkletsHeadersForPrefabs
> Task :react-native-reanimated:preBuild
> Task :react-native-reanimated:preDebugBuild
> Task :react-native-reanimated:writeDebugAarMetadata
> Task :react-native-safe-area-context:generateCodegenSchemaFromJavaScript
> Task :react-native-safe-area-context:generateCodegenArtifactsFromSchema
> Task :react-native-safe-area-context:preBuild
> Task :react-native-safe-area-context:preDebugBuild
> Task :react-native-safe-area-context:writeDebugAarMetadata
> Task :app:generateDebugResValues
> Task :expensify_react-native-live-markdown:generateDebugResValues
> Task :app:checkDebugAarMetadata
> Task :expensify_react-native-live-markdown:generateDebugResources
> Task :expensify_react-native-live-markdown:packageDebugResources
> Task :expo:generateDebugResValues
> Task :expo:generateDebugResources
> Task :expo:packageDebugResources
> Task :expo-asset:generateDebugResValues
> Task :expo-asset:generateDebugResources
> Task :expo-asset:packageDebugResources
> Task :expo-constants:generateDebugResValues
> Task :expo-constants:generateDebugResources
> Task :expo-constants:packageDebugResources
> Task :expo-file-system:generateDebugResValues
> Task :expo-file-system:generateDebugResources
> Task :expo-file-system:packageDebugResources
> Task :expo-font:generateDebugResValues
> Task :expo-font:generateDebugResources
> Task :expo-font:packageDebugResources
> Task :expo-keep-awake:generateDebugResValues
> Task :expo-keep-awake:generateDebugResources
> Task :expo-keep-awake:packageDebugResources
> Task :expo-modules-core:generateDebugResValues
> Task :expo-modules-core:generateDebugResources
> Task :expo-modules-core:packageDebugResources
> Task :react-native-reanimated:generateDebugResValues
> Task :react-native-reanimated:generateDebugResources
> Task :react-native-reanimated:packageDebugResources
> Task :react-native-safe-area-context:generateDebugResValues
> Task :react-native-safe-area-context:generateDebugResources
> Task :react-native-safe-area-context:packageDebugResources
> Task :app:mapDebugSourceSetPaths
> Task :app:generateDebugResources
> Task :app:packageDebugResources
> Task :app:mergeDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :expensify_react-native-live-markdown:extractDeepLinksDebug
> Task :expo:extractDeepLinksDebug
> Task :app:parseDebugLocalResources
> Task :expo-asset:extractDeepLinksDebug
> Task :expo-constants:extractDeepLinksDebug
> Task :expo-file-system:extractDeepLinksDebug
> Task :expo-font:extractDeepLinksDebug
> Task :expo-keep-awake:extractDeepLinksDebug
> Task :expo-modules-core:extractDeepLinksDebug

> Task :expo-file-system:processDebugManifest
/app/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-modules-core:processDebugManifest
/app/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-font:processDebugManifest
> Task :expo-keep-awake:processDebugManifest
> Task :expensify_react-native-live-markdown:processDebugManifest
> Task :expo-asset:processDebugManifest
> Task :react-native-reanimated:extractDeepLinksDebug
> Task :expo-constants:processDebugManifest
> Task :expo:processDebugManifest
> Task :react-native-safe-area-context:extractDeepLinksDebug
> Task :react-native-reanimated:processDebugManifest

> Task :react-native-safe-area-context:processDebugManifest
package="com.th3rdwave.safeareacontext" found in source AndroidManifest.xml: /app/node_modules/react-native-safe-area-context/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.th3rdwave.safeareacontext" from the source AndroidManifest.xml: /app/node_modules/react-native-safe-area-context/android/src/main/AndroidManifest.xml.

> Task :expensify_react-native-live-markdown:compileDebugLibraryResources

> Task :app:processDebugMainManifest
/app/android/app/src/debug/AndroidManifest.xml:6:5-162 Warning:
	application@android:usesCleartextTraffic was tagged at AndroidManifest.xml:6 to replace other declarations but no other declaration present
/app/android/app/src/debug/AndroidManifest.xml Warning:
	provider#expo.modules.filesystem.FileSystemFileProvider@android:authorities was tagged at AndroidManifest.xml:0 to replace other declarations but no other declaration present

> Task :app:processDebugManifest
> Task :app:processDebugManifestForPackage
> Task :expensify_react-native-live-markdown:parseDebugLocalResources
> Task :expo:compileDebugLibraryResources
> Task :expo-asset:compileDebugLibraryResources
> Task :expo:parseDebugLocalResources
> Task :expo-constants:compileDebugLibraryResources
> Task :expo-asset:parseDebugLocalResources
> Task :expo-asset:generateDebugRFile
> Task :expensify_react-native-live-markdown:generateDebugRFile
> Task :expo-constants:parseDebugLocalResources
> Task :expo:generateDebugRFile
> Task :expo-file-system:compileDebugLibraryResources
> Task :expo-constants:generateDebugRFile
> Task :expo-font:compileDebugLibraryResources
> Task :expo-font:parseDebugLocalResources
> Task :expo-file-system:parseDebugLocalResources
> Task :expo-keep-awake:compileDebugLibraryResources
> Task :expo-font:generateDebugRFile
> Task :expo-file-system:generateDebugRFile
> Task :expo-keep-awake:parseDebugLocalResources
> Task :expo-modules-core:compileDebugLibraryResources
> Task :expo-keep-awake:generateDebugRFile
> Task :expo-modules-core:parseDebugLocalResources
> Task :react-native-reanimated:compileDebugLibraryResources
> Task :expo-modules-core:generateDebugRFile
> Task :react-native-safe-area-context:compileDebugLibraryResources
> Task :react-native-reanimated:parseDebugLocalResources
> Task :react-native-safe-area-context:parseDebugLocalResources
> Task :react-native-reanimated:generateDebugRFile
> Task :expensify_react-native-live-markdown:generateDebugBuildConfig
> Task :react-native-safe-area-context:generateDebugRFile
> Task :expensify_react-native-live-markdown:javaPreCompileDebug
> Task :react-native-reanimated:generateDebugBuildConfig
> Task :react-native-reanimated:packageNdkLibs NO-SOURCE
> Task :expo:checkKotlinGradlePluginConfigurationErrors
> Task :react-native-reanimated:javaPreCompileDebug
> Task :expo:generateDebugBuildConfig
> Task :app:processDebugResources

> Task :react-native-reanimated:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :expo-asset:checkKotlinGradlePluginConfigurationErrors
> Task :expo-asset:generateDebugBuildConfig
> Task :expo-modules-core:checkKotlinGradlePluginConfigurationErrors
> Task :expo-modules-core:generateDebugBuildConfig
> Task :react-native-reanimated:bundleLibCompileToJarDebug
> Task :expensify_react-native-live-markdown:compileDebugJavaWithJavac
> Task :expensify_react-native-live-markdown:bundleLibCompileToJarDebug
> Task :expo-modules-core:javaPreCompileDebug
> Task :expo-asset:javaPreCompileDebug
> Task :expo-constants:checkKotlinGradlePluginConfigurationErrors
> Task :expo-constants:generateDebugBuildConfig
> Task :expo-file-system:checkKotlinGradlePluginConfigurationErrors
> Task :expo-constants:javaPreCompileDebug
> Task :expo-file-system:generateDebugBuildConfig
> Task :expo-font:checkKotlinGradlePluginConfigurationErrors
> Task :expo-file-system:javaPreCompileDebug
> Task :expo-font:generateDebugBuildConfig
> Task :expo-font:javaPreCompileDebug
> Task :expo-keep-awake:checkKotlinGradlePluginConfigurationErrors
> Task :expo-keep-awake:generateDebugBuildConfig
> Task :expo-keep-awake:javaPreCompileDebug
> Task :expo:javaPreCompileDebug
> Task :react-native-safe-area-context:checkKotlinGradlePluginConfigurationErrors
> Task :react-native-safe-area-context:generateDebugBuildConfig
> Task :react-native-safe-area-context:javaPreCompileDebug
> Task :app:javaPreCompileDebug
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :expensify_react-native-live-markdown:mergeDebugShaders
> Task :expensify_react-native-live-markdown:compileDebugShaders NO-SOURCE
> Task :expensify_react-native-live-markdown:generateDebugAssets UP-TO-DATE
> Task :expensify_react-native-live-markdown:packageDebugAssets
> Task :expo:mergeDebugShaders
> Task :expo:compileDebugShaders NO-SOURCE
> Task :expo:generateDebugAssets UP-TO-DATE
> Task :expo:packageDebugAssets
> Task :expo-asset:mergeDebugShaders
> Task :expo-asset:compileDebugShaders NO-SOURCE
> Task :expo-asset:generateDebugAssets UP-TO-DATE
> Task :expo-asset:packageDebugAssets
> Task :expo-constants:mergeDebugShaders
> Task :expo-constants:compileDebugShaders NO-SOURCE
> Task :expo-constants:generateDebugAssets UP-TO-DATE
> Task :expo-constants:packageDebugAssets
> Task :expo-file-system:mergeDebugShaders
> Task :expo-file-system:compileDebugShaders NO-SOURCE
> Task :expo-file-system:generateDebugAssets UP-TO-DATE
> Task :expo-file-system:packageDebugAssets
> Task :expo-font:mergeDebugShaders
> Task :expo-font:compileDebugShaders NO-SOURCE
> Task :expo-font:generateDebugAssets UP-TO-DATE
> Task :expo-font:packageDebugAssets
> Task :expo-keep-awake:mergeDebugShaders
> Task :expo-keep-awake:compileDebugShaders NO-SOURCE
> Task :expo-keep-awake:generateDebugAssets UP-TO-DATE
> Task :expo-keep-awake:packageDebugAssets
> Task :expo-modules-core:mergeDebugShaders
> Task :expo-modules-core:compileDebugShaders NO-SOURCE
> Task :expo-modules-core:generateDebugAssets UP-TO-DATE
> Task :expo-modules-core:packageDebugAssets
> Task :react-native-reanimated:mergeDebugShaders
> Task :react-native-reanimated:compileDebugShaders NO-SOURCE
> Task :react-native-reanimated:generateDebugAssets UP-TO-DATE
> Task :react-native-reanimated:packageDebugAssets
> Task :react-native-safe-area-context:mergeDebugShaders
> Task :react-native-safe-area-context:compileDebugShaders NO-SOURCE
> Task :react-native-safe-area-context:generateDebugAssets UP-TO-DATE
> Task :react-native-safe-area-context:packageDebugAssets
> Task :app:mergeDebugAssets
> Task :app:compressDebugAssets
> Task :expensify_react-native-live-markdown:bundleLibRuntimeToJarDebug
> Task :app:desugarDebugFileDependencies
> Task :react-native-reanimated:bundleLibRuntimeToJarDebug
> Task :expensify_react-native-live-markdown:processDebugJavaRes NO-SOURCE
> Task :react-native-reanimated:processDebugJavaRes NO-SOURCE
> Task :app:checkDebugDuplicateClasses
> Task :expensify_react-native-live-markdown:bundleLibRuntimeToDirDebug
> Task :react-native-reanimated:bundleLibRuntimeToDirDebug

> Task :react-native-reanimated:configureCMakeDebug[arm64-v8a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :expo-modules-core:compileDebugKotlin
> Task :react-native-safe-area-context:compileDebugKotlin
> Task :app:mergeExtDexDebug

> Task :react-native-safe-area-context:compileDebugKotlin
w: file:///app/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaView.kt:59:23 'getter for uiImplementation: UIImplementation!' is deprecated. Deprecated in Java

> Task :react-native-safe-area-context:compileDebugJavaWithJavac
> Task :react-native-safe-area-context:bundleLibCompileToJarDebug
> Task :react-native-safe-area-context:processDebugJavaRes
> Task :react-native-safe-area-context:bundleLibRuntimeToJarDebug
> Task :react-native-safe-area-context:bundleLibRuntimeToDirDebug

> Task :react-native-reanimated:configureCMakeDebug[armeabi-v7a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-reanimated:configureCMakeDebug[x86]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-reanimated:configureCMakeDebug[x86_64]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-reanimated:generateJsonModelDebug
> Task :react-native-reanimated:prefabDebugConfigurePackage
> Task :app:configureCMakeDebug[arm64-v8a]
> Task :react-native-reanimated:buildCMakeDebug[arm64-v8a][reanimated,worklets]
> Task :expo-modules-core:compileDebugJavaWithJavac
> Task :expo-modules-core:processDebugJavaRes
> Task :expo-modules-core:bundleLibCompileToJarDebug
> Task :expo-modules-core:bundleLibRuntimeToJarDebug
> Task :expo-modules-core:bundleLibRuntimeToDirDebug
> Task :react-native-reanimated:buildCMakeDebug[armeabi-v7a][reanimated,worklets]

The message received from the daemon indicates that the daemon has disappeared.
Build request sent: Build{id=bbabe897-961d-4adf-93c7-e172cbab370c, currentDir=/app/android}
Attempting to read last messages from the daemon log...
Daemon pid: 1374
  log file: /opt/gradle/daemon/8.10.2/daemon-1374.out.log
----- Last 20 lines from daemon log file - daemon-1374.out.log -----
	application@android:usesCleartextTraffic was tagged at AndroidManifest.xml:6 to replace other declarations but no other declaration present
/app/android/app/src/debug/AndroidManifest.xml Warning:
	provider#expo.modules.filesystem.FileSystemFileProvider@android:authorities was tagged at AndroidManifest.xml:0 to replace other declarations but no other declaration present
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
w: file:///app/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaView.kt:59:23 'getter for uiImplementation: UIImplementation!' is deprecated. Deprecated in Java
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES----- End of the daemon log -----


FAILURE: Build failed with an exception.

* What went wrong:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

* 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.

> echo Build failed with Node 20 and jdk version 17 with the following error: Command '['docker', 'run', '--rm', '-v', '/home/ubuntu/storage/extracted/OzymandiasTheGreat-react-native-live-rich-text/react-native-live-rich-text-a78c7f17024d0bf4b396f9dbb2d7d4b01a80876c/example:/source:ro', '-v', '/home/ubuntu/BachelorsThesis/scripts/RN/output/OzymandiasTheGreat-react-native-live-rich-text:/output', '-v', '/home/ubuntu/.npm:/root/.npm', 'react-android:20-jdk17', 'bash', '-c', '\n                set -e\n\n                cp -r /source/. /app &&                 cd /app && \n                # ---- install deps (yarn or npm) ----\n                if [ -f yarn.lock ]; then\n                    yarn install;\n                else\n                    npm install --ignore-scripts;\n                fi && \n                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----\n                if [ ! -f google-services.json ]; then                     python3 -c "import json; open(\'google-services.json\',\'w\').write(json.dumps({\'project_info\':{\'project_number\':\'000000000000\',\'project_id\':\'stub\',\'storage_bucket\':\'stub.appspot.com\'},\'client\':[{\'client_info\':{\'mobilesdk_app_id\':\'1:000000000000:android:0000000000000000\',\'android_client_info\':{\'package_name\':\'com.stub\'}},\'oauth_client\':[],\'api_key\':[{\'current_key\':\'stub\'}],\'services\':{\'appinvite_service\':{\'other_platform_oauth_client\':[]}}}],\'configuration_version\':\'1\'}))" 2>/dev/null || true;                 fi && \n                # ---- detect expo ----\n                if grep -q \'"expo"\' package.json && [ ! -d android ]; then\n                    echo "Expo project detected";\n                    CI=1 npx --yes expo prebuild --platform android\n                fi && \n                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && \n                chmod +x gradlew && \n                # ---- inject fallback repositories via Gradle init script ----\n                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo \'gradle.beforeProject {project ->\' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.buildscript.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'}\' >> $GRADLE_USER_HOME/init.d/repos.gradle && \n                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----\n                sed -i \'s/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\\/.bin\\/react-native config")/\' settings.gradle 2>/dev/null || true && \n                # ---- clean gradle ----\n                (./gradlew clean || true) && \n                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----\n                ./gradlew :app:dependencies --configuration debugCompileClasspath --no-daemon > /dev/null 2>&1 || true && \n                # ---- enable ABI splits ----\n                if grep -q \'splits\' app/build.gradle 2>/dev/null; then                     sed -i \'s/enable false/enable true/\' app/build.gradle || true;                 else                     sed -i \'/^android[[:space:]]*{/a\\    splits {\\n        abi {\\n            reset()\\n            enable true\\n            universalApk false\\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\\n        }\\n    }\' app/build.gradle || true;                 fi && \n                # ---- build debug apk ----\n                ./gradlew assembleDebug --no-daemon || exit 1 && \n                APK_PATH="app/build/outputs/apk/debug"\n\n                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then\n                    echo "ERROR: APK not generated"\n                    exit 1\n                fi\n                # ---- copy output ----\n                cp app/build/outputs/apk/debug/*.apk /output/\n\n                # ---- copy TPL metadata ----\n                [ -f ../package.json ] && cp ../package.json /output/ || true\n                [ -f ../package-lock.json ] && cp ../package-lock.json /output/ || true\n                [ -f ../yarn.lock ] && cp ../yarn.lock /output/ || true\n                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/ || true\n                [ -f app/build.gradle ] && cp app/build.gradle /output/android-build.gradle || true\n                [ -f build.gradle ] && cp build.gradle /output/root-build.gradle || true\n                [ -f build.gradle.kts ] && cp build.gradle.kts /output/root-build.gradle.kts || true\n                [ -f settings.gradle ] && cp settings.gradle /output/ || true\n                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/ || true\n                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/ || true\n                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true\n                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true\n                mkdir -p /output/libs\n                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true\n                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true\n                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true\n                    ']' returned non-zero exit status 1.
Build failed with Node 20 and jdk version 17 with the following error: Command '['docker', 'run', '--rm', '-v', '/home/ubuntu/storage/extracted/OzymandiasTheGreat-react-native-live-rich-text/react-native-live-rich-text-a78c7f17024d0bf4b396f9dbb2d7d4b01a80876c/example:/source:ro', '-v', '/home/ubuntu/BachelorsThesis/scripts/RN/output/OzymandiasTheGreat-react-native-live-rich-text:/output', '-v', '/home/ubuntu/.npm:/root/.npm', 'react-android:20-jdk17', 'bash', '-c', '\n                set -e\n\n                cp -r /source/. /app &&                 cd /app && \n                # ---- install deps (yarn or npm) ----\n                if [ -f yarn.lock ]; then\n                    yarn install;\n                else\n                    npm install --ignore-scripts;\n                fi && \n                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----\n                if [ ! -f google-services.json ]; then                     python3 -c "import json; open(\'google-services.json\',\'w\').write(json.dumps({\'project_info\':{\'project_number\':\'000000000000\',\'project_id\':\'stub\',\'storage_bucket\':\'stub.appspot.com\'},\'client\':[{\'client_info\':{\'mobilesdk_app_id\':\'1:000000000000:android:0000000000000000\',\'android_client_info\':{\'package_name\':\'com.stub\'}},\'oauth_client\':[],\'api_key\':[{\'current_key\':\'stub\'}],\'services\':{\'appinvite_service\':{\'other_platform_oauth_client\':[]}}}],\'configuration_version\':\'1\'}))" 2>/dev/null || true;                 fi && \n                # ---- detect expo ----\n                if grep -q \'"expo"\' package.json && [ ! -d android ]; then\n                    echo "Expo project detected";\n                    CI=1 npx --yes expo prebuild --platform android\n                fi && \n                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && \n                chmod +x gradlew && \n                # ---- inject fallback repositories via Gradle init script ----\n                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo \'gradle.beforeProject {project ->\' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.buildscript.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'}\' >> $GRADLE_USER_HOME/init.d/repos.gradle && \n                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----\n                sed -i \'s/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\\/.bin\\/react-native config")/\' settings.gradle 2>/dev/null || true && \n                # ---- clean gradle ----\n                (./gradlew clean || true) && \n                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----\n                ./gradlew :app:dependencies --configuration debugCompileClasspath --no-daemon > /dev/null 2>&1 || true && \n                # ---- enable ABI splits ----\n                if grep -q \'splits\' app/build.gradle 2>/dev/null; then                     sed -i \'s/enable false/enable true/\' app/build.gradle || true;                 else                     sed -i \'/^android[[:space:]]*{/a\\    splits {\\n        abi {\\n            reset()\\n            enable true\\n            universalApk false\\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\\n        }\\n    }\' app/build.gradle || true;                 fi && \n                # ---- build debug apk ----\n                ./gradlew assembleDebug --no-daemon || exit 1 && \n                APK_PATH="app/build/outputs/apk/debug"\n\n                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then\n                    echo "ERROR: APK not generated"\n                    exit 1\n                fi\n                # ---- copy output ----\n                cp app/build/outputs/apk/debug/*.apk /output/\n\n                # ---- copy TPL metadata ----\n                [ -f ../package.json ] && cp ../package.json /output/ || true\n                [ -f ../package-lock.json ] && cp ../package-lock.json /output/ || true\n                [ -f ../yarn.lock ] && cp ../yarn.lock /output/ || true\n                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/ || true\n                [ -f app/build.gradle ] && cp app/build.gradle /output/android-build.gradle || true\n                [ -f build.gradle ] && cp build.gradle /output/root-build.gradle || true\n                [ -f build.gradle.kts ] && cp build.gradle.kts /output/root-build.gradle.kts || true\n                [ -f settings.gradle ] && cp settings.gradle /output/ || true\n                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/ || true\n                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/ || true\n                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true\n                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true\n                mkdir -p /output/libs\n                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true\n                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true\n                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true\n                    ']' returned non-zero exit status 1.

> echo Attempting build for OzymandiasTheGreat-react-native-live-rich-text with Node 22 and jdk 17
Attempting build for OzymandiasTheGreat-react-native-live-rich-text with Node 22 and jdk 17

> docker run --rm -v /home/ubuntu/storage/extracted/OzymandiasTheGreat-react-native-live-rich-text/react-native-live-rich-text-a78c7f17024d0bf4b396f9dbb2d7d4b01a80876c/example:/source:ro -v /home/ubuntu/BachelorsThesis/scripts/RN/output/OzymandiasTheGreat-react-native-live-rich-text:/output -v /home/ubuntu/.npm:/root/.npm react-android:22-jdk17 bash -c 
                set -e

                cp -r /source/. /app &&                 cd /app && 
                # ---- install deps (yarn or npm) ----
                if [ -f yarn.lock ]; then
                    yarn install;
                else
                    npm install --ignore-scripts;
                fi && 
                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----
                if [ ! -f google-services.json ]; then                     python3 -c "import json; open('google-services.json','w').write(json.dumps({'project_info':{'project_number':'000000000000','project_id':'stub','storage_bucket':'stub.appspot.com'},'client':[{'client_info':{'mobilesdk_app_id':'1:000000000000:android:0000000000000000','android_client_info':{'package_name':'com.stub'}},'oauth_client':[],'api_key':[{'current_key':'stub'}],'services':{'appinvite_service':{'other_platform_oauth_client':[]}}}],'configuration_version':'1'}))" 2>/dev/null || true;                 fi && 
                # ---- detect expo ----
                if grep -q '"expo"' package.json && [ ! -d android ]; then
                    echo "Expo project detected";
                    CI=1 npx --yes expo prebuild --platform android
                fi && 
                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && 
                chmod +x gradlew && 
                # ---- inject fallback repositories via Gradle init script ----
                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo 'gradle.beforeProject {project ->' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.buildscript.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  project.repositories {' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://maven.google.com"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://repo1.maven.org/maven2"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://plugins.gradle.org/m2/"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '    maven {url "https://jitpack.io"}' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '  }' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo '}' >> $GRADLE_USER_HOME/init.d/repos.gradle && 
                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----
                sed -i 's/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\/.bin\/react-native config")/' settings.gradle 2>/dev/null || true && 
                # ---- clean gradle ----
                (./gradlew clean || true) && 
                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----
                ./gradlew :app:dependencies --configuration debugCompileClasspath --no-daemon > /dev/null 2>&1 || true && 
                # ---- enable ABI splits ----
                if grep -q 'splits' app/build.gradle 2>/dev/null; then                     sed -i 's/enable false/enable true/' app/build.gradle || true;                 else                     sed -i '/^android[[:space:]]*{/a\    splits {\n        abi {\n            reset()\n            enable true\n            universalApk false\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\n        }\n    }' app/build.gradle || true;                 fi && 
                # ---- build debug apk ----
                ./gradlew assembleDebug --no-daemon || exit 1 && 
                APK_PATH="app/build/outputs/apk/debug"

                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then
                    echo "ERROR: APK not generated"
                    exit 1
                fi
                # ---- copy output ----
                cp app/build/outputs/apk/debug/*.apk /output/

                # ---- copy TPL metadata ----
                [ -f ../package.json ] && cp ../package.json /output/ || true
                [ -f ../package-lock.json ] && cp ../package-lock.json /output/ || true
                [ -f ../yarn.lock ] && cp ../yarn.lock /output/ || true
                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/ || true
                [ -f app/build.gradle ] && cp app/build.gradle /output/android-build.gradle || true
                [ -f build.gradle ] && cp build.gradle /output/root-build.gradle || true
                [ -f build.gradle.kts ] && cp build.gradle.kts /output/root-build.gradle.kts || true
                [ -f settings.gradle ] && cp settings.gradle /output/ || true
                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/ || true
                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/ || true
                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true
                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true
                mkdir -p /output/libs
                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true
                    
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "expo > babel-preset-expo > @react-native/babel-preset > @react-native/babel-plugin-codegen > @react-native/codegen@0.76.7" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "react-native > @react-native/codegen > jscodeshift@0.14.0" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "react-native > @react-native/codegen@0.76.8" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
[4/4] Building fresh packages...
success Saved lockfile.
$ patch-package
patch-package 8.0.0
Applying patches...
html-entities@2.5.3 ✔
Done in 46.32s.
Downloading https://services.gradle.org/distributions/gradle-8.10.2-all.zip
.....................10%......................20%......................30%.....................40%......................50%......................60%......................70%.....................80%......................90%......................100%

Welcome to Gradle 8.10.2!

Here are the highlights of this release:
 - Support for Java 23
 - Faster configuration cache
 - Better configuration cache reports

For more details see https://docs.gradle.org/8.10.2/release-notes.html

To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
> Task :gradle-plugin:settings-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:processResources NO-SOURCE
> Task :gradle-plugin:settings-plugin:pluginDescriptors
> Task :gradle-plugin:settings-plugin:processResources
> Task :gradle-plugin:shared:compileKotlin
> Task :gradle-plugin:shared:compileJava NO-SOURCE
> Task :gradle-plugin:shared:classes UP-TO-DATE
> Task :gradle-plugin:shared:jar
> Task :gradle-plugin:settings-plugin:compileKotlin
> Task :gradle-plugin:settings-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:settings-plugin:classes
> Task :gradle-plugin:settings-plugin:jar
> Task :gradle-plugin:react-native-gradle-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:react-native-gradle-plugin:pluginDescriptors
> Task :gradle-plugin:react-native-gradle-plugin:processResources
> Task :gradle-plugin:react-native-gradle-plugin:compileKotlin
> Task :gradle-plugin:react-native-gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:react-native-gradle-plugin:classes
> Task :gradle-plugin:react-native-gradle-plugin:jar

> Configure project :app
Checking the license for package NDK (Side by side) 26.1.10909125 in /opt/android/licenses
License for package NDK (Side by side) 26.1.10909125 accepted.
Preparing "Install NDK (Side by side) 26.1.10909125 v.26.1.10909125".
"Install NDK (Side by side) 26.1.10909125 v.26.1.10909125" ready.
Installing NDK (Side by side) 26.1.10909125 in /opt/android/ndk/26.1.10909125
"Install NDK (Side by side) 26.1.10909125 v.26.1.10909125" complete.
"Install NDK (Side by side) 26.1.10909125 v.26.1.10909125" finished.

> Configure project :expo

Using expo modules
  - [32mexpo-asset[0m (11.0.5)
  - [32mexpo-constants[0m (17.0.8)
  - [32mexpo-file-system[0m (18.0.12)
  - [32mexpo-font[0m (13.0.4)
  - [32mexpo-keep-awake[0m (14.0.3)
  - [32mexpo-modules-core[0m (2.2.3)


> Configure project :react-native-reanimated
Android gradle plugin: 8.6.0
Gradle: 8.10.2

> Task :app:externalNativeBuildCleanDebug
> Task :app:externalNativeBuildCleanRelease
> Task :app:clean UP-TO-DATE
> Task :expensify_react-native-live-markdown:externalNativeBuildCleanDebug
> Task :expensify_react-native-live-markdown:externalNativeBuildCleanRelease
> Task :expensify_react-native-live-markdown:clean UP-TO-DATE
> Task :expo:clean UP-TO-DATE
> Task :expo-asset:clean UP-TO-DATE
> Task :expo-constants:clean UP-TO-DATE
> Task :expo-file-system:clean UP-TO-DATE
> Task :expo-font:clean UP-TO-DATE
> Task :expo-keep-awake:clean UP-TO-DATE
> Task :expo-modules-core:externalNativeBuildCleanDebug
> Task :expo-modules-core:externalNativeBuildCleanRelease
> Task :expo-modules-core:clean UP-TO-DATE
> Task :react-native-reanimated:cleanCmakeCache
> Task :react-native-reanimated:externalNativeBuildCleanDebug
> Task :react-native-reanimated:externalNativeBuildCleanRelease
> Task :react-native-reanimated:clean
> Task :react-native-safe-area-context:clean UP-TO-DATE

BUILD SUCCESSFUL in 7m 36s
33 actionable tasks: 23 executed, 10 up-to-date
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
> Task :gradle-plugin:settings-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:compileKotlin UP-TO-DATE
> Task :gradle-plugin:shared:compileJava NO-SOURCE
> Task :gradle-plugin:shared:processResources NO-SOURCE
> Task :gradle-plugin:shared:classes UP-TO-DATE
> Task :gradle-plugin:shared:jar UP-TO-DATE
> Task :gradle-plugin:settings-plugin:compileKotlin UP-TO-DATE
> Task :gradle-plugin:settings-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:settings-plugin:pluginDescriptors UP-TO-DATE
> Task :gradle-plugin:settings-plugin:processResources UP-TO-DATE
> Task :gradle-plugin:settings-plugin:classes UP-TO-DATE
> Task :gradle-plugin:settings-plugin:jar UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:react-native-gradle-plugin:compileKotlin UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:react-native-gradle-plugin:pluginDescriptors UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:processResources UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:classes UP-TO-DATE
> Task :gradle-plugin:react-native-gradle-plugin:jar UP-TO-DATE

> Configure project :expo

Using expo modules
  - [32mexpo-asset[0m (11.0.5)
  - [32mexpo-constants[0m (17.0.8)
  - [32mexpo-file-system[0m (18.0.12)
  - [32mexpo-font[0m (13.0.4)
  - [32mexpo-keep-awake[0m (14.0.3)
  - [32mexpo-modules-core[0m (2.2.3)


> Configure project :react-native-reanimated
Android gradle plugin: 8.6.0
Gradle: 8.10.2
Checking the license for package Android SDK Build-Tools 35 in /opt/android/licenses
License for package Android SDK Build-Tools 35 accepted.
Preparing "Install Android SDK Build-Tools 35 v.35.0.0".
"Install Android SDK Build-Tools 35 v.35.0.0" ready.
Installing Android SDK Build-Tools 35 in /opt/android/build-tools/35.0.0
"Install Android SDK Build-Tools 35 v.35.0.0" complete.
"Install Android SDK Build-Tools 35 v.35.0.0" finished.
Checking the license for package Android SDK Platform 35 in /opt/android/licenses
License for package Android SDK Platform 35 accepted.
Preparing "Install Android SDK Platform 35 (revision 2)".
"Install Android SDK Platform 35 (revision 2)" ready.
Installing Android SDK Platform 35 in /opt/android/platforms/android-35
"Install Android SDK Platform 35 (revision 2)" complete.
"Install Android SDK Platform 35 (revision 2)" finished.

> Task :app:generateAutolinkingNewArchitectureFiles
> Task :app:generateAutolinkingPackageList
> Task :app:generateCodegenSchemaFromJavaScript SKIPPED
> Task :app:generateCodegenArtifactsFromSchema SKIPPED
> Task :app:preBuild
> Task :app:preDebugBuild
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:checkKotlinGradlePluginConfigurationErrors
> Task :app:generateDebugBuildConfig
> Task :expensify_react-native-live-markdown:generateCodegenSchemaFromJavaScript
> Task :expensify_react-native-live-markdown:generateCodegenArtifactsFromSchema
> Task :expensify_react-native-live-markdown:preBuild
> Task :expensify_react-native-live-markdown:preDebugBuild
> Task :expensify_react-native-live-markdown:writeDebugAarMetadata
> Task :expo:generateExpoModulesPackageListTask
> Task :expo:preBuild
> Task :expo:preDebugBuild
> Task :expo-asset:preBuild UP-TO-DATE
> Task :expo-asset:preDebugBuild UP-TO-DATE
> Task :expo:writeDebugAarMetadata
> Task :expo-asset:writeDebugAarMetadata

> Task :expo-constants:createExpoConfig
The NODE_ENV environment variable is required but was not specified. Ensure the project is bundled with Expo CLI or NODE_ENV is set.
Proceeding without mode-specific .env

> Task :expo-constants:preBuild
> Task :expo-constants:preDebugBuild
> Task :expo-file-system:preBuild UP-TO-DATE
> Task :expo-constants:writeDebugAarMetadata
> Task :expo-file-system:preDebugBuild UP-TO-DATE
> Task :expo-font:preBuild UP-TO-DATE
> Task :expo-font:preDebugBuild UP-TO-DATE
> Task :expo-file-system:writeDebugAarMetadata
> Task :expo-font:writeDebugAarMetadata
> Task :expo-keep-awake:preBuild UP-TO-DATE
> Task :expo-keep-awake:preDebugBuild UP-TO-DATE
> Task :expo-modules-core:preBuild UP-TO-DATE
> Task :expo-modules-core:preDebugBuild UP-TO-DATE
> Task :expo-keep-awake:writeDebugAarMetadata
> Task :react-native-reanimated:assertMinimalReactNativeVersionTask SKIPPED
> Task :expo-modules-core:writeDebugAarMetadata
> Task :react-native-reanimated:generateCodegenSchemaFromJavaScript
> Task :react-native-reanimated:generateCodegenArtifactsFromSchema
> Task :react-native-reanimated:prepareReanimatedHeadersForPrefabs
> Task :react-native-reanimated:prepareWorkletsHeadersForPrefabs
> Task :react-native-reanimated:preBuild
> Task :react-native-reanimated:preDebugBuild
> Task :react-native-reanimated:writeDebugAarMetadata
> Task :react-native-safe-area-context:generateCodegenSchemaFromJavaScript
> Task :react-native-safe-area-context:generateCodegenArtifactsFromSchema
> Task :react-native-safe-area-context:preBuild
> Task :react-native-safe-area-context:preDebugBuild
> Task :react-native-safe-area-context:writeDebugAarMetadata
> Task :app:generateDebugResValues
> Task :expensify_react-native-live-markdown:generateDebugResValues
> Task :expensify_react-native-live-markdown:generateDebugResources
> Task :app:checkDebugAarMetadata
> Task :expensify_react-native-live-markdown:packageDebugResources
> Task :expo:generateDebugResValues
> Task :expo:generateDebugResources
> Task :expo:packageDebugResources
> Task :expo-asset:generateDebugResValues
> Task :expo-asset:generateDebugResources
> Task :expo-asset:packageDebugResources
> Task :expo-constants:generateDebugResValues
> Task :expo-constants:generateDebugResources
> Task :expo-constants:packageDebugResources
> Task :expo-file-system:generateDebugResValues
> Task :expo-file-system:generateDebugResources
> Task :expo-file-system:packageDebugResources
> Task :expo-font:generateDebugResValues
> Task :expo-font:generateDebugResources
> Task :expo-font:packageDebugResources
> Task :expo-keep-awake:generateDebugResValues
> Task :expo-keep-awake:generateDebugResources
> Task :expo-keep-awake:packageDebugResources
> Task :expo-modules-core:generateDebugResValues
> Task :expo-modules-core:generateDebugResources
> Task :expo-modules-core:packageDebugResources
> Task :react-native-reanimated:generateDebugResValues
> Task :react-native-reanimated:generateDebugResources
> Task :react-native-reanimated:packageDebugResources
> Task :react-native-safe-area-context:generateDebugResValues
> Task :react-native-safe-area-context:generateDebugResources
> Task :react-native-safe-area-context:packageDebugResources
> Task :app:mapDebugSourceSetPaths
> Task :app:generateDebugResources
> Task :app:packageDebugResources
> Task :app:mergeDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :expensify_react-native-live-markdown:extractDeepLinksDebug
> Task :expo:extractDeepLinksDebug
> Task :expo-asset:extractDeepLinksDebug
> Task :expo-constants:extractDeepLinksDebug
> Task :expo-file-system:extractDeepLinksDebug
> Task :expo-font:extractDeepLinksDebug
> Task :app:parseDebugLocalResources
> Task :expo-keep-awake:extractDeepLinksDebug
> Task :expo-modules-core:extractDeepLinksDebug
> Task :expo-asset:processDebugManifest
> Task :expensify_react-native-live-markdown:processDebugManifest

> Task :expo-file-system:processDebugManifest
/app/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-constants:processDebugManifest
> Task :expo-keep-awake:processDebugManifest
> Task :expo:processDebugManifest

> Task :expo-modules-core:processDebugManifest
/app/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-font:processDebugManifest
> Task :react-native-reanimated:extractDeepLinksDebug
> Task :react-native-reanimated:processDebugManifest
> Task :react-native-safe-area-context:extractDeepLinksDebug

> Task :react-native-safe-area-context:processDebugManifest
package="com.th3rdwave.safeareacontext" found in source AndroidManifest.xml: /app/node_modules/react-native-safe-area-context/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.th3rdwave.safeareacontext" from the source AndroidManifest.xml: /app/node_modules/react-native-safe-area-context/android/src/main/AndroidManifest.xml.

> Task :expensify_react-native-live-markdown:compileDebugLibraryResources

> Task :app:processDebugMainManifest
/app/android/app/src/debug/AndroidManifest.xml:6:5-162 Warning:
	application@android:usesCleartextTraffic was tagged at AndroidManifest.xml:6 to replace other declarations but no other declaration present
/app/android/app/src/debug/AndroidManifest.xml Warning:
	provider#expo.modules.filesystem.FileSystemFileProvider@android:authorities was tagged at AndroidManifest.xml:0 to replace other declarations but no other declaration present

> Task :app:processDebugManifest
> Task :expensify_react-native-live-markdown:parseDebugLocalResources
> Task :expo:compileDebugLibraryResources
> Task :expo:parseDebugLocalResources
> Task :expo-asset:compileDebugLibraryResources
> Task :expo-asset:parseDebugLocalResources
> Task :expo-constants:compileDebugLibraryResources
> Task :expo-asset:generateDebugRFile
> Task :expo:generateDebugRFile
> Task :expensify_react-native-live-markdown:generateDebugRFile
> Task :expo-constants:parseDebugLocalResources
> Task :expo-file-system:compileDebugLibraryResources
> Task :expo-file-system:parseDebugLocalResources
> Task :expo-font:compileDebugLibraryResources
> Task :expo-constants:generateDebugRFile
> Task :expo-keep-awake:compileDebugLibraryResources
> Task :expo-font:parseDebugLocalResources
> Task :expo-file-system:generateDebugRFile
> Task :expo-keep-awake:parseDebugLocalResources
> Task :expo-font:generateDebugRFile
> Task :expo-modules-core:compileDebugLibraryResources
> Task :expo-keep-awake:generateDebugRFile
> Task :expo-modules-core:parseDebugLocalResources
> Task :react-native-reanimated:compileDebugLibraryResources
> Task :expo-modules-core:generateDebugRFile
> Task :react-native-reanimated:parseDebugLocalResources
> Task :react-native-safe-area-context:compileDebugLibraryResources
> Task :react-native-reanimated:generateDebugRFile
> Task :react-native-safe-area-context:parseDebugLocalResources
> Task :expensify_react-native-live-markdown:generateDebugBuildConfig
> Task :react-native-safe-area-context:generateDebugRFile
> Task :react-native-reanimated:generateDebugBuildConfig
> Task :react-native-reanimated:packageNdkLibs NO-SOURCE
> Task :expo:checkKotlinGradlePluginConfigurationErrors
> Task :react-native-reanimated:javaPreCompileDebug
> Task :expensify_react-native-live-markdown:javaPreCompileDebug

> Task :react-native-reanimated:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :expo:generateDebugBuildConfig
> Task :expo-asset:checkKotlinGradlePluginConfigurationErrors
> Task :expo-asset:generateDebugBuildConfig
> Task :expo-modules-core:checkKotlinGradlePluginConfigurationErrors
> Task :expo-modules-core:generateDebugBuildConfig
> Task :react-native-reanimated:bundleLibCompileToJarDebug
> Task :expensify_react-native-live-markdown:compileDebugJavaWithJavac
> Task :expo-modules-core:javaPreCompileDebug
> Task :app:processDebugManifestForPackage
> Task :expensify_react-native-live-markdown:bundleLibCompileToJarDebug
> Task :expo-constants:checkKotlinGradlePluginConfigurationErrors
> Task :expo-asset:javaPreCompileDebug
> Task :expo-constants:generateDebugBuildConfig
> Task :expo-constants:javaPreCompileDebug
> Task :expo-file-system:checkKotlinGradlePluginConfigurationErrors
> Task :expo-file-system:generateDebugBuildConfig
> Task :expo-font:checkKotlinGradlePluginConfigurationErrors
> Task :expo-file-system:javaPreCompileDebug
> Task :expo-font:generateDebugBuildConfig
> Task :expo-keep-awake:checkKotlinGradlePluginConfigurationErrors
> Task :expo-font:javaPreCompileDebug
> Task :expo-keep-awake:generateDebugBuildConfig
> Task :expo-keep-awake:javaPreCompileDebug
> Task :react-native-safe-area-context:checkKotlinGradlePluginConfigurationErrors
> Task :expo:javaPreCompileDebug
> Task :react-native-safe-area-context:generateDebugBuildConfig
> Task :app:javaPreCompileDebug
> Task :react-native-safe-area-context:javaPreCompileDebug
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :expensify_react-native-live-markdown:mergeDebugShaders
> Task :expensify_react-native-live-markdown:compileDebugShaders NO-SOURCE
> Task :expensify_react-native-live-markdown:generateDebugAssets UP-TO-DATE
> Task :expensify_react-native-live-markdown:packageDebugAssets
> Task :expo:mergeDebugShaders
> Task :expo:compileDebugShaders NO-SOURCE
> Task :expo:generateDebugAssets UP-TO-DATE
> Task :expo:packageDebugAssets
> Task :expo-asset:mergeDebugShaders
> Task :expo-asset:compileDebugShaders NO-SOURCE
> Task :expo-asset:generateDebugAssets UP-TO-DATE
> Task :expo-asset:packageDebugAssets
> Task :expo-constants:mergeDebugShaders
> Task :expo-constants:compileDebugShaders NO-SOURCE
> Task :expo-constants:generateDebugAssets UP-TO-DATE
> Task :expo-constants:packageDebugAssets
> Task :expo-file-system:mergeDebugShaders
> Task :expo-file-system:compileDebugShaders NO-SOURCE
> Task :expo-file-system:generateDebugAssets UP-TO-DATE
> Task :expo-file-system:packageDebugAssets
> Task :expo-font:mergeDebugShaders
> Task :expo-font:compileDebugShaders NO-SOURCE
> Task :expo-font:generateDebugAssets UP-TO-DATE
> Task :expo-font:packageDebugAssets
> Task :expo-keep-awake:mergeDebugShaders
> Task :expo-keep-awake:compileDebugShaders NO-SOURCE
> Task :expo-keep-awake:generateDebugAssets UP-TO-DATE
> Task :expo-keep-awake:packageDebugAssets
> Task :expo-modules-core:mergeDebugShaders
> Task :expo-modules-core:compileDebugShaders NO-SOURCE
> Task :expo-modules-core:generateDebugAssets UP-TO-DATE
> Task :app:processDebugResources
> Task :expo-modules-core:packageDebugAssets
> Task :react-native-reanimated:mergeDebugShaders
> Task :react-native-reanimated:compileDebugShaders NO-SOURCE
> Task :react-native-reanimated:generateDebugAssets UP-TO-DATE
> Task :react-native-reanimated:packageDebugAssets
> Task :react-native-safe-area-context:mergeDebugShaders
> Task :react-native-safe-area-context:compileDebugShaders NO-SOURCE
> Task :react-native-safe-area-context:generateDebugAssets UP-TO-DATE
> Task :react-native-safe-area-context:packageDebugAssets
> Task :app:mergeDebugAssets
> Task :app:desugarDebugFileDependencies
> Task :expensify_react-native-live-markdown:bundleLibRuntimeToJarDebug
> Task :app:compressDebugAssets
> Task :expensify_react-native-live-markdown:processDebugJavaRes NO-SOURCE
> Task :react-native-reanimated:processDebugJavaRes NO-SOURCE
> Task :react-native-reanimated:bundleLibRuntimeToJarDebug
> Task :expensify_react-native-live-markdown:bundleLibRuntimeToDirDebug
> Task :app:checkDebugDuplicateClasses
> Task :react-native-reanimated:bundleLibRuntimeToDirDebug

> Task :react-native-reanimated:configureCMakeDebug[arm64-v8a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :react-native-safe-area-context:compileDebugKotlin
w: file:///app/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaView.kt:59:23 'getter for uiImplementation: UIImplementation!' is deprecated. Deprecated in Java

> Task :expo-modules-core:compileDebugKotlin
> Task :app:mergeExtDexDebug
> Task :react-native-safe-area-context:compileDebugJavaWithJavac
> Task :react-native-safe-area-context:bundleLibCompileToJarDebug
> Task :react-native-safe-area-context:bundleLibRuntimeToJarDebug
> Task :react-native-safe-area-context:processDebugJavaRes
> Task :react-native-safe-area-context:bundleLibRuntimeToDirDebug

> Task :react-native-reanimated:configureCMakeDebug[armeabi-v7a]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :expo-modules-core:compileDebugJavaWithJavac
> Task :expo-modules-core:processDebugJavaRes
> Task :expo-modules-core:bundleLibRuntimeToJarDebug
> Task :expo-modules-core:bundleLibCompileToJarDebug
> Task :expo-modules-core:bundleLibRuntimeToDirDebug

> Task :react-native-reanimated:configureCMakeDebug[x86]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :expo-constants:compileDebugKotlin
> Task :expo-asset:compileDebugKotlin
> Task :expo-asset:compileDebugJavaWithJavac
> Task :expo-asset:bundleLibCompileToJarDebug
> Task :expo-constants:compileDebugJavaWithJavac
> Task :expo-constants:bundleLibCompileToJarDebug
> Task :expo-asset:bundleLibRuntimeToJarDebug
> Task :expo-constants:bundleLibRuntimeToJarDebug
> Task :expo-asset:processDebugJavaRes
> Task :expo-constants:processDebugJavaRes
> Task :expo-asset:bundleLibRuntimeToDirDebug
> Task :expo-constants:bundleLibRuntimeToDirDebug
> Task :expo-keep-awake:compileDebugKotlin
> Task :expo-font:compileDebugKotlin

> Task :react-native-reanimated:configureCMakeDebug[x86_64]
C/C++: CMake Warning:
C/C++:   Manually-specified variables were not used by the project:
C/C++:     ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES

> Task :expo-font:compileDebugJavaWithJavac
> Task :expo-font:bundleLibCompileToJarDebug
> Task :expo-keep-awake:compileDebugJavaWithJavac
> Task :expo-keep-awake:bundleLibCompileToJarDebug
> Task :expo-font:bundleLibRuntimeToJarDebug
> Task :expo-keep-awake:bundleLibRuntimeToJarDebug
> Task :expo-font:processDebugJavaRes
> Task :expo-keep-awake:processDebugJavaRes
> Task :react-native-reanimated:generateJsonModelDebug
> Task :react-native-reanimated:prefabDebugConfigurePackage
> Task :expo-font:bundleLibRuntimeToDirDebug
> Task :expo-keep-awake:bundleLibRuntimeToDirDebug
> Task :expo-file-system:compileDebugKotlin
> Task :app:configureCMakeDebug[arm64-v8a]
> Task :expo-file-system:compileDebugJavaWithJavac
> Task :expo-file-system:bundleLibCompileToJarDebug
> Task :expo-file-system:processDebugJavaRes
> Task :expo-file-system:bundleLibRuntimeToJarDebug
> Task :expo-file-system:bundleLibRuntimeToDirDebug

> Task :expo:compileDebugKotlin
w: file:///app/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt:163:34 'constructor ReactDelegate(Activity!, ReactNativeHost!, String?, Bundle?)' is deprecated. Deprecated in Java
w: file:///app/node_modules/expo/android/src/main/java/expo/modules/fetch/NativeResponse.kt:40:16 This declaration overrides deprecated member but not marked as deprecated itself. Please add @Deprecated annotation or suppress. See https://youtrack.jetbrains.com/issue/KT-47902 for details
w: file:///app/node_modules/expo/android/src/main/java/expo/modules/fetch/NativeResponse.kt:42:11 'deallocate(): Unit' is deprecated. Use sharedObjectDidRelease() instead.

> Task :react-native-reanimated:buildCMakeDebug[arm64-v8a][reanimated,worklets]
> Task :expo:compileDebugJavaWithJavac
> Task :expo:bundleLibCompileToJarDebug
> Task :expo:processDebugJavaRes
> Task :expo:bundleLibRuntimeToJarDebug
> Task :expo:bundleLibRuntimeToDirDebug
> Task :app:compileDebugKotlin
> Task :react-native-reanimated:buildCMakeDebug[armeabi-v7a][reanimated,worklets]
> Task :app:compileDebugJavaWithJavac
> Task :app:dexBuilderDebug
> Task :app:processDebugJavaRes
> Task :app:mergeDebugGlobalSynthetics
> Task :app:mergeProjectDexDebug
> Task :app:mergeLibDexDebug
> Task :app:mergeDebugJavaResource
> Task :react-native-reanimated:buildCMakeDebug[x86][reanimated,worklets]
> Task :react-native-reanimated:buildCMakeDebug[x86_64][reanimated,worklets]
> Task :react-native-reanimated:externalNativeBuildDebug
> Task :react-native-reanimated:prefabDebugPackage
> Task :app:buildCMakeDebug[arm64-v8a]
> Task :app:configureCMakeDebug[armeabi-v7a]
> Task :app:buildCMakeDebug[armeabi-v7a]
> Task :app:configureCMakeDebug[x86]
> Task :app:buildCMakeDebug[x86]
> Task :app:configureCMakeDebug[x86_64]
> Task :app:buildCMakeDebug[x86_64]
> Task :app:mergeDebugJniLibFolders
> Task :expensify_react-native-live-markdown:configureCMakeDebug[arm64-v8a]
> Task :expensify_react-native-live-markdown:buildCMakeDebug[arm64-v8a]
> Task :expensify_react-native-live-markdown:configureCMakeDebug[armeabi-v7a]
> Task :expensify_react-native-live-markdown:buildCMakeDebug[armeabi-v7a]
> Task :expensify_react-native-live-markdown:configureCMakeDebug[x86]
> Task :expensify_react-native-live-markdown:buildCMakeDebug[x86]
> Task :expensify_react-native-live-markdown:configureCMakeDebug[x86_64]
> Task :expensify_react-native-live-markdown:buildCMakeDebug[x86_64]
> Task :expensify_react-native-live-markdown:mergeDebugJniLibFolders
> Task :expensify_react-native-live-markdown:mergeDebugNativeLibs
> Task :expo:mergeDebugJniLibFolders
> Task :expo:mergeDebugNativeLibs NO-SOURCE
> Task :expo:copyDebugJniLibsProjectOnly
> Task :expo-asset:mergeDebugJniLibFolders
> Task :expo-asset:mergeDebugNativeLibs NO-SOURCE
> Task :expo-asset:copyDebugJniLibsProjectOnly
> Task :expensify_react-native-live-markdown:copyDebugJniLibsProjectOnly
> Task :expo-constants:mergeDebugJniLibFolders
> Task :expo-constants:mergeDebugNativeLibs NO-SOURCE
> Task :expo-constants:copyDebugJniLibsProjectOnly
> Task :expo-file-system:mergeDebugJniLibFolders
> Task :expo-file-system:mergeDebugNativeLibs NO-SOURCE
> Task :expo-file-system:copyDebugJniLibsProjectOnly
> Task :expo-font:mergeDebugJniLibFolders
> Task :expo-font:mergeDebugNativeLibs NO-SOURCE
> Task :expo-font:copyDebugJniLibsProjectOnly
> Task :expo-keep-awake:mergeDebugJniLibFolders
> Task :expo-keep-awake:mergeDebugNativeLibs NO-SOURCE
> Task :expo-keep-awake:copyDebugJniLibsProjectOnly
> Task :expo-modules-core:configureCMakeDebug[arm64-v8a]
> Task :expo-modules-core:buildCMakeDebug[arm64-v8a]
> Task :expo-modules-core:configureCMakeDebug[armeabi-v7a]
> Task :expo-modules-core:buildCMakeDebug[armeabi-v7a]
> Task :expo-modules-core:configureCMakeDebug[x86]
> Task :expo-modules-core:buildCMakeDebug[x86]
> Task :expo-modules-core:configureCMakeDebug[x86_64]
> Task :expo-modules-core:buildCMakeDebug[x86_64]
> Task :expo-modules-core:mergeDebugJniLibFolders
> Task :react-native-reanimated:mergeDebugJniLibFolders
> Task :react-native-safe-area-context:mergeDebugJniLibFolders
> Task :react-native-safe-area-context:mergeDebugNativeLibs NO-SOURCE
> Task :react-native-safe-area-context:copyDebugJniLibsProjectOnly
> Task :app:validateSigningDebug
> Task :app:writeDebugAppMetadata
> Task :app:writeDebugSigningConfigVersions
> Task :expo-modules-core:mergeDebugNativeLibs
> Task :expo-modules-core:copyDebugJniLibsProjectOnly
> Task :expensify_react-native-live-markdown:stripDebugDebugSymbols
> Task :react-native-reanimated:mergeDebugNativeLibs
> Task :expensify_react-native-live-markdown:extractDebugAnnotations
> Task :expensify_react-native-live-markdown:extractDebugAnnotations FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':expensify_react-native-live-markdown:extractDebugAnnotations'.
> Could not resolve all files for configuration ':expensify_react-native-live-markdown:detachedConfiguration1'.
   > Could not download lint-gradle-31.6.0.jar (com.android.tools.lint:lint-gradle:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/31.6.0/lint-gradle-31.6.0.jar'.
         > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle/31.6.0/lint-gradle-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download lint-31.6.0.jar (com.android.tools.lint:lint:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint/31.6.0/lint-31.6.0.jar'.
         > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint/31.6.0/lint-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download lint-checks-31.6.0.jar (com.android.tools.lint:lint-checks:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-checks/31.6.0/lint-checks-31.6.0.jar'.
         > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-checks/31.6.0/lint-checks-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download lint-api-31.6.0.jar (com.android.tools.lint:lint-api:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-api/31.6.0/lint-api-31.6.0.jar'.
         > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-api/31.6.0/lint-api-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download intellij-core-31.6.0.jar (com.android.tools.external.com-intellij:intellij-core:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/31.6.0/intellij-core-31.6.0.jar'.
         > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/31.6.0/intellij-core-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download kotlin-compiler-31.6.0.jar (com.android.tools.external.com-intellij:kotlin-compiler:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/31.6.0/kotlin-compiler-31.6.0.jar'.
         > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/31.6.0/kotlin-compiler-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download uast-31.6.0.jar (com.android.tools.external.org-jetbrains:uast:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/external/org-jetbrains/uast/31.6.0/uast-31.6.0.jar'.
         > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/external/org-jetbrains/uast/31.6.0/uast-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download tracker-31.6.0.jar (com.android.tools.analytics-library:tracker:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/tracker/31.6.0/tracker-31.6.0.jar'.
         > Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/tracker/31.6.0/tracker-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download manifest-merger-31.6.0.jar (com.android.tools.build:manifest-merger:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/manifest-merger/31.6.0/manifest-merger-31.6.0.jar'.
         > Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/build/manifest-merger/31.6.0/manifest-merger-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download lint-model-31.6.0.jar (com.android.tools.lint:lint-model:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-model/31.6.0/lint-model-31.6.0.jar'.
         > Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-model/31.6.0/lint-model-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download sdk-common-31.6.0.jar (com.android.tools:sdk-common:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/31.6.0/sdk-common-31.6.0.jar'.
         > Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/31.6.0/sdk-common-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download sdklib-31.6.0.jar (com.android.tools:sdklib:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/sdklib/31.6.0/sdklib-31.6.0.jar'.
         > Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/sdklib/31.6.0/sdklib-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download repository-31.6.0.jar (com.android.tools:repository:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/repository/31.6.0/repository-31.6.0.jar'.
         > Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/repository/31.6.0/repository-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download shared-31.6.0.jar (com.android.tools.analytics-library:shared:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/shared/31.6.0/shared-31.6.0.jar'.
         > Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/shared/31.6.0/shared-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download layoutlib-api-31.6.0.jar (com.android.tools.layoutlib:layoutlib-api:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/layoutlib/layoutlib-api/31.6.0/layoutlib-api-31.6.0.jar'.
         > Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/layoutlib/layoutlib-api/31.6.0/layoutlib-api-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download ddmlib-31.6.0.jar (com.android.tools.ddms:ddmlib:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/ddms/ddmlib/31.6.0/ddmlib-31.6.0.jar'.
         > Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/ddms/ddmlib/31.6.0/ddmlib-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download dvlib-31.6.0.jar (com.android.tools:dvlib:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/dvlib/31.6.0/dvlib-31.6.0.jar'.
         > Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/dvlib/31.6.0/dvlib-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download common-31.6.0.jar (com.android.tools:common:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/common/31.6.0/common-31.6.0.jar'.
         > Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/common/31.6.0/common-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download lint-typedef-remover-31.6.0.jar (com.android.tools.lint:lint-typedef-remover:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-typedef-remover/31.6.0/lint-typedef-remover-31.6.0.jar'.
         > Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-typedef-remover/31.6.0/lint-typedef-remover-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download groovy-3.0.17.jar (org.codehaus.groovy:groovy:3.0.17)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy/3.0.17/groovy-3.0.17.jar'.
         > Could not GET 'https://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy/3.0.17/groovy-3.0.17.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download builder-model-8.6.0.jar (com.android.tools.build:builder-model:8.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder-model/8.6.0/builder-model-8.6.0.jar'.
         > Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder-model/8.6.0/builder-model-8.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download jimfs-1.1.jar (com.google.jimfs:jimfs:1.1)
      > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/jimfs/jimfs/1.1/jimfs-1.1.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/com/google/jimfs/jimfs/1.1/jimfs-1.1.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download guava-32.0.1-jre.jar (com.google.guava:guava:32.0.1-jre)
      > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/32.0.1-jre/guava-32.0.1-jre.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/com/google/guava/guava/32.0.1-jre/guava-32.0.1-jre.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download jna-platform-5.6.0.jar (net.java.dev.jna:jna-platform:5.6.0)
      > Could not get resource 'https://repo.maven.apache.org/maven2/net/java/dev/jna/jna-platform/5.6.0/jna-platform-5.6.0.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/net/java/dev/jna/jna-platform/5.6.0/jna-platform-5.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download kotlin-reflect-1.9.20.jar (org.jetbrains.kotlin:kotlin-reflect:1.9.20)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-reflect/1.9.20/kotlin-reflect-1.9.20.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-reflect/1.9.20/kotlin-reflect-1.9.20.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download kotlin-stdlib-jdk7-1.9.20.jar (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.9.20/kotlin-stdlib-jdk7-1.9.20.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.9.20/kotlin-stdlib-jdk7-1.9.20.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download kotlin-stdlib-1.9.20.jar (org.jetbrains.kotlin:kotlin-stdlib:1.9.20)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.9.20/kotlin-stdlib-1.9.20.jar'.
         > Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/1.9.20/kotlin-stdlib-1.9.20.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download kotlin-stdlib-jdk8-1.9.20.jar (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.9.20/kotlin-stdlib-jdk8-1.9.20.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.9.20/kotlin-stdlib-jdk8-1.9.20.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download kxml2-2.3.0.jar (net.sf.kxml:kxml2:2.3.0)
      > Could not get resource 'https://repo.maven.apache.org/maven2/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download asm-tree-9.6.jar (org.ow2.asm:asm-tree:9.6)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-tree/9.6/asm-tree-9.6.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-tree/9.6/asm-tree-9.6.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download asm-9.6.jar (org.ow2.asm:asm:9.6)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm/9.6/asm-9.6.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm/9.6/asm-9.6.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download failureaccess-1.0.1.jar (com.google.guava:failureaccess:1.0.1)
      > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar (com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava)
      > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download checker-qual-3.33.0.jar (org.checkerframework:checker-qual:3.33.0)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/checkerframework/checker-qual/3.33.0/checker-qual-3.33.0.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/org/checkerframework/checker-qual/3.33.0/checker-qual-3.33.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download error_prone_annotations-2.18.0.jar (com.google.errorprone:error_prone_annotations:2.18.0)
      > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_annotations/2.18.0/error_prone_annotations-2.18.0.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/com/google/errorprone/error_prone_annotations/2.18.0/error_prone_annotations-2.18.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download j2objc-annotations-2.8.jar (com.google.j2objc:j2objc-annotations:2.8)
      > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/j2objc/j2objc-annotations/2.8/j2objc-annotations-2.8.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/com/google/j2objc/j2objc-annotations/2.8/j2objc-annotations-2.8.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download jna-5.6.0.jar (net.java.dev.jna:jna:5.6.0)
      > Could not get resource 'https://repo.maven.apache.org/maven2/net/java/dev/jna/jna/5.6.0/jna-5.6.0.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/net/java/dev/jna/jna/5.6.0/jna-5.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download commons-io-2.13.0.jar (commons-io:commons-io:2.13.0)
      > Could not get resource 'https://repo.maven.apache.org/maven2/commons-io/commons-io/2.13.0/commons-io-2.13.0.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/commons-io/commons-io/2.13.0/commons-io-2.13.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download play-sdk-proto-31.6.0.jar (com.android.tools:play-sdk-proto:31.6.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/play-sdk-proto/31.6.0/play-sdk-proto-31.6.0.jar'.
         > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/play-sdk-proto/31.6.0/play-sdk-proto-31.6.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download aapt2-proto-8.6.0-11315950.jar (com.android.tools.build:aapt2-proto:8.6.0-11315950)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2-proto/8.6.0-11315950/aapt2-proto-8.6.0-11315950.jar'.
         > Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2-proto/8.6.0-11315950/aapt2-proto-8.6.0-11315950.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download protobuf-java-3.22.3.jar (com.google.protobuf:protobuf-java:3.22.3)
      > Could not get resource 'https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java/3.22.3/protobuf-java-3.22.3.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/com/google/protobuf/protobuf-java/3.22.3/protobuf-java-3.22.3.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download bcpkix-jdk18on-1.77.jar (org.bouncycastle:bcpkix-jdk18on:1.77)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcpkix-jdk18on/1.77/bcpkix-jdk18on-1.77.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcpkix-jdk18on/1.77/bcpkix-jdk18on-1.77.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download bcutil-jdk18on-1.77.jar (org.bouncycastle:bcutil-jdk18on:1.77)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcutil-jdk18on/1.77/bcutil-jdk18on-1.77.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcutil-jdk18on/1.77/bcutil-jdk18on-1.77.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download bcprov-jdk18on-1.77.jar (org.bouncycastle:bcprov-jdk18on:1.77)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcprov-jdk18on/1.77/bcprov-jdk18on-1.77.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/org/bouncycastle/bcprov-jdk18on/1.77/bcprov-jdk18on-1.77.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download commons-compress-1.21.jar (org.apache.commons:commons-compress:1.21)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-compress/1.21/commons-compress-1.21.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-compress/1.21/commons-compress-1.21.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download httpmime-4.5.6.jar (org.apache.httpcomponents:httpmime:4.5.6)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpmime/4.5.6/httpmime-4.5.6.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpmime/4.5.6/httpmime-4.5.6.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download httpcore-4.4.16.jar (org.apache.httpcomponents:httpcore:4.4.16)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download stax-ex-1.8.1.jar (org.jvnet.staxex:stax-ex:1.8.1)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/jvnet/staxex/stax-ex/1.8.1/stax-ex-1.8.1.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/org/jvnet/staxex/stax-ex/1.8.1/stax-ex-1.8.1.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download jakarta.xml.bind-api-2.3.2.jar (jakarta.xml.bind:jakarta.xml.bind-api:2.3.2)
      > Could not get resource 'https://repo.maven.apache.org/maven2/jakarta/xml/bind/jakarta.xml.bind-api/2.3.2/jakarta.xml.bind-api-2.3.2.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/jakarta/xml/bind/jakarta.xml.bind-api/2.3.2/jakarta.xml.bind-api-2.3.2.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download txw2-2.3.2.jar (org.glassfish.jaxb:txw2:2.3.2)
      > Could not get resource 'https://repo.maven.apache.org/maven2/org/glassfish/jaxb/txw2/2.3.2/txw2-2.3.2.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/org/glassfish/jaxb/txw2/2.3.2/txw2-2.3.2.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download istack-commons-runtime-3.0.8.jar (com.sun.istack:istack-commons-runtime:3.0.8)
      > Could not get resource 'https://repo.maven.apache.org/maven2/com/sun/istack/istack-commons-runtime/3.0.8/istack-commons-runtime-3.0.8.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/com/sun/istack/istack-commons-runtime/3.0.8/istack-commons-runtime-3.0.8.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download FastInfoset-1.2.16.jar (com.sun.xml.fastinfoset:FastInfoset:1.2.16)
      > Could not get resource 'https://repo.maven.apache.org/maven2/com/sun/xml/fastinfoset/FastInfoset/1.2.16/FastInfoset-1.2.16.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/com/sun/xml/fastinfoset/FastInfoset/1.2.16/FastInfoset-1.2.16.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download jakarta.activation-api-1.2.1.jar (jakarta.activation:jakarta.activation-api:1.2.1)
      > Could not get resource 'https://repo.maven.apache.org/maven2/jakarta/activation/jakarta.activation-api/1.2.1/jakarta.activation-api-1.2.1.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/jakarta/activation/jakarta.activation-api/1.2.1/jakarta.activation-api-1.2.1.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake
   > Could not download javax.activation-1.2.0.jar (com.sun.activation:javax.activation:1.2.0)
      > Could not get resource 'https://repo.maven.apache.org/maven2/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.jar'.
         > Could not HEAD 'https://repo.maven.apache.org/maven2/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.jar'.
            > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
               > Remote host terminated the handshake

* 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 13m 10s
312 actionable tasks: 302 executed, 10 up-to-date

> echo Build failed with Node 22 and jdk version 17 with the following error: Command '['docker', 'run', '--rm', '-v', '/home/ubuntu/storage/extracted/OzymandiasTheGreat-react-native-live-rich-text/react-native-live-rich-text-a78c7f17024d0bf4b396f9dbb2d7d4b01a80876c/example:/source:ro', '-v', '/home/ubuntu/BachelorsThesis/scripts/RN/output/OzymandiasTheGreat-react-native-live-rich-text:/output', '-v', '/home/ubuntu/.npm:/root/.npm', 'react-android:22-jdk17', 'bash', '-c', '\n                set -e\n\n                cp -r /source/. /app &&                 cd /app && \n                # ---- install deps (yarn or npm) ----\n                if [ -f yarn.lock ]; then\n                    yarn install;\n                else\n                    npm install --ignore-scripts;\n                fi && \n                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----\n                if [ ! -f google-services.json ]; then                     python3 -c "import json; open(\'google-services.json\',\'w\').write(json.dumps({\'project_info\':{\'project_number\':\'000000000000\',\'project_id\':\'stub\',\'storage_bucket\':\'stub.appspot.com\'},\'client\':[{\'client_info\':{\'mobilesdk_app_id\':\'1:000000000000:android:0000000000000000\',\'android_client_info\':{\'package_name\':\'com.stub\'}},\'oauth_client\':[],\'api_key\':[{\'current_key\':\'stub\'}],\'services\':{\'appinvite_service\':{\'other_platform_oauth_client\':[]}}}],\'configuration_version\':\'1\'}))" 2>/dev/null || true;                 fi && \n                # ---- detect expo ----\n                if grep -q \'"expo"\' package.json && [ ! -d android ]; then\n                    echo "Expo project detected";\n                    CI=1 npx --yes expo prebuild --platform android\n                fi && \n                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && \n                chmod +x gradlew && \n                # ---- inject fallback repositories via Gradle init script ----\n                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo \'gradle.beforeProject {project ->\' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.buildscript.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'}\' >> $GRADLE_USER_HOME/init.d/repos.gradle && \n                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----\n                sed -i \'s/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\\/.bin\\/react-native config")/\' settings.gradle 2>/dev/null || true && \n                # ---- clean gradle ----\n                (./gradlew clean || true) && \n                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----\n                ./gradlew :app:dependencies --configuration debugCompileClasspath --no-daemon > /dev/null 2>&1 || true && \n                # ---- enable ABI splits ----\n                if grep -q \'splits\' app/build.gradle 2>/dev/null; then                     sed -i \'s/enable false/enable true/\' app/build.gradle || true;                 else                     sed -i \'/^android[[:space:]]*{/a\\    splits {\\n        abi {\\n            reset()\\n            enable true\\n            universalApk false\\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\\n        }\\n    }\' app/build.gradle || true;                 fi && \n                # ---- build debug apk ----\n                ./gradlew assembleDebug --no-daemon || exit 1 && \n                APK_PATH="app/build/outputs/apk/debug"\n\n                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then\n                    echo "ERROR: APK not generated"\n                    exit 1\n                fi\n                # ---- copy output ----\n                cp app/build/outputs/apk/debug/*.apk /output/\n\n                # ---- copy TPL metadata ----\n                [ -f ../package.json ] && cp ../package.json /output/ || true\n                [ -f ../package-lock.json ] && cp ../package-lock.json /output/ || true\n                [ -f ../yarn.lock ] && cp ../yarn.lock /output/ || true\n                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/ || true\n                [ -f app/build.gradle ] && cp app/build.gradle /output/android-build.gradle || true\n                [ -f build.gradle ] && cp build.gradle /output/root-build.gradle || true\n                [ -f build.gradle.kts ] && cp build.gradle.kts /output/root-build.gradle.kts || true\n                [ -f settings.gradle ] && cp settings.gradle /output/ || true\n                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/ || true\n                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/ || true\n                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true\n                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true\n                mkdir -p /output/libs\n                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true\n                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true\n                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true\n                    ']' returned non-zero exit status 1.
Build failed with Node 22 and jdk version 17 with the following error: Command '['docker', 'run', '--rm', '-v', '/home/ubuntu/storage/extracted/OzymandiasTheGreat-react-native-live-rich-text/react-native-live-rich-text-a78c7f17024d0bf4b396f9dbb2d7d4b01a80876c/example:/source:ro', '-v', '/home/ubuntu/BachelorsThesis/scripts/RN/output/OzymandiasTheGreat-react-native-live-rich-text:/output', '-v', '/home/ubuntu/.npm:/root/.npm', 'react-android:22-jdk17', 'bash', '-c', '\n                set -e\n\n                cp -r /source/. /app &&                 cd /app && \n                # ---- install deps (yarn or npm) ----\n                if [ -f yarn.lock ]; then\n                    yarn install;\n                else\n                    npm install --ignore-scripts;\n                fi && \n                # ---- stub missing google-services.json (Firebase/Expo prebuild) ----\n                if [ ! -f google-services.json ]; then                     python3 -c "import json; open(\'google-services.json\',\'w\').write(json.dumps({\'project_info\':{\'project_number\':\'000000000000\',\'project_id\':\'stub\',\'storage_bucket\':\'stub.appspot.com\'},\'client\':[{\'client_info\':{\'mobilesdk_app_id\':\'1:000000000000:android:0000000000000000\',\'android_client_info\':{\'package_name\':\'com.stub\'}},\'oauth_client\':[],\'api_key\':[{\'current_key\':\'stub\'}],\'services\':{\'appinvite_service\':{\'other_platform_oauth_client\':[]}}}],\'configuration_version\':\'1\'}))" 2>/dev/null || true;                 fi && \n                # ---- detect expo ----\n                if grep -q \'"expo"\' package.json && [ ! -d android ]; then\n                    echo "Expo project detected";\n                    CI=1 npx --yes expo prebuild --platform android\n                fi && \n                export PATH="/app/node_modules/.bin:$PATH" &&                 cd android && \n                chmod +x gradlew && \n                # ---- inject fallback repositories via Gradle init script ----\n                mkdir -p $GRADLE_USER_HOME/init.d &&                 echo \'gradle.beforeProject {project ->\' > $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.buildscript.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  project.repositories {\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://maven.google.com"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://repo1.maven.org/maven2"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://plugins.gradle.org/m2/"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'    maven {url "https://jitpack.io"}\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'  }\' >> $GRADLE_USER_HOME/init.d/repos.gradle &&                 echo \'}\' >> $GRADLE_USER_HOME/init.d/repos.gradle && \n                # ---- patch settings.gradle to use local react-native CLI (avoids npx failures) ----\n                sed -i \'s/autolinkLibrariesWithCommand()/autolinkLibrariesWithCommand("node node_modules\\/.bin\\/react-native config")/\' settings.gradle 2>/dev/null || true && \n                # ---- clean gradle ----\n                (./gradlew clean || true) && \n                # ---- pre-resolve AAR transforms so CMake finds prefab paths ----\n                ./gradlew :app:dependencies --configuration debugCompileClasspath --no-daemon > /dev/null 2>&1 || true && \n                # ---- enable ABI splits ----\n                if grep -q \'splits\' app/build.gradle 2>/dev/null; then                     sed -i \'s/enable false/enable true/\' app/build.gradle || true;                 else                     sed -i \'/^android[[:space:]]*{/a\\    splits {\\n        abi {\\n            reset()\\n            enable true\\n            universalApk false\\n            include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"\\n        }\\n    }\' app/build.gradle || true;                 fi && \n                # ---- build debug apk ----\n                ./gradlew assembleDebug --no-daemon || exit 1 && \n                APK_PATH="app/build/outputs/apk/debug"\n\n                if ! ls $APK_PATH/*.apk 1> /dev/null 2>&1; then\n                    echo "ERROR: APK not generated"\n                    exit 1\n                fi\n                # ---- copy output ----\n                cp app/build/outputs/apk/debug/*.apk /output/\n\n                # ---- copy TPL metadata ----\n                [ -f ../package.json ] && cp ../package.json /output/ || true\n                [ -f ../package-lock.json ] && cp ../package-lock.json /output/ || true\n                [ -f ../yarn.lock ] && cp ../yarn.lock /output/ || true\n                [ -f ../pnpm-lock.yaml ] && cp ../pnpm-lock.yaml /output/ || true\n                [ -f app/build.gradle ] && cp app/build.gradle /output/android-build.gradle || true\n                [ -f build.gradle ] && cp build.gradle /output/root-build.gradle || true\n                [ -f build.gradle.kts ] && cp build.gradle.kts /output/root-build.gradle.kts || true\n                [ -f settings.gradle ] && cp settings.gradle /output/ || true\n                [ -f settings.gradle.kts ] && cp settings.gradle.kts /output/ || true\n                [ -f gradle/libs.versions.toml ] && cp gradle/libs.versions.toml /output/ || true\n                find . -name "*.gradle" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true\n                find . -name "*.gradle.kts" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/ 2>/dev/null; done || true\n                mkdir -p /output/libs\n                find . -name "*.jar" -not -name "gradle-wrapper.jar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true\n                find . -name "*.aar" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true\n                find . -name "*.so" 2>/dev/null | grep -v "/build/" | grep -v "/.gradle/" | grep -v "/node_modules/" | while read f; do cp "$f" /output/libs/ 2>/dev/null; done || true\n                    ']' returned non-zero exit status 1.
