Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Android library projects cannot be launched"?

Tags:

android

Now I am totally confused by this error message: Android library projects cannot be launched.

I carefully checked the build path and library, everything seems "OK", and there is no error on Problems view, however, when I tried to run my application as an Android project, it failed and showed that message.

Any explanation for why it's happening is appreciated!

like image 900
Dev.Sinto Avatar asked Nov 26 '10 04:11

Dev.Sinto


2 Answers

From Android's Developer Documentation on Managing Projects from Eclipse with ADT:

Setting up a Library Project

Next, set the project's Properties to indicate that it is a library project:

  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, open your project properties, un-select the "Is Library" checkbox, and click Apply to make your project a normal Android project (not a library project).

like image 186
Archie Avatar answered Oct 11 '22 14:10

Archie


Through the this steps you can .

  1. In Eclipse , Right Click on Project from Package Explorer.
  2. Select Properties,.
  3. Select Android from Properties pop up window,
  4. See "Is Library" check box,
  5. If it is checked then Unchecked "Is Library" check box.
  6. Click Apply and than OK.
like image 45
Rishi Gautam Avatar answered Oct 11 '22 15:10

Rishi Gautam