【问题标题】:Referencing a library project in AndroidManifest.xml在 AndroidManifest.xml 中引用库项目
【发布时间】:2013-10-27 16:34:45
【问题描述】:

我想将 Google Play 服务用作我的应用的库项目。

我按照这里的说明进行操作 - http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject

主要问题是如何在 AndroidManifest.xml 中引用“google-play-services_lib”?

我在 AndroidManifest.xml 中输入此内容,但错误提示(活动中的无效字符“-”)

<manifest>
  ...
  <application>
  ...
    <activity android:name="com.example.myApp.MainActivity.library.google-play-services_lib" />
  ...
  </application>
</manifest>

谁能给点建议?谢谢。

【问题讨论】:

  • @antimo 感谢孢子人!同一所学校:)
  • 没问题!如果可能,请检查答案以将此问题标记为已解决:)

标签: android eclipse google-play-services


【解决方案1】:

您不需要在清单文件中引用该库。如果您已经按照步骤在this link中引用了一个库项目,那么您可以直接在代码中使用该库的内容。

【讨论】:

    猜你喜欢
    • 2012-05-28
    • 2020-05-22
    • 1970-01-01
    • 1970-01-01
    • 2019-07-24
    • 1970-01-01
    • 2021-12-31
    • 1970-01-01
    • 2013-01-17
    相关资源
    最近更新 更多