本文介绍了Crouton所依赖的库,但不是库本身的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的是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' }更多推荐
Crouton所依赖的库,但不是库本身
发布评论