Answer the question
In order to leave comments, you need to log in
Why doesn't HelloWordl start in Eclipse (Android)?
Hello, I installed Android Developmend tools from the google site (Eclips)
I create a project:
Minimum Reguired SDK: 2.3.3
Target SDK: 2.3.3
Compile with: 2.3.3
Does not let go further Create Activity - This template requires a build target API version of at at least 14, and the current version is 10.
Decided to create under 4.2.2
Chose: Minimum Reguired SDK: 4.2.2, Target SDK: 4.2.2, Compile with: 4.2.2
Then errors:
Description Resource Path Location Type
The import android.support.v7.app cannot be resolved MainActivity.java /Project_1/src/ru/chvalov/project_1 line 3 Java Problem
ActionBarActivity cannot be resolved to a type MainActivity.java /Project_1/src/ru/chvalov/project_1 line 18 Java Problem
The method onCreate(Bundle) of type MainActivity must override or implement a supertype method MainActivity.java /Project_1/src/ru/chvalov/project_1 line 17 Java Problem
ActionBarActivity cannot be resolved to a type MainActivity.java /Project_1/src/ru/chvalov/project_1 line 14 Java Problem
The import android.support.v7.app cannot be resolved MainActivity.java /Project_1/src/ru/chvalov/project_1 line 4 Java Problem
The method setContentView(int) is undefined for the type MainActivity MainActivity.java /Project_1/src/ru/chvalov/project_1 line 19 Java Problem
The method getSupportFragmentManager() is undefined for the type MainActivity MainActivity.java /Project_1/src/ru/chvalov/project_1 line 22 Java Problem
The method onCreateOptionsMenu(Menu) of type MainActivity must override or implement a supertype method MainActivity.java /Project_1/src/ru/chvalov/project_1 line 30 Java Problem
The method getMenuInflater() is undefined for the type MainActivity MainActivity.java /Project_1/src/ru/chvalov/project_1 line 33 Java Problem
The method onOptionsItemSelected(MenuItem) of type MainActivity must override or implement a supertype method MainActivity.java /Project_1/src/ru/chvalov/project_1 line 38 Java Problem
ActionBarActivity cannot be resolved to a type MainActivity.java /Project_1/src/ru/chvalov/project_1 line 46 Java Problem
Answer the question
In order to leave comments, you need to log in
The site startandroid.ru solved this problem a long time ago. Everything is described in detail there. I advise you to go there.
The developers have worked so hard! Now the minimum API is 14 under Androyd if I'm not mistaken 4.0. There are two ways to solve this situation 1 - Download the old SDK and do not update, Second go to the XML file and manually change the minimum API version. In general, with the new update for inexperienced users, I had big problems for 2 days tinkering
Firstly, if possible, it's better to throw out Eclipse and install Android Studio from the same Google site where the SDK was taken
. Secondly, make sure that you have added all the necessary dependencies in the project settings. Well, it would be nice to show the MainActivity code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question