我使用的是Android 0.6.1工作室,与 Crouton 库今天摇篮同步后,我得到一个错误:
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
这是怎么回事?
这个问题是由于com.android.support-V4最新的更新。
This issue due to com.android.support-v4 recent update.
于是我改变了
compile 'com.android.support:support-v4:20.+'
到
compile 'com.android.support:support-v4:19.1.+'
和crouton正常工作
and crouton works fine
不同的解决方法是使用@aar:
Different workaround is to use @aar:
compile('de.keyboardsurfer.android.widget:crouton:1.8.4@aar') {
exclude group: 'com.google.android', module: 'support-v4'
}