" Android的库项目不能上马"? [英] "Android library projects cannot be launched"?

查看:117
本文介绍了" Android的库项目不能上马"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我这个错误信息完全糊涂了:的Andr​​oid库项目不能上马

我仔细检查了构建路径和图书馆,一切似乎都OK,且有观点,但是,当我试图运行我的应用程序的Andr​​oid项目,它失败,表明该消息对问题没有错误。

为什么它的发生任何的解释是AP preciated!

解决方案

从Android的开发者文档的管理项目使用adt:

<一个href="http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject">Setting一个图书馆计划

  

接下来,设置项目的属性,以表明它是一个库项目:

     
      
  1. Package Explorer中,用鼠标右键单击该库项目,并选择属性
  2.   
  3. 属性窗口中,选择Android的属性组在左边,找到属性的权利。
  4.   
  5. 选择是图书馆复选框,然后点击应用
  6.   
  7. 点击确定以关闭的属性的窗口。
  8.   

所以,打开你的项目属性,取消选择是图书馆复选框,然后单击应用,以使您的项目一个正常的Andr​​oid项目(而不是库项目)。

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!

解决方案

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

这篇关于&QUOT; Android的库项目不能上马&QUOT;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆