pmadruga / react-native-clean-project

Automating the clean up of a React Native project
MIT License
1.17k stars 52 forks source link

Adding this package to react-native 0.60.4 as dev dependency breaks android build #22

Closed Pita closed 5 years ago

Pita commented 5 years ago

Just the fact that this is added as a dependency breaks the android build. Not sure why. I have a guess that @react-native-community/cli-platform-android/native_modules.gradle searches for modules starting with 'react-native' and tries to add them as native dependencies and then gets confused with this name.

react-native init test2
cd test2
yarn add -D react-native-clean-project
yarn react-native run-android
yarn run v1.17.3
$ /private/tmp/test2/node_modules/.bin/react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 855 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
info Installing the app...
Starting a Gradle Daemon, 1 busy and 3 stopped Daemons could not be reused, use --status for details
<-------------> 0% INITIALIZING [6s]
> Evaluating settings <-- GETS STUCK HERE
pmadruga commented 5 years ago

Thanks for this! Can you elaborate on how you pinpoint this library as being the root cause? Just curious.

Edit: nevermind, got it.