我正在尝试编译 Google 在协议缓冲区上给出的这个示例: https ://developers.google.com/protocol-buffers/docs/javatutorial
它带有一个 ListPeople.java 和 AddPerson.java 文件以及一堆导入。问题是我收到“无法解析导入 com.example”,如此屏幕截图所示:
http://postimg.org/image/67whg6a57/full/
This is the full path of the import com.example java file:
http://postimg.org/image/wexoc4sez/full/
and where all of my files are located:
http://postimg.org/image/4veseacpn/full/
我尝试执行以下操作:
Project->Clean
File->Refresh
Property->Java build path->add external JAR:
http://postimg.org/image/xjrqhievv/full/
这些都没有工作。问题是什么?