• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Project error while running app

Hello Friends,

I am very new to development on android.

I am doing a sample project it was running fine till few hours back but now when i run it it won't run just says "your project contains errors. please fix them before running your application". I can't figure what from where the error is generated. Can some one please tell me how i can figure out from where the error is coming.

I am using Eclipse.

I have attached the code. Please please some one help

massive thanks
 

Attachments

It contains no errors for me, try to restart eclipse and see if that helps

edit: Also In your section where you initialize your buttons don't use View continueButton=findViewById(R.id.continue_button); Instead use Button continueButton = (Button)findViewByID(R.id.continue_button);
 
hi,
thanks for the quick response.

As advised i have restarted the application let alone application i have restarted my laptop as well, nothing works.

I am attaching the error message and and the red cross i m seeing. Please see and advise

thanks
 

Attachments

  • error.jpg
    error.jpg
    127.6 KB · Views: 144
  • error1.jpg
    error1.jpg
    247.4 KB · Views: 107
Whenever I get an error that doesn't seem to have any reason for it, project -> clean fixes it.
 
i did the clean thing and it got rid of the red cross sign from the root folder of my project but i can see a new error in the console window which says "[2010-07-02 02:28:20 - TestSudoku] Could not find TestSudoku.apk!
"


Please advise
 
Hello sir, My Name is Dharmik.!!!
I am completely new to android..!!!
and eclipse ide too.!!!!
I got following errors.. so plz help me to fix it.!!

Errors:
[2011-12-05 12:15:13 - HelloWorld] --non-constant-id
[2011-12-05 12:15:13 - HelloWorld] Make the resources ID non constant. This is required to make an R java class
[2011-12-05 12:15:13 - HelloWorld] that does not contain the final value but is used to make reusable compiled
[2011-12-05 12:15:13 - HelloWorld] libraries that need to access resources.
 
Hello sir, My Name is Dharmik.!!!
I am completely new to android..!!!
and eclipse ide too.!!!!
I got following errors.. so plz help me to fix it.!!

Errors:
[2011-12-05 12:15:13 - HelloWorld] --non-constant-id
[2011-12-05 12:15:13 - HelloWorld] Make the resources ID non constant. This is required to make an R java class
[2011-12-05 12:15:13 - HelloWorld] that does not contain the final value but is used to make reusable compiled
[2011-12-05 12:15:13 - HelloWorld] libraries that need to access resources.


Keep scrolling up through the errors. You've posted the end of the aapt usage. Somewhere higher up you see a line "Android Asset Packaging Tool". Above that I would predict there being an error line that caused aapt to output its usage. What is that line?
 
Back
Top Bottom