简体   繁体   中英

Can't work on my java projects in Eclipse Juno

I used to work in Eclipse Luna and had many projects in my workspace. Then I decided to start coding for Android and downloaded the ADT bundle from here . I imported my Luna workspace and it worked fine. However, whenever I open a class I get cannot be resolved errors everywhere on what used to be flawless code. What difference in packages is causing this? Why can't I write and compile Java in Juno?

Note that I don't see the errors in the package explorer on the left: 在此处输入图片说明

Your jdk is missing or incorrect. Check in ur build path of the project. Your jre is probably still referencing the old location.

You should create a new workspace and import your project folder by folder, omitting the folders generated by eclipse for the workspace to function properly.

for todo this: file>import>android>android exsisting proyect

select your project -> properties(Alt+Enter) ->Java Build Path -> Order and Export-> make sure android 4.1.1 or your target os Checkbok is selected. 在此处输入图片说明

if not then select click okay clean and rebuild the project. hope you will get your solution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM