Raf*_*afa 5 android actionbarsherlock android-support-library
我继承了一个由于任何原因而使用ActionBarSherlock的项目,即使它是一年前编写的。无论如何,它是在Android Studio v2.0上编写的,目标是android版本19。我更新为AS 3.2,构建工具更新为28,所以当我编译时
Android resource linking failed: resource android:attr/popupPromptView is private
看起来从Sherlock生成的代码正在尝试访问现在私有的android资源popupPromptView
。
查看生成的文件,看起来它像是用于微调器
<declare-styleable name="SherlockSpinner">
<!--
Reference to a layout to use for displaying a prompt in the dropdown for
spinnerMode="dropdown". This layout must contain a TextView with the id
@android:id/text1 to be populated with the prompt text.
-->
<attr name="android:popupPromptView"/>
</declare-styleable>
Run Code Online (Sandbox Code Playgroud)
我正在使用版本19的支持库
implementation 'com.android.support:support-v4:19.1.0'
Run Code Online (Sandbox Code Playgroud)
因此,由于即使在构建工具和android studio进行了更新的情况下,我仍然使android sdk保持不变,Sherlock难道还不能访问相同的库功能吗?
我将淘汰Sherlock,但是暂时是否有办法解决这个错误?
归档时间: |
|
查看次数: |
185 次 |
最近记录: |