简体   繁体   中英

Eclipse: Tons of Errors in Android Application

I imported my current Android Project to Eclipse on my (Mac OS) device via SVN. The code shows up alright, but Ecipse shows tons of errors (see screenshot) which do not appear on the device I first used - I am not very experienced with Eclipse but I guess some libraries were not imported? I installed the current JRE(1.7), Eclipse, the Android plugin which also installed the current Android SDK (4.1). Any clues?!

错误显示如下

  1. Right click on Project -> Android Tools -> Fix Project Properties
  2. Go to menu -> Project -> Clean

For that go to each java file import all required packages or try CTRL + SHIFT + O

then resolve all errors in RES folder.

Then it will generate R.java for you

then import yourpakagename.R; where ever required.

remove import android.R;

hope this will help you

Place the sdk path in Window->Preference->android .

在此处输入图片说明 And then Click apply. If you already do it. Then right click the project and goto Properties->android->select android version

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