jamonholmgren / react-native-colo-loco

Colocate your native modules and components with your JavaScript/JSX files.
292 stars 12 forks source link

Can't locate source folder on Android #2

Closed a7medev closed 2 years ago

a7medev commented 2 years ago

I created a new app using npx react-native init MyApp then installed and set up colo-loco using yarn install-colo-loco The iOS version works well, while the Android one doesn't. Whenever I run yarn android I get this error:

Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

The problem I guess is that it's looking for the "app" folder (Source folder I picked in the install script) in the .gradle/daemon folder (I changed "app" to "src" and got an error with .../.gradle/daemon/src does not exist.

a7medev commented 2 years ago

I fixed it and submitted a PR #3