1. Check out our companion app, Forums for Android! Download from Google Play

Project error while running app

Discussion in 'Application Development' started by sood.is.in, Jul 1, 2010.

  1. sood.is.in

    sood.is.in New Member
    Thread Starter
    5

    Jun 28, 2010
    4
    0
    5
    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
    36

    Jun 13, 2010
    29
    1
    36
    School :/
    Wisconsin
    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
    Thread Starter
    5

    Jun 28, 2010
    4
    0
    5
    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
    36

    Jun 13, 2010
    29
    1
    36
    School :/
    Wisconsin
    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
    Thread Starter
    5

    Jun 28, 2010
    4
    0
    5
    Hi,

    I've attached the message.

    Please advise
     

    Attached Files:

  6. Jacob Malliet

    Jacob Malliet Active Member
    36

    Jun 13, 2010
    29
    1
    36
    School :/
    Wisconsin
    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
    53

    Apr 30, 2010
    375
    35
    53
    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
    Thread Starter
    5

    Jun 28, 2010
    4
    0
    5
    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
    5

    Dec 5, 2011
    1
    0
    5
    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
    63

    Oct 27, 2011
    191
    36
    63
    Sydney, Australia

    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...