![](/img/trans.png)
[英]Android - Error:String types not allowed (at 'imageViewScramble' with value '')
[英]String types not allowed (at 'android:importantForAccessibility' with value 'noHideDescendants')
我正在嘗試使用其Fabric SDK將Twitter Login集成到我的應用程序中。
我的應用程序對minSDKVersion
, targetSDKVersion
和compileSDKVersion
的要求是17
。 我經歷了Android Studio插件提供的向導,並且在構建項目時遇到以下錯誤...
Error:(107, 56) String types not allowed (at 'android:importantForAccessibility' with value 'noHideDescendants').
我看到noHideDescendants
是一個有效的價值importantForAccessibility
在Android的文檔
錯誤來自Twitter SDK的中間構建文件,其values.xml
tw__CompactAttributionLine
中為tw__CompactAttributionLine
values.xml
。
有人知道解決此問題的方法嗎?
公共靜態最終int IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS
API級別19中已添加該視圖對於可訪問性並不重要,其任何后代視圖也不重要。
常數值:4(0x00000004)
參考: http : //developer.android.com/reference/android/view/View.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.