有谁知道是什么引起"包名称不是有效的包名和QUOT;添加一个新的布局时? [英] Does anyone know the what's causing "Package name is not a valid package name" when adding a new layout?

查看:409
本文介绍了有谁知道是什么引起"包名称不是有效的包名和QUOT;添加一个新的布局时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在每一个项目我做,新的或以其他方式收到此错误。

I've receiving this error in every project I make, new or otherwise.

我已经尝试重新安装Android的工作室新鲜,没有任何运气,我也搜罗互联网确切的错误并没有什么似乎来了。

I've attempted reinstalling Android Studio fresh without any luck and I've also scoured the Internet for the exact error and nothing seems to be coming up.

有没有人有当我添加一个新的布局我的项目是什么导致了这个错误的想法?

Does anyone have an idea of what's causing this error when I add a new layout to my project?

推荐答案

随着你的截图显示,当前的包名是布局,但也许你不有一个包名为布局,所以存在这样的错误。

As your screenshot shows,current package name is layout,but maybe you don't have a package named layout,so such error existed.

如果您想布局文件添加到你的项目,你应该右键点击布局资源文件夹中的文件夹,并创建一个布局文件。

If you want to add a layout file to your project,you should right click layout folder under res folder,and create a layout file.

这篇关于有谁知道是什么引起"包名称不是有效的包名和QUOT;添加一个新的布局时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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