Android Studio export apk error: Error: Expected resource of type styleable [ResourceType]
Android Studio export apk error: Error: Expected resource of type styleable [ResourceType]
在android工作室,当我想生成signed apk时,导致以下错误:
Error:Error: Expected resource of type styleable [ResourceType]
这个Class是:https://github.com/astuetz/PagerSlidingTabStrip
如何修复错误?
PagerSlidingTabStrip
class:
`values/attrs.xml
https://github.com/astuetz/PagerSlidingTabStrip/blob/master/library/res/values/attrs.xml
如果您使用的是已签名的 apk,请使用
@SuppressWarnings("ResourceType")
以抑制警告。解决它。
搜索"TypedArray".
在 "TypedArray" 中的 class 之前添加 @SuppressWarnings("ResourceType")。
例如,
@SuppressWarnings("ResourceType")
public PagerSlidingTabStrip(Context context, AttributeSet attrs,
int defStyle) {...
}
在android工作室,当我想生成signed apk时,导致以下错误:
Error:Error: Expected resource of type styleable [ResourceType]
这个Class是:https://github.com/astuetz/PagerSlidingTabStrip
如何修复错误?
PagerSlidingTabStrip
class:
`values/attrs.xml
https://github.com/astuetz/PagerSlidingTabStrip/blob/master/library/res/values/attrs.xml
如果您使用的是已签名的 apk,请使用
@SuppressWarnings("ResourceType")
以抑制警告。解决它。
搜索"TypedArray".
在 "TypedArray" 中的 class 之前添加 @SuppressWarnings("ResourceType")。 例如,
@SuppressWarnings("ResourceType")
public PagerSlidingTabStrip(Context context, AttributeSet attrs,
int defStyle) {...
}