thecodingmachine / react-native-boilerplate

A React Native template for building solid applications 🐙, using JavaScript 💛 or Typescript 💙 (you choose).
https://thecodingmachine.github.io/react-native-boilerplate/
MIT License
4.66k stars 852 forks source link

Application is not running in android(adb). #406

Closed MashoodAli-Official closed 5 months ago

MashoodAli-Official commented 5 months ago

react-native environment setup

Description

Hi! I'm encountering an issue when attempting to run the React Native boilerplate (template app) on an Android virtual device (Screenshot #1). I am using version 4.0.0 of the boilerplate and React Native 0.72. I set up the React Native environment just a day ago, and everything is up-to-date with the latest prerequisite libraries and SDK on my system. Even i did not make minor change in the code but still not working . But the app works perfectly fine on iOS.

However, when I try to create and run a simple React Native project using "npx react-native@latest init AwesomeProject," it runs successfully on both iOS and Android. . (Screenshot # 01) Please help me in this issue.

Version

4.0.0

Do you use TypeScript?

On which OS this issue appear on?

Desktop OS

macOS Sonoma 14.0

JeremyDolle commented 5 months ago

Seems to be related to mmkv and reanimated dependencies. Try to reinstall them

MashoodAli-Official commented 5 months ago

Seems to be related to mmkv and reanimated dependencies. Try to reinstall them

I have reinstalled the dependencies and even removed them one by one. However, the problem persists. Even after removing one dependency, the terminal continues to show the issue with the next dependency.

Screenshot 02

As you can see in Screenshot #02, I have removed the MMKV, Reanimated, and Flipper dependencies. However, the terminal now displays the "something went wrong" error related to the Gesture Handler dependency.

JeremyDolle commented 5 months ago

What is the exact error ?

MashoodAli-Official commented 5 months ago

What is the exact error ?

Please have a look at this screenshot ![Uploading Screenshot 2024-02-15 at 2.57.00 PM.png…]()

JeremyDolle commented 5 months ago

did you follow this kind of issue: https://github.com/mrousavy/react-native-mmkv/issues/563. maybe double check the cmake installation. cannot reproduce on my side

JeremyDolle commented 5 months ago

Close due to inactivity. Feel free to re-open if needed.

MashoodAli-Official commented 5 months ago

@JeremyDolle Hi there!

I have fixed the problem; you can say I have found the solution. I tried running the app on both the simulator and emulator simultaneously. The app runs immediately on iOS, but when I attempt to run it on Android, it gives the same error, prompting me to delete the libraries one after another. To resolve this, I opened the same project in Android Studio and tried running the app. After the Gradle build, the application ran successfully. During this process, the application remained connected with VS Code as well. As you can see in the attached screenshot, I made a change, and it reflected on both the Android and iOS sides.

screenshot