将布局分组到子目录中后,未注册Android Studio URI [英] Android Studio URI is not registered after grouping layouts into subdirectory

查看:66
本文介绍了将布局分组到子目录中后,未注册Android Studio URI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将Android项目的布局分为几个子目录.我一直在关注这个答案.

解决方案

您的xml文件必须位于名为"layout"的文件夹中

I tried grouping the layout for my Android project into several subdirectories. I was following this answer.

https://stackoverflow.com/a/32194963/688954

But somewhat the IDE complains URI is not registered and the Gradle build also says Error:Error: Unsupported type 'android.support.design.widget.CoordinatorLayout'.

Can anyone help?

I'm using build tools version 24.0.1

解决方案

Your xml file must be in the folder which is named "layout"

这篇关于将布局分组到子目录中后,未注册Android Studio URI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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