“Android library projects cannot be launched”?

后端 未结 8 1206
梦毁少年i
梦毁少年i 2020-12-07 17:24

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

I carefully checked the build path and library, every

相关标签:
8条回答
  • 2020-12-07 17:46

    In Eclipse Project -> Clean Modify project.properties like this :

    target=android-10
    android.library.reference.1=F:/svn/WiEngine_library
    
    0 讨论(0)
  • 2020-12-07 17:51

    Through the following steps you can do it .

    In Eclipse window , Right Click on your Project from Package Explorer. 1. Select Properties, 2. Select Android from Properties, 3. Check "Is Library" check box, 4. If it is checked then Unchecked "Is Library" check box. 5. Click Apply and than OK.

    0 讨论(0)
  • 2020-12-07 18:04

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

    0 讨论(0)
  • 2020-12-07 18:05

    It says “Android library projects cannot be launched” because Android library projects cannot be launched. That simple. You cannot run a library. If you want to test a library, create an Android project that uses the library, and execute it.

    0 讨论(0)
  • 2020-12-07 18:06

    our project surely is configured as "library" thats why you get the message : "Android library projects cannot be launched."

    right-click in your project and select Properties. In the Properties window -> "Android" -> uncheck the option "is Library" and apply -> Click "ok" to close the properties window.

    0 讨论(0)
  • 2020-12-07 18:06

    right-click in your project and select Properties. In the Properties window -> "Android" -> uncheck the option "is Library" and apply -> Click "ok" to close the properties window.

    This is the best answer to solve the problem

    0 讨论(0)
提交回复
热议问题