score:232

Accepted answer

it's not enough to have just compile project("xy") dependency. you need to configure root project to include all modules (or to call them subprojects but that might not be correct word here).

create a settings.gradle file in the root of your project and add this:

include ':progressfragment'

to that file. then sync gradle and it should work.

also one interesting side note: if you add ':unexistingproject' in settings.gradle (project that you haven't created yet), gradle will create folder for this project after sync (at least in android studio this is how it behaves). so, to avoid errors with settings.gradle when you create project from existing files, first add that line to file, sync and then put existing code in created folder. unwanted behavior arising from this might be that if you delete the project folder and then sync folder will come back empty because gradle sync recreated it since it is still listed in settings.gradle.

score:-4

i got similar error after deleting a subproject, removed

"*compile project(path: ':mysubproject', configuration: 'android-endpoints')*"

in build.gradle (dependencies) under gradle scripts

score:0

i got solution after 3 days of struggle..

must include that dependacies name with version in 'settings.gradle' file..

            include ':paytabs_sdk-v4.0.1'
            include ':dtapl-3.5.3'

☻♥ done keep code

score:1

if igor's answer doesn't work, chances are you are missing the colon(:) before referring the project name.

omitting it gives the exact same error.

ensure you are including the project with the : as prefix

include ':progressfragment'

score:5

remove all the texts in android/settings.gradle and paste the below code

rootproject.name = '****your project name****'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applynativemodulessettingsgradle(settings)
include ':app'

this issue will usually happen when you migrate from react-native < 0.60 to react-native >0.60. if you create a new project in react-native >0.60 you will see the same settings as above mentioned


Related Query

More Query from same tag