The declared package does not match the expected package

The declared package does not match the expected package。


1、选中项目右击选择Build Path-->再选择Configure Build Path; 
2、选择“Source”标签,把“***”改为“***/src”,ok。(***代表你工程路径)

原文地址:https://www.cnblogs.com/suanec/p/4844128.html