-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
At first in complained about JAVA_HOME. after setting that it worked a lot on "Gradle"
then this
PS C:\Work\todoist-clone-react-native> npx expo run:android
› Opening emulator My-Phone
› Building app...
Configuration on demand is an incubating feature.
> Configure project :app
ℹ️ Applying gradle plugin 'expo-dev-launcher-gradle-plugin' (expo-dev-launcher@5.0.29)
> Configure project :expo
Using expo modules
- expo-application (6.0.2)
- expo-asset (11.0.4)
- expo-blur (14.0.3)
- expo-clipboard (7.0.1)
- expo-constants (17.0.7)
- expo-crypto (14.0.2)
- expo-dev-client (5.0.12)
- expo-dev-launcher (5.0.29)
- expo-dev-menu (6.0.19)
- expo-dynamic-app-icon (1.2.0)
- expo-file-system (18.0.11)
- expo-font (13.0.4)
- expo-haptics (14.0.1)
- expo-json-utils (0.14.0)
- expo-keep-awake (14.0.3)
- expo-linking (7.0.5)
- expo-manifests (0.15.6)
- expo-modules-core (2.2.2)
- expo-secure-store (14.0.1)
- expo-splash-screen (0.29.22)
- expo-sqlite (15.0.6)
- expo-system-ui (4.0.8)
- expo-web-browser (14.0.2)
> Configure project :react-native-mmkv
[react-native-mmkv] Thank you for using react-native-mmkv ❤️
[react-native-mmkv] If you enjoy using react-native-mmkv, please consider sponsoring this project: https://github.com/sponsors/mrousavy
> Configure project :react-native-reanimated
Android gradle plugin: 8.6.0
Gradle: 8.10.2
> Task :app:mergeDebugResources FAILED
ERROR: C:\Work\todoist-clone-react-native\android\app\src\main\res\mipmap-hdpi\default.png: Resource and asset merger: default is not a valid resource name (reserved Java keyword)
ERROR: C:\Work\todoist-clone-react-native\android\app\src\main\res\mipmap-mdpi\default.png: Resource and asset merger: default is not a valid resource name (reserved Java keyword)
ERROR: C:\Work\todoist-clone-react-native\android\app\src\main\res\mipmap-xhdpi\default.png: Resource and asset merger: default is not a valid resource name (reserved Java keyword)
ERROR: C:\Work\todoist-clone-react-native\android\app\src\main\res\mipmap-xxhdpi\default.png: Resource and asset merger: default is not a valid resource name (reserved Java keyword)
ERROR: C:\Work\todoist-clone-react-native\android\app\src\main\res\mipmap-xxxhdpi\default.png: Resource and asset merger: default is not a valid resource name (reserved Java keyword)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> C:\Work\todoist-clone-react-native\android\app\src\main\res\mipmap-hdpi\default.png: Error: default is not a valid resource name (reserved Java keyword)
C:\Work\todoist-clone-react-native\android\app\src\main\res\mipmap-mdpi\default.png: Error: default is not a valid resource name (reserved Java keyword)
C:\Work\todoist-clone-react-native\android\app\src\main\res\mipmap-xhdpi\default.png: Error: default is not a valid resource name (reserved Java keyword)
C:\Work\todoist-clone-react-native\android\app\src\main\res\mipmap-xxhdpi\default.png: Error: default is not a valid resource name (reserved Java keyword)
C:\Work\todoist-clone-react-native\android\app\src\main\res\mipmap-xxxhdpi\default.png: Error: default is not a valid resource name (reserved Java keyword)
* 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.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 20s
199 actionable tasks: 7 executed, 192 up-to-date
Error: C:\Work\todoist-clone-react-native\android\gradlew.bat app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64,arm64-v8a exited with non-zero code: 1
Error: C:\Work\todoist-clone-react-native\android\gradlew.bat app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64,arm64-v8a exited with non-zero code: 1
at ChildProcess.completionListener (C:\Work\todoist-clone-react-native\node_modules\@expo\spawn-async\src\spawnAsync.ts:67:13)
at Object.onceWrapper (node:events:639:26)
at ChildProcess.emit (node:events:524:28)
at ChildProcess.cp.emit (C:\Work\todoist-clone-react-native\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1101:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
...
at spawnAsync (C:\Work\todoist-clone-react-native\node_modules\@expo\spawn-async\src\spawnAsync.ts:28:21)
at spawnGradleAsync (C:\Work\todoist-clone-react-native\node_modules\@expo\cli\src\start\platforms\android\gradle.ts:134:28)
at assembleAsync (C:\Work\todoist-clone-react-native\node_modules\@expo\cli\src\start\platforms\android\gradle.ts:83:16)
at runAndroidAsync (C:\Work\todoist-clone-react-native\node_modules\@expo\cli\src\run\android\runAndroidAsync.ts:48:24)
Any idea how to fix this?
Thanks
Metadata
Metadata
Assignees
Labels
No labels