Pure solution:
- Right click on your project.
- Select "Android Tools"
- Select "Add Support Library."
- Install the appropriate support library (latest)
I can not answer the question of why this problem occurs, but I assume that the Android team does not provide the Android support library, because it is constantly changing, so do not get hung up on some old version, they want us to supply it by yourself.
If errors still persist or new errors appear, right-click the project again and select "Android Tool" β "Fix Project Properties"
Update: In response to my answer, the way to remove the remaining errors is to import the project in a different way than you.
- Choose File β New β Other
- Click "Next"
- Write an Android Sample
- Select a sample Android application and click Next.
Now add the Android support libraries as described above. However, you will get errors. To fix this, follow these steps:
- Right-click the project and select "Properties"
- Choose Android
- Select an SDK version of 3.0 or greater.
- Select "OK" and clear the project in the project menu.
- Done; -)
Now you will not be able to run a sample project on devices below Android 3.0. The reason is due to some dependencies on some themes and settings that were not added before Android 3.0.
It doesn't make sense why Google did it, but they did it. You can try to remove the specific dependencies of SDK +11 (Android 3.0), but it will take some time - there are more errors than you actually see, especially in XML files.
source share