Eclipse: The declared package does not match the expected package

后端 未结 13 581
挽巷
挽巷 2020-12-25 09:03

I have a problem importing an external project. I go File -> Import... -> Existing Projects into Workspace, choose the folder where the project is located and everything is

13条回答
  •  伪装坚强ぢ
    2020-12-25 09:43

    Just go into the build path and change the source path to be src/prefix1 instead of src.

    It may be easiest to right-click on the src directory and select "Build Path / Remove from build path", then find the src/prefix1 directory, right-click it and select "Build Path / Use as source folder".

提交回复
热议问题