2015-10-17 119 views
0

我已經進口谷歌播放,services_lib到我的項目,但得到的錯誤@整數/ GOOGLE_PLAY_SERVICES_VERSION在AndroidManifest.xml無資源發現匹配@整數/ google_play_service_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"/> 

我也加了Properties也。但它無法解決。

http://i.stack.imgur.com/6zJbR.png

我是新來的Android和我已經檢查最可能的解決方案,但對我沒有工作。

+0

您正在使用gradle嗎?你是什​​麼意思google-play-serices_lib? – Colin

+0

Google Play服務庫。我已經將它添加到屬性 - >是庫 – KVC

+0

我仍然困惑,你能上傳我們的build.gradle文件嗎? – Colin

回答

0

的確,Eclipse並沒有受到谷歌的鼓勵。但他們仍然有設置指南在這個官方文件https://developers.google.com/android/guides/setup解釋如何設置谷歌播放日食。基本上是:

複製在 /演員/谷歌/ google_play_services/libproject /谷歌播放services_lib/ 到你保持你的Android應用項目位置的庫項目。

導入 庫項目到您的Eclipse工作區。單擊文件>導入, 選擇Android>將Android代碼添加到Workspace中,並瀏覽到 庫項目的副本以導入它。

在您的應用項目中, 引用了Google Play服務庫項目。有關如何執行此操作的更多信息,請參閱參考 Eclipse項目庫項目。