Hey, today I coded an app using react-native and expo.
I aleready builded an version of the app but now i can’t build anymore.
When I run: expo prebuild
I become the following response:
$ expo-cli prebuild
This command is being executed with the global Expo CLI. Learn more: https://blog.expo.dev/the-new-expo-cli-f4250d8e3421
To use the local CLI instead (recommended in SDK 46 and higher), run:
› npx expo prebuild
√ The android project is malformed, would you like to clear the project files and reinitialize them? ... yes
✔ Cleared android code
✔ Created native project | gitignore already synced
✔ Updated package.json and added index.js entry point for iOS and Android
📦 Using npm to install packages.
✔ Cleaned JavaScript dependencies 11577ms
✔ Installed JavaScript dependencies 79258ms
✖ Config sync failed
[android.dangerous]: withAndroidDangerousBaseMod: Project file "MainApplication" does not exist in android project for root "W:\Workspace\[GitHub]\lvckyencrypt-v3"
When I try to run expo build:android
I become a response from “Running gradle” with the following response:
[stderr] /root/.gradle/caches/transforms-3/933b1f5f2047e9e20e4541e989803929/transformed/material-1.5.0/res/values/values.xml:238:4: Invalid <color> for given resource value.
> Task :app:processReleaseMainManifest
/app/turtle/workingdir/android/sdk46/android-shell-app/app/src/main/AndroidManifest.xml:134:5-139:39 Warning:
activity#com.facebook.FacebookActivity@android:theme was tagged at AndroidManifest.xml:134 to replace other declarations but no other declaration present
/app/turtle/workingdir/android/sdk46/android-shell-app/app/src/main/AndroidManifest.xml:23:9-32:20 Warning:
provider#expo.modules.filesystem.FileSystemFileProvider@android:authorities was tagged at AndroidManifest.xml:23 to replace other declarations but no other declaration present
> Task :app:processReleaseManifest
> Task :app:processReleaseManifestForPackage
> Task :app:processReleaseJavaRes NO-SOURCE
> Task :app:mergeReleaseShaders
> Task :app:compileReleaseShaders NO-SOURCE
> Task :app:generateReleaseAssets UP-TO-DATE
> Task :app:mergeReleaseNativeLibs
> Task :app:mergeReleaseAssets
> Task :app:stripReleaseDebugSymbols
> Task :app:mergeReleaseArtProfile
> Task :app:compressReleaseAssets
> Task :app:collectReleaseDependencies
> Task :app:mergeReleaseResources FAILED
> Task :app:sdkReleaseDependencyData
> Task :app:validateSigningRelease
> Task :app:extractReleaseNativeSymbolTables
> Task :expo:compileReleaseKotlin
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:mergeReleaseResources'.
[stderr] > A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
[stderr] > Resource compilation failed. Check logs for details.
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 38s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
45 actionable tasks: 45 executed
Unable to list file systems to check whether they can be watched. The whole state of the virtual file system has been discarded. Reason: Could not query file systems: could not open mount file (errno 2: No such file or directory)
Error: ./gradlew exited with non-zero code: 1
at ChildProcess.completionListener (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:52:23)
at Object.onceWrapper (events.js:482:26)
at ChildProcess.emit (events.js:375:28)
at ChildProcess.emit (domain.js:470:12)
at maybeClose (internal/child_process.js:1055:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
...
at spawnAsync (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:17:21)
at spawnAsyncThrowError (/app/turtle/node_modules/@expo/xdl/build/detach/ExponentTools.js:201:45)
at buildShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:986:11)
at async Object.createAndroidShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:397:5)
at async runShellAppBuilder (/app/turtle/build/builders/android.js:102:9)
at async Object.buildAndroid [as android] (/app/turtle/build/builders/android.js:50:28)
at async build (/app/turtle/build/jobManager.js:181:33)
at async processJob (/app/turtle/build/jobManager.js:118:32)
at async Object.doJob (/app/turtle/build/jobManager.js:49:5)
at async main (/app/turtle/build/server.js:66:13)
After 3 hours of Googleing I don’t know what I have to do.
Can someone help me out please?
Kind Regards
Iven | LvckyAPI