The declared package "com.dao" does not match the expected package "src.c

Posted liguangsunls

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The declared package "com.dao" does not match the expected package "src.c相关的知识,希望对你有一定的参考价值。

  今天把项目代码上传到svn后出现例如以下错误:The declared package "com.dao" does not match the expected package "src.com.dao"

解决方式是:选中项目右击选择 Build Path --> 选择 Configure Build Path -->选择“Source”标签,把“项目Name”改为“项目Name/src”。问题解决!(我又一次编译项目也没实用)

操作截图例如以下:

技术分享



以上是关于The declared package "com.dao" does not match the expected package "src.c的主要内容,如果未能解决你的问题,请参考以下文章

如何处理Eclipse错误消息 The declared package does not match the expected package

ValueError: The field authtoken.Token.user was declared with a lazy reference to 'api.user',

请教:The buyer shall declare the loading period

Actionscript Error: declaration must be contained within the <Declarations; tag, since it is not

Actionscript Error: declaration must be contained within the <Declarations; tag, since it is not

White space is required before the encoding pseudo attribute in the XML declaration.