无法在 hybris 中解析导入 de.hybris.platform.core.model.user.UserModel

The import de.hybris.platform.core.model.user.UserModel cannot be resolved in hybris

全部。起初,一切正常,但在 ant build The import de.hybris.platform.core.model.user.UserModel cannot be resolved 错误出现后。我检查了位置,没有 UserModel 了。我做了 ant clean all 它构建成功,在 eclipse 中做了 project -> clean 几次但是错误钢存在。知道如何解决这个问题。

检查您是否在 IDE 中导入了 platform 项目,然后刷新。

只需清理您的 eclipse 工作-space 然后 运行 ant clean all at platform directory

正如@Udaib Khan 所说,清理日食工作 - space 和 run ant all 在平台工作。但是每当我在代码中更改 smth 时,问题就会再次出现。我通过未选中的 Eclipse (Project-->Build Automatically).

解决了它