Android开发——Package is not specified in the manifest file

前言

在开发当中难免不会遇到代码重构,我这次在开发中遇到的是Package is not specified in the manifest file,这是表示清单文件中没有指定包。

复现这个错误的出现过程

这个错误是我在xml文件当中需要Extract dimension resource时候出现的。
这里写图片描述

解决的办法

很尴尬的事情出现,原来我删除之前没有用的资源的时候,不小心将AndroidManifest.xml文件删除了。去其他项目copy一份包名修改成正在做的项目就好。

猜你喜欢

转载自blog.csdn.net/chengxu_kuangrexintu/article/details/79650360