2013-10-28 55 views
2

我想GOOGLEPLAY排行榜和成就添加到我的Unity3D插件,但不斷收到錯誤:Unity3D插件 - 谷歌的播放均未發現服務資源

........ D/dalvikvm(6052): VFY: replacing opcode 0x60 at 0x003f W/dalvikvm(6052): VFY: unable to resolve static field 1854 (common_google_play_services_update_text) in Lcom/google/android/gms/R$string; D/dalvikvm(6052): VFY: replacing opcode 0x60 at 0x0046 W/dalvikvm(6052): VFY: unable to resolve static field 1851 (common_google_play_services_unsupported_text) in Lcom/google/android/gms/R$string; D/dalvikvm(6052): VFY: replacing opcode 0x60 at 0x0066 W/dalvikvm(6052): VFY: unable to resolve static field 1848 (common_google_play_services_network_error_text) in Lcom/google/android/gms/R$string; D/dalvikvm(6052): VFY: replacing opcode 0x60 at 0x006d W/dalvikvm(6052): VFY: unable to resolve static field 1846 (common_google_play_services_invalid_account_text) in Lcom/google/android/gms/R$string; D/dalvikvm(6052): VFY: replacing opcode 0x60 at 0x0074 W/dalvikvm(6052): VFY: unable to resolve static field 1850 (common_google_play_services_unknown_issue) in Lcom/google/android/gms/R$string; D/dalvikvm(6052): VFY: replacing opcode 0x60 at 0x000c E/GooglePlayServicesUtil(6052): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included. D/GooglePlayServices(6052): onSignInFailed ......

據我所知iv'e一切正確。將「google-play-services_lib」項目添加到我的原生Java eclipse項目中,並將其添加爲「參考」,將「google-play-services.jar」添加到該項目和Unity插件文件夾中。我還設置了「google-play-services.jar」來導出它的條目,並可以在我的「R.txt」文件中看到條目在那裏。

+0

僅供參考服務仍然工作...愚蠢的谷歌API ... – zezba9000

回答

0

將完整的Google Play服務庫項目($ android-sdk/extras/google/google_play_services/libproject/google-play-services_lib)複製到Unity Plugins/Android文件夾。

+0

我已經做到了。即使它仍然有效,也會發生相同的錯誤。因爲一切工作都沒有什麼大不了的,只是很奇怪。 – zezba9000