Android 构建工具的自定义 XML 错误 (0.4.2) -- 在包'xxx.xxxx.'中找不到属性'gapWidth'的资源标识符



更新到最新的Android Build工具(0.4.2),并在试图组装时遇到以下问题:

/AndroidApp/App/构建/res//味道/调试/布局/fragment.xml: 84:错误:包'com.viewpagerindicator'中没有找到属性'gapWidth'的资源标识符

RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/build/res/com.viewpagerindicator" android:layout_width="match_parent" android:layout_height="match_parent" >

由于flavor可能使用不同的包名,因此不需要在自定义命名空间中指定包名,而是使用:'http://schemas.android.com/apk/res-auto'。

更新您的自定义XML链接路径以使用build而不是apk

Was,在fragment.xml文件中xmlns:app="http://schemas.android.com/apk/res/com.viewpagerindicator"

现在,对于这个:xmlns:app="http://schemas.android.com/build/res/com.viewpagerindicator"

最新更新