简体   繁体   中英

Unity3D Plugin - The Google Play services resources were not found

I'm trying to add GooglePlay Leaderboards and Achievements into my Unity3D plugin, but keep getting the error:

........ 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 ......

As far as I know iv'e done everything correctly. Added the "google-play-services_lib" project to my native Java eclipse project, added it as a "Reference", added the "google-play-services.jar" to that project and to the Unity plugins folder. I have also set "google-play-services.jar" to export its entries and can see in my "R.txt" file the entries are there.

将完整的Google Play服务库项目( $ android-sdk / extras / google / google_google_play_services / libproject / google-play-services_lib )复制到统一的Plugins / Android文件夹中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM