Package name does not correspond to the file path......
来源:互联网 发布:航天开票软件升级 编辑:程序博客网 时间:2024/05/22 17:40
这两天下载了一个别人的开源项目, 打算看一下里面的代码学习一番, 但是, as一直报红线提示, 虽然编译运行没问题, 但是, 看着不爽啊....就试着解决, 但是, 常用的alt+enter组合并没有解决我的问题, 我去stackoverflow看了一下, 按照里面的票数最高的回复, 似乎也没解决的了(还有原因是因为英语实在看着不舒服...懒得看下去了)
所以, 我还是继续百度, 不过没什么结果, 我回到as, 仔细的观察了一下, 坑爹, 终于发现了问题所在, 原来是作者建立的package名字出问题了, 看图:
可能因为我改成正确的了, 现在再次改为错误的写法,反而错误提示没出来, 你们注意, package的名称首字母是小写的!!!!不能大写的!!!!
我不知道你们遇到这种情况是不是因为跟我一样, 不过记得多检查一下, 多半是因为自己的代码不够规范造成的.
阅读全文
0 0
- AS-package name does not correspond to the file path
- Package name does not correspond to the file path......
- java.lang.UnsatisfiedLinkError,(A file or directory in the path name does not exist.
- extjs [W] Ext.data.Store created with no model. The name 'RCP.model.WeChatUser' does not correspond
- cannot be resolved to absolute file path because it does not reside in the file system
- cannot be resolved to absolute file path because it does not reside in the file system
- maven构建 出错:cannot be resolved to absolute file path because it does not reside in the file system
- source file does not belong to the project being debugged
- the declared package does not match 解决办法
- 解决:The declared package..does not match the expected package..
- The declared package "" does not match the expected package
- The declared package does not match the expected package
- The declared package "" does not match the expected package "javaControlSql"
- The declared package does not match the expected package
- The declared package does not match the expected package
- The declared package does not match the expected package
- The declared package..does not match the expected package
- Eclipse: The declared package does not match the expected package
- Android Studio中Git的配置及协同开发
- 双飞翼布局
- Java list 对象 排序
- 带你学C带你飞
- iOS-音视频播放的简单实现
- Package name does not correspond to the file path......
- 华为推送 坑点 自定义intent
- python | gtts 将文字转化为语音内容
- 【C++】第4章 复合类型 知识总结
- 资讯精选 | 互联网+时代_企业如何进行研发效能体系快速升级?
- 用jxl Workbook 创建,修改Excel表格
- Deepin下安装nginx
- tf.pack()
- js 获取浏览器版本信息(全)