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?!
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.