簡體   English   中英

找不到與給定名稱匹配的資源(在“值”處與值“ @ integer / google_play_services_version”)

[英]No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version')

我正在嘗試將Google Play服務與我一個月前開發的項目鏈接。

所以我遵循以下步驟:

  • 我將playservices庫導入到工作區中(我勾選了復制選項)
  • 右鍵單擊項目,android添加庫,我選擇了播放服務,然后單擊應用並確定

怎么了

  • 完成上述步驟后,我仍無法鏈接服務庫

  • 我收到錯誤消息,因為No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').

當我檢查proj-lib時---即使在鏈接playservices之后,我也可以看到庫未正確鏈接

在此處輸入圖片說明


我該如何解決!

我什至清理了工作區並重新啟動它....更新了playservices版本..仍然無效

<application... >

 <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />

 ...
 </application>

將以上內容添加到您的應用程序清單中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM