无法 运行 android 项目作为 eclipse 考虑它作为一个库

unable to run android project as eclipse considering it as a library

我在 Eclipse ADT 中使用 Google 地图。我遵循了 this and this 教程。一切都很顺利。但是,现在,当我尝试构建项目时,Eclipse 说

 "Android Library projects cannot be launched"

我从一开始就重试了,以为我可能点击了一些错误的复选框,但错误仍然存​​在。我导入的唯一库项目是 google 播放服务库。 任何帮助都会很棒。谢谢:)

出现此错误是因为您在项目的“属性”选项中选中了复选框 "Is Library"。请取消选中该复选框,您将不会再看到该错误。您的项目是一个引用 Google Play Services 的应用程序项目,它引用的是一个库,但您的项目不是一个库,因此您必须取消选中该复选框,因为库项目无法启动,因为它们不包含 . apk 文件。

Here are the steps to run the Map project as a app project and not as a library:
 - In the Package Explorer, right-click the library project and select Properties. 
 - In the Properties window, select the "Android" properties group at left and locate the Library properties at right. 
 - **Do not** select the "is Library" checkbox and click Apply.
 - Click OK to close the Properties window.

确保您已在清单文件中声明您的片段 activity 具有互联网和地图接收权限。