Closed sahad00 closed 1 month ago
Did you try running Metro with --reset-cache
?
Tried @szymonrybczak its stuck at 0% , tried for an hour no progress , If I downgrade works cool
hey, that's not a Metro bundler 😅 That's output from Gradle - to fix this scenario you can try running:
./gradlew clean && ./gradlew —stop
and once again run npx react-native run-android
@szymonrybczak I have tried this the ./gradlew clean itself is stuck
for someone who needs an answer ,
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
removing this solved this , this piece of code is not required on newer RN versions on settings.gradle
"resolutions": { "@react-native-community/cli": "^13.0.0", "@react-native-community/cli-config": "^13.0.0", "@react-native-community/cli-debugger-ui": "^13.0.0", "@react-native-community/cli-doctor": "^13.0.0", "@react-native-community/cli-platform-android": "^13.0.0", "@react-native-community/cli-platform-ios": "^13.0.0", "@react-native-community/cli-server-api": "^13.0.0", "@react-native-community/cli-tools": "^13.0.0", "@react-native-community/cli-types": "^13.0.0" },
if I don't add resolution to 13 , default is 14 compatible with react native 0.75 my metro bundler is stuck at 0% for so long once I added this resolution on one step downgrade the build is successful, what may be the reason ?