IntelliJ- Android模式URI未注册 [英] IntelliJ- Android Schema URI not registered

查看:124
本文介绍了IntelliJ- Android模式URI未注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个使用Gradle的Android应用程序.但是,在.xml文件和Android清单中,Android模式的URL为未注册".

I'm programming an Android app that uses Gradle. However, in the .xml files and Android Manifest, the URL for Android Schemas are "Not registered".

这个问题一直很麻烦,并花费了数小时试图将其修复.我已经浏览过:

This problem has been a nuisance and have spent hours trying to get it fixed. I have looked through:

1: Intellij Android项目架构URI是否未注册?

2:如果我更改外部库: AndroidManifest,无法解析文件

我不能仅仅创建一个新项目,因为此应用程序不仅由我自己开发,还由一个小团队开发.该代码也在GitHub上.其次,即使我尝试创建一个新项目,这些架构仍未注册.

I cannot just create a new project because this application is not only developed only by me but a small team. The code is also on GitHub as well. Secondly, even if I try to create a new project, the Schemas are still not registered.

Eclipse不是一个选择,因为它们不正式支持Gradle集成. (除非您找到了Android应用程式专用的Gradle外挂程式).我还安装了Android Studio,但是即使没有更多错误,我仍然会遇到相同的错误.

Eclipse is not an option because they do not officially support Gradle integration. (unless you have found a Gradle plugin that is SPECIFIC to android applications). I also have installed Android Studio, but I still get the same errors, if not more errors.

我当前正在使用Intelli-J社区版

I am currently using Intelli-J community edition

推荐答案

对我来说,唯一起作用的是添加模拟活动,并在Flavor包上单击鼠标右键,选择新->活动>空活动",选择合适的来源在对话框中设置名称和程序包名称,并在活动"创建后解决问题.我后来删除了模拟活动,但没有带来任何问题.

For me the only thing worked was add mock Activity with right click on the Flavour package, choose "new->activity>empty activity", choose the fit source set and package name in the dialog, and after the Activity created the problem solved. I deleted the mock activity later and it not brought any problem.

这篇关于IntelliJ- Android模式URI未注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆