2014-07-06 1 views
0

J'ai double amorcée mon ordinateur à Linux et j'ai copié tous mes fichiers de projet sur Eclipse sous Linux et je reçois ces erreurs.Application utilisant Google Play Services de jeu Crashing immédiatement

>07-04 23:23:17.980: W/PopupManager(6781): You have not specified a View to use as content >view for popups. Falling back to the Activity content view which may not work properly in >future versions of the API. Use setViewForPopups() to set your content view. 
>07-04 23:23:17.990: W/art(6781): Failed to find ELF magic in >/system/framework/com.android.media.remotedisplay.odex: dey 
>07-04 23:23:18.000: W/art(6781): Failed to find ELF magic in >/system/framework/com.android.location.provider.odex: dey 
>07-04 23:23:18.000: W/art(6781): Failed to find ELF magic in >/system/framework/com.google.android.ble.odex: dey 
>07-04 23:23:18.100: W/ResourceType(6781): Failure getting entry for 0x7f06000d (t=5 e=13) >in package 0 (error -75) 
>07-04 23:23:18.100: E/GooglePlayServicesUtil(6781): The Google Play services resources were >not found. Check your project configuration to ensure that the resources are included. 
>07-04 23:23:18.150: I/Adreno-EGL(6781): <qeglDrvAPI_eglInitialize:320>: EGL 1.4 QUALCOMM >Build: I0404c4692afb8623f95c43aeb6d5e13ed4b30ddbDate: 11/06/13 
>07-04 23:23:18.170: D/OpenGLRenderer(6781): Enabling debug mode 0 
>07-04 23:23:18.570: D/AndroidRuntime(6781): Shutting down VM 
>07-04 23:23:18.570: E/AndroidRuntime(6781): FATAL EXCEPTION: main 
v07-04 23:23:18.570: E/AndroidRuntime(6781): Process: com.cs407project.cardgameswithfriends, >PID: 6781 
>07-04 23:23:18.570: E/AndroidRuntime(6781): java.lang.IllegalStateException: A fatal >developer error has occurred. Check the logs for further information. 
>07-04 23:23:18.570: E/AndroidRuntime(6781): at >com.google.android.gms.internal.eh$h.b(Unknown Source) 
>07-04 23:23:18.570: E/AndroidRuntime(6781): at >com.google.android.gms.internal.eh$h.a(Unknown Source) 
>07-04 23:23:18.570: E/AndroidRuntime(6781): at >com.google.android.gms.internal.eh$b.ec(Unknown Source) 
>07-04 23:23:18.570: E/AndroidRuntime(6781): at >com.google.android.gms.internal.eh$a.handleMessage(Unknown Source) 
>07-04 23:23:18.570: E/AndroidRuntime(6781): at >android.os.Handler.dispatchMessage(Handler.java:102) 
>07-04 23:23:18.570: E/AndroidRuntime(6781): at android.os.Looper.loop(Looper.java:136) 
>07-04 23:23:18.570: E/AndroidRuntime(6781): at >android.app.ActivityThread.main(ActivityThread.java:5001) 
>07-04 23:23:18.570: E/AndroidRuntime(6781): at java.lang.reflect.Method.invoke(Native >Method) 
>07-04 23:23:18.570: E/AndroidRuntime(6781): at >com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) 
>07-04 23:23:18.570: E/AndroidRuntime(6781): at >com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) 
>07-04 23:27:40.990: I/Process(6781): Sending signal. PID: 6781 SIG: 9 

Cette erreur se produit avant l'appel de onCreate(). J'ai BaseGameUtils et google-play-service_lib importés en tant que bibliothèques et ils sont tous les deux dans le chemin de compilation de mon programme principal. Google-play-services_lib est copié à partir du SDK, donc il n'est pas référencé à partir de là.

Si quelqu'un peut donner des conseils en général sur comment/quoi lire dans le logcat je l'apprécierais. J'ai toujours l'impression de lire des morceaux de randoms en haut ou en bas et d'essayer des choses jusqu'à ce que ça marche.

Répondre

0

Cette erreur est probablement due au fait que com.google.android.gms.games.APP_ID n'a pas été défini dans AndroidManifest. Voir l'étape 3 de this.

Essayez d'ajouter ceci à AndroidManifest.xml, dans l'élément d'application:

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

Où @ string/app_id fait référence aux services de jeu de votre application id dans la console Google Play Developer. This tutoriel sur la mise en œuvre des réalisations vous guide à travers l'ensemble du processus.

Questions connexes