So, I've been creating my project and been using the emulator from android studio to run and test my application. Worked perfectly, but when testing on my android phone I have encountered a error:
java.lang.OutOfMemoryError: Failed to allocate a 51321612 byte allocation with 16767424 free bytes 
    and 37MB until OOM
    at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
    at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
    at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:700)
    at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:535)
    at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1179)
    at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:770)
    at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:621)
    at android.content.res.Resources.loadDrawable(Resources.java:1727)
    at android.content.res.TypedArray.getDrawable(TypedArray.java:945)
    at android.widget.ImageView.<init>(ImageView.java:157)
    at android.widget.ImageView.<init>(ImageView.java:145)
    at androidx.appcompat.widget.AppCompatImageView.<init>(AppCompatImageView.java:72)
    at androidx.appcompat.widget.AppCompatImageView.<init>(AppCompatImageView.java:68)
    at androidx.appcompat.app.AppCompatViewInflater.createImageView(AppCompatViewInflater.java:187) 
    at androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:107)
    at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1407)
    at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1457)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:776)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:865)
    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:873
    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:873)
    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:873
    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
    at android.view.LayoutInflater.parseInclude(LayoutInflater.java:1011)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)
    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:525)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
I am trying to fix this but need some help. Here is my design code:
   <androidx.cardview.widget.CardView
    android:layout_margin="10dp"
    app:cardCornerRadius="50dp"
    app:cardElevation="0dp"
    android:layout_width="300dp"
    android:layout_height="125dp">
    <ImageView
     android:id="@+id/FullBody"
     tools:ignore="ContentDescription"
     android:src="@drawable/full"
     android:scaleType="centerCrop"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     > </ImageView>
Here is the version of android studio that i am using:
    compileSdkVersion 29
    buildToolsVersion "29.0.2"
    defaultConfig {
    applicationId "com.example.gymtastic"
    minSdkVersion 17
    targetSdkVersion 29
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 
    multiDexEnabled true;
The phone that i use has a android version of 7.0 which is equivalent to 24Sdk. If more information is required, will provide.
 
     
    