简体   繁体   中英

Referencing a library project in AndroidManifest.xml

I would like to use Google Play Service as a library project for my app.

I follow the instructions here - http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject

The main question is how do i reference "google-play-services_lib" in the AndroidManifest.xml?

I type this in AndroidManifest.xml but error says (invalid character "-" in activity)

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

Anyone can advise? Thanks.

You don't need to reference the library in manifest file. If you already followed the steps to reference a library project in this link , then you can directly use the content of the library in your code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM