I tried every suggestion above but nothing works for me. I am on Windows 11 and it is super frustrating that I am stuck with this and I needed to run and test Google Auth (react-native-google-signin).
Below is full log:
I tried every suggestion above but nothing works for me. I am on Windows 11 and it is super frustrating that I am stuck with this and I needed to run and test Google Auth (react-native-google-signin).
Below is full log:
D:\test-app>npx expo run:android
› Building app...
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by net.rubygrapefruit.platform.internal.NativeLibraryLoader in an unnamed module (file:/C:/Users/Saad/.gradle/wrapper/dists/gradle-8.10.2-all/7iv73wktx1xtkvlq19urqw1wm/gradle-8.10.2/lib/native-platform-0.22-milestone-26.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
Configuration on demand is an incubating feature.
> Configure project :app
ℹ️ Applying gradle plugin 'expo-dev-launcher-gradle-plugin' ([email protected])
> Configure project :expo
Using expo modules
- expo-asset (11.0.4)
- expo-blur (14.0.3)
- expo-constants (17.0.8)
- expo-dev-client (5.0.15)
- expo-dev-launcher (5.0.31)
- expo-dev-menu (6.0.21)
- 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.7)
- expo-modules-core (2.2.3)
- expo-splash-screen (0.29.22)
- expo-system-ui (4.0.8)
- expo-web-browser (14.0.2)
> Configure project :react-native-reanimated
Android gradle plugin: 8.6.0
Gradle: 8.10.2
> Task :react-native-reanimated:configureCMakeDebug[arm64-v8a] FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-reanimated:configureCMakeDebug[arm64-v8a]'.
> WARNING: A restricted method in java.lang.System has been called
* 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 36s
593 actionable tasks: 228 executed, 350 from cache, 15 up-to-date
Error: D:\test-app\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: D:\test-app\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 (D:\test-app\node_modules\@expo\spawn-async\src\spawnAsync.ts:67:13)
at Object.onceWrapper (node:events:629:26)
at ChildProcess.emit (node:events:514:28)
at ChildProcess.cp.emit (D:\test-app\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1105:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:305:5)
...
at spawnAsync (D:\test-app\node_modules\@expo\spawn-async\src\spawnAsync.ts:28:21)
at spawnGradleAsync (D:\test-app\node_modules\@expo\cli\src\start\platforms\android\gradle.ts:134:28)
at assembleAsync (D:\test-app\node_modules\@expo\cli\src\start\platforms\android\gradle.ts:83:16)
at runAndroidAsync (D:\test-app\node_modules\@expo\cli\src\run\android\runAndroidAsync.ts:48:24)