Android 错误:不支持的类型';添加资源';在安卓工作室
我现在正在将Eclipse项目迁移到Android Studio。 当我构建项目时,我在Android 错误:不支持的类型';添加资源';在安卓工作室,android,Android,我现在正在将Eclipse项目迁移到Android Studio。 当我构建项目时,我在gradle处遇到以下错误 \...\res\values\strings.xml >"Error: Unsupported type 'add-resource'" strings.xml的问题行是: <add-resource type="string" name="default_folder_name" /> 我怎样才能解决这个问题 提前感谢。 而不是这个, <add
gradle
处遇到以下错误
\...\res\values\strings.xml
>"Error: Unsupported type 'add-resource'"
strings.xml的问题行是:
<add-resource type="string" name="default_folder_name" />
我怎样才能解决这个问题
提前感谢。
而不是这个,
<add-resource type="string" name="default_folder_name" />
<add-resource type="dimen" name="custom_cling_margin_top" />
<add-resource type="dimen" name="custom_cling_margin_right" />
<add-resource type="dimen" name="custom_cling_margin_left" />
用这个,
<string name="default_folder_name"/>
<dimen name="custom_cling_margin_top"/>
<dimen name="custom_cling_margin_right"/>
<dimen name="custom_cling_margin_left"/>
而且,不是这个,
<add-resource type="string" name="default_folder_name" />
<add-resource type="dimen" name="custom_cling_margin_top" />
<add-resource type="dimen" name="custom_cling_margin_right" />
<add-resource type="dimen" name="custom_cling_margin_left" />
用这个,
<string name="default_folder_name"/>
<dimen name="custom_cling_margin_top"/>
<dimen name="custom_cling_margin_right"/>
<dimen name="custom_cling_margin_left"/>
打开strings.xml
并搜索添加资源
。发布你的string.xml文件我想eclipse会对你的strings.xml中的那一行有问题。也请回答。