1. Download our Official Android App: Forums for Android!

"Android library projects cannot be launched"?

Discussion in 'Android Lounge' started by gshshaohui, Nov 19, 2010.

  1. gshshaohui

    gshshaohui Lurker
    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    2
    Joined:
    Nov 19, 2010

    Nov 19, 2010
    2
    0
    25
    Hi all,
    Now I am totally confused by this error message: Android library projects cannot be launched. I carefully checked build path and library, everything is OK. And there is no error in Problems view. However, when I tried to run my application as a Android project, it failed and showed this message.
    What does really happen in my code? Any ideas?
    Thank you in advance!
     

    Advertisement

  2. aptgopal

    aptgopal Newbie
    Rank:
    None
    Points:
    15
    Posts:
    22
    Joined:
    Dec 7, 2010

    Dec 7, 2010
    22
    0
    15
    Done the following things
    1. In the Package Explorer, right-click the library project and select Properties.
    2. In the Properties window, select the "Android" properties group at left and locate the Library properties at right.
    3. Select the "is Library" checkbox and click Apply.
    4. Click OK to close the Properties window.

    So, you open your project properties and "unselect" "is Library" checkbox and click Apply to make your project a normal Android project (not a library project).
     

Share This Page

Loading...