[英]Android resource linking failed at google_play_service_version in generated menifest
[英]No Resource found that matches @integer/google_play_service_version
我已經將google-play-services_lib導入到我的項目中,但是在AndroidManifest.xml中收到錯誤@ integer / google_play_services_version
Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').AndroidManifest.xml
這是AndroidManifest.xml中的代碼
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>
我還添加了它的屬性 。 但這還無法解決。
http://i.stack.imgur.com/6zJbR.png
我是android的新手,我已經檢查了大多數可能的解決方案,但不適用於我。
的確,谷歌不鼓勵Eclipse。 但是他們仍然在此官方文檔中提供安裝指南https://developers.google.com/android/guides/setup解釋了如何設置Google Play進行月食。 基本上:
將位於/ extras / google / google_google_play_services / libproject / google-play-services_lib /的庫項目復制到維護Android應用程序項目的位置。
將庫項目導入到Eclipse工作區中。 單擊文件>導入,選擇Android>現有Android代碼到Workspace,然后瀏覽到庫項目的副本以將其導入。
在您的應用項目中,引用Google Play服務庫項目。 有關如何執行此操作的更多信息,請參見引用Eclipse的庫項目。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.