Android Question Error OutOfMemoryError in Picasso

mehdipass

Active Member
Hi,
When I use Picasso in project, I get this error. why?
Error:
java.lang.Exception: java.lang.OutOfMemoryError: Failed to allocate a 20 byte allocation with 3856 free bytes and 3KB until OOM

java.lang.OutOfMemoryError: Failed to allocate a 20 byte allocation with 3856 free bytes and 3KB until OOM
    at android.content.res.ColorStateList.inflate(ColorStateList.java:284)
    at android.content.res.ColorStateList.createFromXmlInner(ColorStateList.java:222)
    at android.content.res.ColorStateList.createFromXml(ColorStateList.java:201)
    at android.content.res.Resources.loadColorStateListForCookie(Resources.java:2746)
    at android.content.res.Resources.loadColorStateList(Resources.java:2699)
    at android.content.res.TypedArray.getColor(TypedArray.java:439)
    at android.widget.TextView.<init>(TextView.java:738)
    at android.widget.TextView.<init>(TextView.java:671)
    at android.widget.TextView.<init>(TextView.java:667)
    at android.widget.TextView.<init>(TextView.java:663)
    at anywheresoftware.b4a.objects.LabelWrapper.innerInitialize(LabelWrapper.java:27)
    at anywheresoftware.b4a.objects.ViewWrapper.Initialize(ViewWrapper.java:67)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:201)
    at aghajari.retrofit.Amir_CallBack$1.onResponse(Amir_CallBack.java:128)
    at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:71)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:5421)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:731)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:621)
 
Top