user86715
user86715

Reputation: 51

I'm doing the "first app" lessons on Android Developers, but the app will not run

http://developer.android.com/training/basics/firstapp/running-app.html

That's the page I'm on. So far it's been pretty simple, because besides naming the app "My First App", it hasn't had me change a thing.

However, when I click Run or even try to click Run As, Eclipse tells me that there's a error in the project,though the red X is only on the project name, and is nowhere else to be found.

Normally when I have done Java programming, the code where the error was could be found easily, but I can't in here. Furthermore, I don't see why there is an error, seeing as the code in here seems to be a template "Hello World!" app, that I have not altered once.

I've tried starting over again several times, but each time it always tells me that the app can't launch because my "project contains errors".

Upvotes: 5

Views: 195

Answers (5)

Anirudha Agashe
Anirudha Agashe

Reputation: 3530

Right click on the project Properties -> Android and make sure appropriate target is set.

Upvotes: 0

user86715
user86715

Reputation: 51

Deleted the ~/.android directory, re-run AVD manager and then rebuild project. Thanks everyone!

Upvotes: 0

idan
idan

Reputation: 2170

i had the same prob, it could be from xml files. try to clean the project and if it not work so try to look in string file maby you have ' (Apostrophe) char in some string , chack if there is eror in console, if you have error tell as what you see

also look this Q

unable to get debug signature key for my android application

Upvotes: 1

levengli
levengli

Reputation: 1121

I had a similar experience. Cleaning the project did it all the good in the world

Upvotes: 0

user2483079
user2483079

Reputation: 533

I had this problem earlier and I think it's just a loading issue. Try restarting Eclipse, it worked for me.

Upvotes: 0

Related Questions