Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Running Android App on Emulator arm64-v8a #2885

Open
Hygens opened this issue Jan 15, 2025 · 0 comments
Open

Error Running Android App on Emulator arm64-v8a #2885

Hygens opened this issue Jan 15, 2025 · 0 comments
Labels

Comments

@Hygens
Copy link

Hygens commented Jan 15, 2025

Describe the bug

I have used the started guide: https://docs.infinite.red/ignite-cli/Guide/
Executed: yarn android and get:

yarn android
yarn run v1.22.22
$ expo run:android
› Opening emulator Pixel_9_Pro_Fold_API_35
› Building app...
NOTE: Picked up JDK_JAVA_OPTIONS: --add-exports java.base/sun.net.www.protocol.http=ALL-UNNAMED
Configuration on demand is an incubating feature.

> Configure project :expo

Using expo modules
  - expo-application (6.0.2)
  - expo-asset (11.0.2)
  - expo-constants (17.0.4)
  - expo-file-system (18.0.7)
  - expo-font (13.0.3)
  - expo-keep-awake (14.0.2)
  - expo-linking (7.0.4)
  - expo-localization (16.0.1)
  - expo-modules-core (2.1.3)
  - expo-splash-screen (0.29.20)
  - expo-system-ui (4.0.7)


> 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 :expo-constants:createExpoConfig
Warning: Root-level "expo" object found. Ignoring extra keys in Expo config: "name", "displayName", "ignite"
Learn more: https://expo.fyi/root-expo-object

> Task :app:processDebugMainManifest
/home/jose/react_native_projs/PizzaApp/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
/home/jose/react_native_projs/PizzaApp/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 :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]'.
> NOTE: Picked up JDK_JAVA_OPTIONS: --add-exports java.base/sun.net.www.protocol.http=ALL-UNNAMED

* 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 1m
431 actionable tasks: 195 executed, 236 from cache
Error: /home/jose/react_native_projs/PizzaApp/android/gradlew 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: /home/jose/react_native_projs/PizzaApp/android/gradlew 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 (/home/jose/react_native_projs/PizzaApp/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 maybeClose (node:internal/child_process:1101:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
    ...
    at spawnAsync (/home/jose/react_native_projs/PizzaApp/node_modules/@expo/spawn-async/src/spawnAsync.ts:28:21)
    at spawnGradleAsync (/home/jose/react_native_projs/PizzaApp/node_modules/@expo/cli/src/start/platforms/android/gradle.ts:134:28)
    at assembleAsync (/home/jose/react_native_projs/PizzaApp/node_modules/@expo/cli/src/start/platforms/android/gradle.ts:83:16)
    at runAndroidAsync (/home/jose/react_native_projs/PizzaApp/node_modules/@expo/cli/src/run/android/runAndroidAsync.ts:48:24)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Here I have Ubuntu 24.04 with:
Kernel: 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Android tools: 35, 34, 33

Java: openjdk-21-jdk-headless

IDE: VSCode Version:

Image

Ignite version

latest

Additional info

Additional Info:

System
  platform           linux                                                       
  arch               x64                                                         
  cpu                8 cores      AMD Ryzen Embedded V1605B with Radeon Vega Gfx 
  directory          PizzaApp     /home/jose/react_native_projs/PizzaApp         

JavaScript (and globally-installed packages)
  node               22.13.0      /home/jose/.nvm/versions/node/v22.13.0/bin/node 
  npm                10.9.2       /home/jose/.nvm/versions/node/v22.13.0/bin/npm  
    corepack         0.30.0                                                       
    npm              10.9.2                                                       
    yarn             1.22.22                                                      
  yarn               1.22.22      /home/jose/.nvm/versions/node/v22.13.0/bin/yarn 
  pnpm               -            not installed                                   
  bun                -            not installed                                   
  expo               52.0.25      managed                                         

Ignite
  ignite-cli         10.1.4       /home/jose/.npm/_npx/e31027f3785124a8/node_modules/.bin/ignite      
  ignite src         build        /home/jose/.npm/_npx/e31027f3785124a8/node_modules/ignite-cli/build 

Android
  java               21.0.5       /usr/bin/java          
  android home       -            /home/jose/Android/Sdk 

Tools
  git                git version 2.43.0   /usr/bin/git 
@Hygens Hygens added the bug label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant