I tried the same in Eclipse, and I saw in most files, there was a failed import:
import android.support.v4.app.DialogFragment; import android.support.v4.app.FragmentActivity;
So what I did to fix this was:
- Right-click on your project ("Support4Demos") in the left navigation menu.
- Click "Properties."
- Click "Java Build Path" in the left navigation pane.
- Click the "Add External Banks" button on the right.
- Go to: "\ android-sdk \ extras \ android \ compatible \ v4"
- Select "android-support-v4.jar", then click "Open," then click "OK."
- Left-click on your project ("Support4Demos").
- Click "Project" at the top, then click "Clear", then click "Good."
The last two steps may not be necessary. But when you do all this, he can fix it. You also need to fix any error in the XML file.
EDIT:
Try the following:
- Right click on your project and select "Properties"
- Select "Android."
- Make sure it is installed on Android 3.2 or higher.
Android 3.2 was when the Holo theme was introduced.
Jakar source share