2016-08-20 82 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

相關問題