Jerielle
Jerielle

Reputation: 7520

Cant run simple android program using Eclipse

I am studying Android now and I am really a newbie in this. I am using Eclipse with Android. I already installed all the files under Android 5.0.1 (API 21) and also all the Tools. Then I try to create my simple "hello world example" but I got a lot of errors.

Here are my errors:

enter image description here

enter image description here

Can you help me with this?

Upvotes: 0

Views: 24

Answers (2)

ʍѳђઽ૯ท
ʍѳђઽ૯ท

Reputation: 16976

Make sure you've added AppCompat on below picture:

enter image description here

That problem comes from AppCompat as you can see, seems like that library has a problem and you should follow this tutorial:

Following are the steps:

Paste the android-support-v7-appcompat.jar that you have downloaded in libs folder of your project.

Right click on your project, select Build Path -> Configure build path. Select Library Tab then Add Jar option and browse your recently added v7 jar and click OK.

That should fix the problem.

Android actionbar how to add supporting library v7 appcompat for Eclipse

And i suggest you to use AndroidStudio.

Upvotes: 1

FrancescoAzzola
FrancescoAzzola

Reputation: 2654

It seems you have some problems with styles, anyway i suggest to use Android Studio if you start from the beginning.

Upvotes: 2

Related Questions