的IntelliJ Android项目架构URI没有注册?没有注册、架构、项目、IntelliJ

2023-09-06 08:09:31 作者:打不倒的小乖兽

我用的IntelliJ CE 10.5我的Andr​​oid项目,并遇到了一个奇怪的错误。 我的项目可以通过Eclipse和Ant进行构建,并且还下的IntelliJ编译。然而,所有的XML和清单文件显示: 的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android URI没有设置注册| IDE设置|资源

我试图忽视和手动创建这一点,但它并没有工作了。

任何人都遇到了类似的问题?我没有问题瓦特/ Android的SDK 2.x的,但是这是一个蜂巢3.0的项目,所以只是想知道有没有关系。

感谢

解决方案   

如果IntelliJ IDEA的找不到指定的DTD或模式,它们是   标记为错误。在这种情况下,特殊的用意行动建议   到:

     

解析引用,如果重新psented作为一个URL $ P $。映射URI到   本地文件。永久忽略它。一个被忽略的URI不会   突出显示为错误更多,直到从忽略列表中删除。   添加XSI的架构位置对外部资源。一个特殊的属性是   加点空间位置。为您的XML文件配置模式。   为XML文件的架构可以基于检测配置   架构在项目源代码和库位于本地。

从这里开始 - > http://goo.gl/heQCv

I'm using intellij CE 10.5 for my android projects and ran into a weird error. My project can be built by Eclipse and Ant, and also compiles under intellij. However, all the xml and manifest files are showing: xmlns:android="http://schemas.android.com/apk/res/android URI not registered in Settings | IDE Settings | Resources.

在导Android项目的时候,没有R文件,怎么办

I tried ignore and manually create this but it didn't work out.

Anyone ran into similar issue? I didn't have problem w/ android SDK 2.x but this is a honeycomb 3.0 project, so just wondering if that matters.

thanks

解决方案

If IntelliJ IDEA cannot find the specified DTD or schema, they are marked as errors. In this case special intention actions are suggested to:

Resolve the reference, if it is represented as a URL. Map a URI to a local file. Permanently ignore it. An ignored URI will not be highlighted as an error any more, until removed from the ignore list. Add Xsi schema location for external resources. A special attribute is added to point namespace location. Configure schema for your XML file. The schema for your XML file can be configured based on detecting schemas located locally in project sources or libraries.

From here--> http://goo.gl/heQCv