支持v4库中缺少DrawableWrapper

时间:2016-09-01 14:47:49

标签: android android-support-library

我尝试用像这样的maven依赖替换android-support-v13库的本地jar。

compile files('libs/android-support-v13.jar')

替换为

compile 'com.android.support:support-v13:21.0.0'

但是,当我尝试编译此导入失败时

import android.support.v4.graphics.drawable.DrawableWrapper;

此类是否已从支持库中删除?

1 个答案:

答案 0 :(得分:0)

尝试: func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) { let cell = collectionView.cellForItemAtIndexPath(indexPath) as! MenuCollectionViewCell cell.backgroundImageView.image = UIImage(named: "selected") // handle tap events collectionView.reloadItemsAtIndexPaths([indexPath]) }

支持库的第21版很旧,因此可能不包含所需的类。