Mohammad
Mohammad

Reputation: 41

Android target API - Can't create project with activity

I've a problem while creating a project.

When I want to create a simple project with blank activity, I can't proceed the steps and I receive this message:

This template requires a build target API version of at least 14, and the current is 7

Upvotes: 0

Views: 3450

Answers (2)

solarin olakunle
solarin olakunle

Reputation: 11

This did it for me:

In Eclipse, click on the project menu, and then click on properties, the project properties interface will load. In the "Android Properties" ensure you check the check box of the build target with the higher API number (in this case API 14) in the error you are getting.

Upvotes: 1

Mdlc
Mdlc

Reputation: 7288

Most Templates use Features like the ActionBar or Fragments.

If you want to create an app from a template that is backwards compatible.

This is how you can create a compatible template using the wizard:

  1. Right click your package explorer > New > Android Application
  2. Enter your details, and make sure to select "none" as theme
  3. Pick the highest possible Minimum SDK that fits your needs
  4. When you arrive at the "Create Activity" Screen, select "Blank Activity"
  5. Finish.

If you would like more features to start with, you can also pick a sample from the SDK (like ActionBarCompat) and use that as a template for your app.

Upvotes: 1

Related Questions