Closed PattyGeorgi closed 6 years ago
Do you have
repositories {
jcenter()
google()
}
somewhere in your .gradle file? Our library is in the jCenter repository and the Android support library in the google repository.
I added the google() to my .gradle but it still doesn't work.
buildscript { repositories { jcenter() mavenCentral() google() } dependencies { classpath 'com.android.tools.build:gradle:2.3.2' classpath 'com.google.gms:google-services:3.0.0' } }
Does it maybe have to do with the gradle version. I'm unfortunately not able to upgrade it yet as of project reasons. Do you have another idea why it can't be resolved?
I just upgraded gradle to 3.0.0 and I still get the same error message.
Is it maybe possible to add you lib as a module or jar to an android studio project?
You don't only need the jcenter and google repositories inside buildscript { ... }
, but also in either allprojects { ... }
in the top-level build.gradle file or in the build.gradle file of the project itself. (see e.g. here)
Of course, you can also copy the multiline-collapsingtoolbar folder from our repository into your project to add it as a module. But still, you need the google repository for getting the support library.
Closing because of inactivity
Hi everyone, I tried adding the multiline-collapsingtoolbar to my android studio project but somehow it doesn't work. I always get the folloging error:
Failed to resolve: net.opacapp:multiline-collapsingtoolbar:1.6.0
I already tried everything that is suggested to fix this problem on the internet...but without any success. Does it maybe have to do with a specific gradle version or other dependency versions? Please help me!