DEV Community

Discussion on: Run React Native Android App On Mac M1

Collapse
 
emrekorpe profile image
EmreKorpe

hi ravi,

I installed it on my macbook pro computer with m1 chip by following all the steps you specified. IOS works fine on the emulator, but the android keeps crashing.

  • 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 help.gradle.org

    at makeError (/Users/emrekorpe/Desktop/App/tester/node_modules/execa/index.js:174:9)
    at /Users/emrekorpe/Desktop/App/tester/node_modules/execa/index.js:278:16
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async runOnAllDevices (/Users/emrekorpe/Desktop/App/tester/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:106:5)

    at async Command.handleAction (/Users/emrekorpe/Desktop/App/tester/node_modules/react-native/node_modules/@react-native-community/cli/build/index.js:186:9)

    I have tried many versions such as android studio and gradle for days, but I have not been successful.
    Android Studio : Arctic Fox 2020.1.3
    Gradle : 7.0.2
    Gradle Wrapper Properties : 7.0.2-all.zip
    I researched and tested many solutions like stopping daemon.I look forward to helping you. thanks