Skip to content

Instantly share code, notes, and snippets.

@ddewaele
Last active December 21, 2015 07:09
Show Gist options
  • Save ddewaele/6269573 to your computer and use it in GitHub Desktop.
Save ddewaele/6269573 to your computer and use it in GitHub Desktop.

##Memory issues

Was caused by maven transitive dependencies getting pulled in. A foursquare API library bringing in the entire Google Appengine SDK. Logged an issue in the Foursqare-java-api issue tracker

[2013-08-19 15:31:47 - AndroidFoursquareGoogleApiJavaClient] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(javax.mail.Session$7) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2013-08-19 15:33:26 - Dex Loader] Unable to execute dex: GC overhead limit exceeded
[2013-08-19 15:33:26 - AndroidFoursquareGoogleApiJavaClient] Conversion to Dalvik format failed: Unable to execute dex: GC overhead limit exceeded

Android support library issues.

No idea what this was.

08-19 15:51:22.659: W/dalvikvm(8369): VFY: Ljava/lang/Object; is not instance of Landroid/support/v4/app/Fragment;
08-19 15:51:22.659: W/dalvikvm(8369): VFY: bad arg 1 (into Landroid/support/v4/app/Fragment;)
08-19 15:51:22.659: W/dalvikvm(8369): VFY:  rejecting call to Landroid/support/v4/app/FragmentTransaction;.hide (Landroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;
08-19 15:51:22.659: W/dalvikvm(8369): VFY:  rejecting opcode 0x6e at 0x000a
08-19 15:51:22.659: W/dalvikvm(8369): VFY:  rejected Lcom/ecs/android/foursquare/FoursquareApiSample;.hideMap ()V
08-19 15:51:22.659: W/dalvikvm(8369): Verifier rejected class Lcom/ecs/android/foursquare/FoursquareApiSample;
08-19 15:51:22.659: W/dalvikvm(8369): Class init failed in newInstance call (Lcom/ecs/android/foursquare/FoursquareApiSample;)
08-19 15:51:22.659: D/AndroidRuntime(8369): Shutting down VM
08-19 15:51:22.659: W/dalvikvm(8369): threadid=1: thread exiting with uncaught exception (group=0x40018578)
08-19 15:51:22.669: E/AndroidRuntime(8369): FATAL EXCEPTION: main
08-19 15:51:22.669: E/AndroidRuntime(8369): java.lang.VerifyError: com.ecs.android.foursquare.FoursquareApiSample
08-19 15:51:22.669: E/AndroidRuntime(8369):   at java.lang.Class.newInstanceImpl(Native Method)
08-19 15:51:22.669: E/AndroidRuntime(8369): 	at java.lang.Class.newInstance(Class.java:1409)
08-19 15:51:22.669: E/AndroidRuntime(8369): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
08-19 15:51:22.669: E/AndroidRuntime(8369): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1565)
08-19 15:51:22.669: E/AndroidRuntime(8369): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
08-19 15:51:22.669: E/AndroidRuntime(8369): 	at android.app.ActivityThread.access$1500(ActivityThread.java:117)
08-19 15:51:22.669: E/AndroidRuntime(8369): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
08-19 15:51:22.669: E/AndroidRuntime(8369): 	at android.os.Handler.dispatchMessage(Handler.java:99)
08-19 15:51:22.669: E/AndroidRuntime(8369): 	at android.os.Looper.loop(Looper.java:130)
08-19 15:51:22.669: E/AndroidRuntime(8369): 	at android.app.ActivityThread.main(ActivityThread.java:3687)
08-19 15:51:22.669: E/AndroidRuntime(8369): 	at java.lang.reflect.Method.invokeNative(Native Method)
08-19 15:51:22.669: E/AndroidRuntime(8369): 	at java.lang.reflect.Method.invoke(Method.java:507)
08-19 15:51:22.669: E/AndroidRuntime(8369): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
08-19 15:51:22.669: E/AndroidRuntime(8369): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
08-19 15:51:22.669: E/AndroidRuntime(8369): 	at dalvik.system.NativeStart.main(Native Method)

Google Play Services library issues

08-19 15:58:07.289: W/dalvikvm(8614): VFY: unable to find class referenced in signature (Lcom/google/android/gms/maps/model/LatLng;)
08-19 15:58:07.289: E/dalvikvm(8614): Could not find class 'com.google.android.gms.maps.model.MarkerOptions', referenced from method com.ecs.android.foursquare.FoursquareApiSample.addMarkerToMap
08-19 15:58:07.289: W/dalvikvm(8614): VFY: unable to resolve new-instance 794 (Lcom/google/android/gms/maps/model/MarkerOptions;) in Lcom/ecs/android/foursquare/FoursquareApiSample;
08-19 15:58:07.299: E/dalvikvm(8614): Could not find class 'com.google.android.gms.maps.SupportMapFragment', referenced from method com.ecs.android.foursquare.FoursquareApiSample.onCreate
08-19 15:58:07.299: W/dalvikvm(8614): VFY: unable to resolve check-cast 790 (Lcom/google/android/gms/maps/SupportMapFragment;) in Lcom/ecs/android/foursquare/FoursquareApiSample;
08-19 15:58:07.299: I/ApplicationPackageManager(8614): cscCountry is not German : PRO
08-19 15:58:07.329: D/AndroidRuntime(8614): Shutting down VM
08-19 15:58:07.329: W/dalvikvm(8614): threadid=1: thread exiting with uncaught exception (group=0x40018578)
08-19 15:58:07.339: E/AndroidRuntime(8614): FATAL EXCEPTION: main
08-19 15:58:07.339: E/AndroidRuntime(8614): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ecs.android.foursquare/com.ecs.android.foursquare.FoursquareApiSample}: android.view.InflateException: Binary XML file line #58: Error inflating class fragment
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.app.ActivityThread.access$1500(ActivityThread.java:117)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.os.Handler.dispatchMessage(Handler.java:99)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.os.Looper.loop(Looper.java:130)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.app.ActivityThread.main(ActivityThread.java:3687)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at java.lang.reflect.Method.invokeNative(Native Method)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at java.lang.reflect.Method.invoke(Method.java:507)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at dalvik.system.NativeStart.main(Native Method)
08-19 15:58:07.339: E/AndroidRuntime(8614): Caused by: android.view.InflateException: Binary XML file line #58: Error inflating class fragment
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:587)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:209)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.app.Activity.setContentView(Activity.java:1657)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at com.ecs.android.foursquare.FoursquareApiSample.onCreate(FoursquareApiSample.java:66)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	... 11 more
08-19 15:58:07.339: E/AndroidRuntime(8614): Caused by: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.google.android.gms.maps.SupportMapFragment: make sure class name exists, is public, and has an empty constructor that is public
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.support.v4.app.Fragment.instantiate(Fragment.java:409)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.support.v4.app.Fragment.instantiate(Fragment.java:377)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:277)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	... 20 more
08-19 15:58:07.339: E/AndroidRuntime(8614): Caused by: java.lang.ClassNotFoundException: com.google.android.gms.maps.SupportMapFragment in loader dalvik.system.PathClassLoader[/system/framework/com.google.android.maps.jar:/data/app/com.ecs.android.foursquare-2.apk]
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	at android.support.v4.app.Fragment.instantiate(Fragment.java:399)
08-19 15:58:07.339: E/AndroidRuntime(8614): 	... 23 more

Google Play Services library issues Part II

08-19 16:02:49.759: I/ApplicationPackageManager(8706): cscCountry is not German : PRO
08-19 16:02:49.799: W/dalvikvm(8706): VFY: unable to resolve instance field 28
08-19 16:02:50.219: W/dalvikvm(8706): Unable to resolve superclass of Lmaps/p/w; (734)
08-19 16:02:50.219: W/dalvikvm(8706): Link of class 'Lmaps/p/w;' failed
08-19 16:02:50.219: W/dalvikvm(8706): Unable to resolve superclass of Lmaps/ap/as; (6056)
08-19 16:02:50.219: W/dalvikvm(8706): Link of class 'Lmaps/ap/as;' failed
08-19 16:02:50.219: W/dalvikvm(8706): Unable to resolve superclass of Lmaps/af/k; (5085)
08-19 16:02:50.219: W/dalvikvm(8706): Link of class 'Lmaps/af/k;' failed
08-19 16:02:50.219: E/dalvikvm(8706): Could not find class 'maps.af.k', referenced from method maps.ag.an.a
08-19 16:02:50.219: W/dalvikvm(8706): VFY: unable to resolve new-instance 4928 (Lmaps/af/k;) in Lmaps/ag/an;
08-19 16:02:50.399: I/ApplicationPackageManager(8706): cscCountry is not German : PRO
08-19 16:02:51.389: W/dalvikvm(8706): VFY: unable to resolve instance field 754
08-19 16:02:51.399: E/GooglePlayServicesUtil(8706): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
08-19 16:02:52.809: I/FourSquareSampleApp(8706): Loading credential for userId foursquare
08-19 16:02:52.849: I/FourSquareSampleApp(8706): Loaded access token = 
08-19 16:02:54.309: E/GooglePlayServicesUtil(8706): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment