corymsmith / react-native-fabric

A React Native library for Fabric, Crashlytics and Answers
MIT License
1.31k stars 236 forks source link

A problem occurred configuring project ':app'. > Could not resolve all dependencies for configuration ':app:_debugApk'. > Project :app declares a dependency from configuration 'compile' to configuration 'default' which is not declared in the descriptor for project :react-native-fabric #117

Closed deathemperor closed 7 years ago

deathemperor commented 7 years ago

Installed with react-native 0.43, I applied all the instructions for Android. When I build I got the error

"A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugApk'. Project :app declares a dependency from configuration 'compile' to configuration 'default' which is not declared in the descriptor for project :react-native-fabric"

NickKotowski commented 7 years ago

+1

yuri-htt commented 7 years ago

+1

jaimeagudo commented 7 years ago

I experienced a similar issue due duplicated addition of libraries

@deathemperor Check you don't have any duplicates on your android/app/src/main/java/com/[YOUR_PROJECT_NAME]/MainApplication.java android/settings.gradle

Hope it helps

deathemperor commented 7 years ago

not sure if @jaimeagudo comment helps but after I upgraded to RN 0.44.2 and integrate from fresh it works.

AtNovember commented 6 years ago

i got tha same prob. Stack overflow says just do:

react-native upgrade

And it start work! here is the link https://stackoverflow.com/a/34995870/5834287

anubhav210 commented 6 years ago

Please run this command react-native upgrade. This command will ask replace existing file or not. If you want to replace a particular file press Y and hit enter button or press N. After completing this command than run command react-native link. This command will link all dependencies than you can run command react native run-android /ios. This issue create when you uninstall some dependencies so sometimes it do not update build files like setting.gradle build.gradle etc.