安卓小错误(一)

时间:2023-01-21 20:11:19

attrs,xml 里面定义属性,有重复的属性时编译报错 

Error: Found item Attr/font more than one time Error: Execution failed for task 

//定义属性

<attr name="titleTextSize" format="dimension" />

<attr name="titleTextColorRes" format="reference" />

//使用属性

<declare-styleable name="SettingItemView">    

<attr name="titleTextSize" />    <attr name="titleTextColorRes" /></declare-styleable>

<declare-styleable name="FilterView">    

<attr name="titleTextSize" />    <attr name="titleTextColorRes" /></declare-styleable>

 




java.lang.UnsatisfiedLinkError: Native method not found

只要在app的build.gradle中添加如下代码,然后rebuild.

安卓小错误(一)

multiDexEnabled true解释

http://blog.csdn.net/y505772146/article/details/64130833