Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crouton depends on libraries but is not a library itself

I'm using Android Studio 0.6.1, with Crouton library and today after gradle sync I got next error:

Error:A problem occurred configuring root project 'project_name'. Module version de.keyboardsurfer.android.widget:crouton:1.8.4 depends on libraries but is not a library itself 

That's going on?

like image 899
IlyaEremin Avatar asked Jun 27 '14 11:06

IlyaEremin


1 Answers

This issue due to com.android.support-v4 recent update.

So I changed

compile 'com.android.support:support-v4:20.+' 

to

compile 'com.android.support:support-v4:19.1.+' 

and crouton works fine

Different workaround is to use @aar:

compile('de.keyboardsurfer.android.widget:crouton:1.8.4@aar') {     exclude group: 'com.google.android', module: 'support-v4' } 
like image 189
IlyaEremin Avatar answered Sep 21 '22 03:09

IlyaEremin