java.lang.OutOfMemoryError: Failed to allocate a 4194316 byte allocation with 2308768 free bytes and 2MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:655) at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:483) at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1157) at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:720) at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:571) at android.content.res.Resources.loadDrawable(Resources.java:972) at android.content.res.TypedArray.getDrawable(TypedArray.java:931) at android.view.View.(View.java:4234) at android.widget.ImageView.(ImageView.java:150) at android.widget.ImageView.(ImageView.java:145) at androidx.appcompat.widget.AppCompatImageView.(SourceFile) at androidx.appcompat.widget.AppCompatImageView.(SourceFile) at androidx.appcompat.app.l.createImageView(SourceFile) at androidx.appcompat.app.l.createView(SourceFile) at androidx.appcompat.app.g.V(SourceFile) at androidx.appcompat.app.g.onCreateView(SourceFile) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727) at android.view.LayoutInflater.rInflate(LayoutInflater.java:858) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) at android.view.LayoutInflater.inflate(LayoutInflater.java:518) at android.view.LayoutInflater.inflate(LayoutInflater.java:426) at android.view.LayoutInflater.inflate(LayoutInflater.java:377) at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:424) at android.app.Dialog.setContentView(Dialog.java:516) at com.entitcs.office_attendance.activities.Drawer_Activity$x.onClick(SourceFile) at android.view.View.performClick(View.java:5683) at android.view.View$PerformClick.run(View.java:22672) at android.os.Handler.handleCallback(Handler.java:836) at android.os.Handler.dispatchMessage(Handler.java:103) at android.os.Looper.loop(Looper.java:203) at android.app.ActivityThread.main(ActivityThread.java:6251) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)