gpt4 book ai didi

android - "Android library projects cannot be launched"?

转载 作者:IT老高 更新时间:2023-10-28 13:10:30 25 4
gpt4 key购买 nike

现在我完全被这个错误信息弄糊涂了:无法启动Android库项目。

我仔细检查了构建路径和库,一切似乎“正常”,并且在“问题” View 中没有错误,但是,当我尝试将我的应用程序作为 Android 项目运行时,它失败并显示了该消息。

感谢任何解释为什么会发生!

最佳答案

来自 Android 的开发者文档,关于使用 ADT 从 Eclipse 管理项目:

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.

因此,打开您的项目属性,取消选中“Is Library”复选框,然后点击Apply,使您的项目成为普通的 Android 项目(而不是库项目)。

关于android - "Android library projects cannot be launched"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4282552/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com