The project cannot be built until the build path errors are resolved.

前端 未结 20 925
半阙折子戏
半阙折子戏 2020-12-07 11:14

While compiling an android project in eclipse 3.4.2, I am getting The project cannot be built until the build path errors are resolved.

I got a

20条回答
  •  轮回少年
    2020-12-07 11:29

    I was getting an additional warning

    The compiler compliance specified is 1.6 but a JRE 1.8 is used
    

    Resolving this warning make the error also go away. The steps are as follows:

    I right-clicked on it, then clicked on Quick Fix. From the dialog that opened I selected Open the Compiler Compliance property page, and clicked the Finish button.

    (This is same as Java Compiler section.)

    In this dialog I found the Compiler compliance level drop down and changed 1.6 to 1.8, and clicked on Apply and close.

    I got a message box Compiler Settings Changed which asked if I wanted to Build the project now?. I clicked on Yes.

    The build path error went away.

提交回复
热议问题