android studio在真机测试时突然解析错误,不能安装。if you get this warning for a class which is not actually an inner

if you get this warning for a class which is not actually an inner class,it is because you are using uppercase characters in your package name

一开始找了好久,以为是sdk版本弄错了,结果翻译一下这段话的意思是:“如果您对一个实际上不是内部类的类得到警告,那是因为您在包名中使用大写字符。”这个错误是在AndroidManifest.xml中声明activity时,有一段黄色的提示,在name那里,一开始没注意,原来是放这个Activity的包的名字有大写字母。把包的大写字母改成小写就好了搞了我几个小时,在此记录一下。

猜你喜欢

转载自blog.csdn.net/weixin_40119478/article/details/81014144
今日推荐