i'm on Android Studio with an React Native project. Works fine on Xcode but A/S side i get a bunch of errors i'm not familiar with:-
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :react-native-firebase.
Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :react-native-firebase.
Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve project :react-native-firebase.
Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve project :react-native-firebase.
Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve project :react-native-firebase.
Assume i need to run the equivalent of an npm install somewhere? Or add in React Native Firebase somewhere? or remove it?
Bizarrely React Native Firebase is NOT in my pkg json dependencies at all. I just use the web api for that - it only exists in Android Studio.
Help?
Sounds like you've answered your own question. You need to npm install it, and then either react-native link it or manually add it to your settings.gradle, app/build.gradle, and MainApplication class.
Have a look at the official setup guide.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With