找不到类android.support.v4.widget.Space

时间:2015-08-10 10:52:25

标签: android github android-studio android-support-library

我将一个项目从github存储库克隆到我的个人计算机,该计算机正在使用类android.support.v4.widget.Space,我正在尝试运行它,但它总是给我同样的错误:

Error:(6, 33) error: cannot find symbol class Space

在我的gradle.build中,我有以下依赖项:

compile files('libs/pinit-sdk-1.0.jar')
compile project(':bounceScroller')
compile 'com.ogaclejapan.smarttablayout:library:1.2.1@aar'
compile 'com.facebook.android:facebook-android-sdk:4.1.0'
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.github.navasmdc:MaterialDesign:1.5@aar'
compile 'com.nineoldandroids:library:2.4.+'
compile 'com.esri.arcgis.android:arcgis-android:10.2.6-2'
compile 'com.github.clans:fab:1.5.3'
compile 'com.github.pedrovgs:draggablepanel:1.8'
compile 'com.android.support:support-v4:21.0.3'
compile 'com.ogaclejapan.smarttablayout:utils-v4:1.2.1@aar'
compile 'com.github.bumptech.glide:glide:3.6.0'
compile project(':rangeseekbar')
compile 'com.android.support:recyclerview-v7:21.0.3'
compile 'com.android.support:cardview-v7:21.0.3'
compile project(':blurry')

我尝试搜索谷歌,发现类Space退出Android支持库,有人知道如何解决这个问题吗?

1 个答案:

答案 0 :(得分:1)

将您的support-v4依赖关系从21.0.3升级到22.1.0,因为它已在该版本中添加。

http://developer.android.com/tools/support-library/index.html#revisions