![](/img/trans.png)
[英]re-use the androidmanifest.xml in library project in android studio
[英]Referencing a library project in AndroidManifest.xml
我想將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>
有人可以建議嗎? 謝謝。
您無需在清單文件中引用該庫。 如果您已經按照此鏈接中的步驟引用了一個庫項目,那么您可以在代碼中直接使用該庫的內容。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.