Project error while running app


Last Updated:

  1. sood.is.in

    sood.is.in New Member This Topic's Starter

    Joined:
    Jun 28, 2010
    Messages:
    4
    Likes Received:
    0
    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
     

    Attached Files:


    Advertisement
  2. Jacob Malliet

    Jacob Malliet Active Member

    Joined:
    Jun 13, 2010
    Messages:
    29
    Likes Received:
    1
    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);
     
  3. sood.is.in

    sood.is.in New Member This Topic's Starter

    Joined:
    Jun 28, 2010
    Messages:
    4
    Likes Received:
    0
    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
     

    Attached Files:

  4. Jacob Malliet

    Jacob Malliet Active Member

    Joined:
    Jun 13, 2010
    Messages:
    29
    Likes Received:
    1
    Click the button in the bottom left of your screen and select problems. When does it say under that?
     
  5. sood.is.in

    sood.is.in New Member This Topic's Starter

    Joined:
    Jun 28, 2010
    Messages:
    4
    Likes Received:
    0
    Hi,

    I've attached the message.

    Please advise
     

    Attached Files:

  6. Jacob Malliet

    Jacob Malliet Active Member

    Joined:
    Jun 13, 2010
    Messages:
    29
    Likes Received:
    1
    Hey,

    Try right clicking the project then click source, than clean up. If that doesn't work check out this site Unparsed aapt error
     
  7. cp1

    cp1 Well-Known Member

    Joined:
    Apr 30, 2010
    Messages:
    375
    Likes Received:
    35
    Whenever I get an error that doesn't seem to have any reason for it, project -> clean fixes it.
     
  8. sood.is.in

    sood.is.in New Member This Topic's Starter

    Joined:
    Jun 28, 2010
    Messages:
    4
    Likes Received:
    0
    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
     
  9. Dharmik

    Dharmik New Member

    Joined:
    Dec 5, 2011
    Messages:
    1
    Likes Received:
    0
    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.
     
  10. jiminaus

    jiminaus Well-Known Member

    Joined:
    Oct 27, 2011
    Messages:
    191
    Likes Received:
    36

    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?
     

Share This Page

Loading...