glide icon indicating copy to clipboard operation
glide copied to clipboard

NoSuchMethodError: Resources.getDisplayMetrics at MemorySizeCalculator:35

Open bearprada opened this issue 11 years ago • 3 comments

Hey guys. I got a few crashes from Samsung(SGH S730M) with Android 4.0.4

java.lang.NoSuchMethodError: android.content.res.Resources.getDisplayMetrics
       at com.bumptech.glide.load.engine.cache.MemorySizeCalculator.(SourceFile:35)
       at com.bumptech.glide.GlideBuilder.createGlide(SourceFile:177)
       at com.bumptech.glide.Glide.get(SourceFile:155)
       at com.cardinalblue.android.piccollage.PCApplication.onCreate(SourceFile:90)
       at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3959)
       at android.app.ActivityThread.access$1300(ActivityThread.java:123)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1189)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:137)
       at android.app.ActivityThread.main(ActivityThread.java:4429)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:511)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
       at dalvik.system.NativeStart.main(NativeStart.java)

is it OEM issue?

bearprada avatar Aug 18 '15 03:08 bearprada

Yes it is. getDisplayMetricsis API Level 1...

Or ProGuard has a rare bug (guess from SourceFile), is there anything similar (no such method) to this in you reports?

TWiStErRob avatar Aug 18 '15 09:08 TWiStErRob

This sounds kind of similar to #578

sjudd avatar Aug 21 '15 14:08 sjudd

Lets track these issues in #578.

sjudd avatar Sep 14 '15 14:09 sjudd