Crouton所依赖的库,但不是库本身

编程入门 行业动态 更新时间:2024-10-24 08:31:12
本文介绍了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所依赖的库,但不是库本身

本文发布于:2023-10-18 12:53:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1504282.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Crouton

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!