"Android library projects cannot be launched"?


Last Updated:

  1. gshshaohui

    gshshaohui New Member This Topic's Starter

    Joined:
    Nov 19, 2010
    Messages:
    2
    Likes Received:
    0
    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 Member

    Joined:
    Dec 7, 2010
    Messages:
    22
    Likes Received:
    0
    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...