2016-08-20 80 views
0

我正在寻找图像选择器/选择器的图书馆。 github上有很多库(相机和库),但所有这些伟大的代码都使用API​​ 23. 我使用API​​ 22,正如你所预测的那样,存在冲突。图书馆是API 23,我正在使用API​​ 23 - android图像选择器

Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. 
Error:(34) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'. 

大多与这,什么意思是我无法用API 22

使用它有什么办法解决?如果不是,你知道一些较老的图书馆吗? API 22是必须为我,我不能使用API​​ 23.

回答

0

您可以尝试使用下面的代码在你的AndroidManifest.xml利用图书馆给力:

<uses-sdk 
    tools:node="merge" 
    android:minSdkVersion="22" 
    android:targetSdkVersion="24"/> 

但是,这是不是推荐的方式,因为该库可以使用API​​级别23的特定代码。因此,它可以使您的应用程序崩溃。

您也可以尝试分叉库并更改库以满足您的最低SDK要求。

对于其他图像采集器库,请尝试访问http://android-arsenal.com/tag/157

相关问题