0
votes

I'm new to Android Studio im facing the below error.

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :floatinglibrary. Show Details Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :datetimepickerlibrary. Show Details Affected Modules: app

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :BottomBar. Show Details Build. Gradle App Affected Modules: app enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

1
Could you please add your build.gradle - OneCricketeer

1 Answers

0
votes

You are using 3 libraries: floatinglibrary, datetimepickerlibrary and BottomBar. But gradle cannot find these libraries where you told it that they are.

In your build.gradle you define the dependency as implementation project(:BottomBar). :BottomBar is a reference to a library. You can also find this reference in your settings.gradle file where you can also set the file path to it like this:

include ':BottomBar', ':other', ':libraries'

project(':BottomBar').projectDir = new File('the/file/path')

where "this/file/path" ist relative to the project root.

In rare cases AndroidStudio gets confused due to caching issues. So you may also try File -> Invalid Caches and restart in the Android Studio menu.

Another reason may be found here: Android studio 3.0: Unable to resolve dependency for :app@dexOptions/compileClasspath': Could not resolve project :animators