title: android.view.InflateException: Binary XML file line #17: Binary XML file line #17: Error inflating class <unknown>
body: <p>I'm getting this error when I click to enter a certain layout of my application</p>
  <p>java.lang.RuntimeException: Unable to start activity ComponentInfo android.view.InflateException: Binary XML file line #17: Binary XML file line #17: Error inflating class </p>
  <pre><code>2020-08-16 14:45:27.960 22621-22621/com.deventretenimento.ganharassistindo E/AndroidRuntime: FATAL EXCEPTION: main
      Process: com.deventretenimento.ganharassistindo, PID: 22621
      java.lang.RuntimeException: Unable to start activity ComponentInfo{com.deventretenimento.ganharassistindo/com.deventretenimento.ganharassistindo.Redeem}: android.view.InflateException: Binary XML file line #17: Binary XML file line #17: Error inflating class &lt;unknown&gt;
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3139)
          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3282)
          at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
          at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
          at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1970)
          at android.os.Handler.dispatchMessage(Handler.java:106)
          at android.os.Looper.loop(Looper.java:214)
          at android.app.ActivityThread.main(ActivityThread.java:7156)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
       Caused by: android.view.InflateException: Binary XML file line #17: Binary XML file line #17: Error inflating class &lt;unknown&gt;
       Caused by: android.view.InflateException: Binary XML file line #17: Error inflating class &lt;unknown&gt;
       Caused by: java.lang.reflect.InvocationTargetException
          at java.lang.reflect.Constructor.newInstance0(Native Method)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
          at android.view.LayoutInflater.createView(LayoutInflater.java:686)
          at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
          at android.view.LayoutInflater.onCreateView(LayoutInflater.java:759)
          at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:827)
          at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769)
          at android.view.LayoutInflater.rInflate(LayoutInflater.java:902)
          at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:863)
          at android.view.LayoutInflater.rInflate(LayoutInflater.java:905)
          at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:863)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:554)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:461)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:383)
          at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:696)
          at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:170)
          at com.deventretenimento.ganharassistindo.Redeem.onCreate(Redeem.java:40)
          at android.app.Activity.performCreate(Activity.java:7335)
          at android.app.Activity.performCreate(Activity.java:7326)
          at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1275)
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3119)
          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3282)
          at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
          at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
          at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1970)
          at android.os.Handler.dispatchMessage(Handler.java:106)
          at android.os.Looper.loop(Looper.java:214)
          at android.app.ActivityThread.main(ActivityThread.java:7156)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
       Caused by: android.content.res.Resources$NotFoundException: Drawable com.deventretenimento.ganharassistindo:drawable/backreedem with resource ID #0x7f08008f
  2020-08-16 14:45:27.964 22621-22621/com.deventretenimento.ganharassistindo E/AndroidRuntime: Caused by: android.content.res.Resources$NotFoundException: File res/drawable/backreedem.xml from drawable resource ID #0x7f08008f
          at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:898)
          at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:677)
          at android.content.res.Resources.loadDrawable(Resources.java:912)
          at android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:955)
          at android.content.res.TypedArray.getDrawable(TypedArray.java:930)
          at android.view.View.&lt;init&gt;(View.java:5444)
          at android.view.ViewGroup.&lt;init&gt;(ViewGroup.java:660)
          at android.widget.RelativeLayout.&lt;init&gt;(RelativeLayout.java:248)
          at android.widget.RelativeLayout.&lt;init&gt;(RelativeLayout.java:244)
          at android.widget.RelativeLayout.&lt;init&gt;(RelativeLayout.java:240)
          at java.lang.reflect.Constructor.newInstance0(Native Method)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
          at android.view.LayoutInflater.createView(LayoutInflater.java:686)
          at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
          at android.view.LayoutInflater.onCreateView(LayoutInflater.java:759)
          at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:827)
          at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769)
          at android.view.LayoutInflater.rInflate(LayoutInflater.java:902)
          at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:863)
          at android.view.LayoutInflater.rInflate(LayoutInflater.java:905)
          at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:863)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:554)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:461)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:383)
          at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:696)
          at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:170)
          at com.deventretenimento.ganharassistindo.Redeem.onCreate(Redeem.java:40)
          at android.app.Activity.performCreate(Activity.java:7335)
          at android.app.Activity.performCreate(Activity.java:7326)
          at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1275)
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3119)
          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3282)
          at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
          at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
          at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1970)
          at android.os.Handler.dispatchMessage(Handler.java:106)
          at android.os.Looper.loop(Looper.java:214)
          at android.app.ActivityThread.main(ActivityThread.java:7156)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
       Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #7&lt;gradient&gt; tag requires 'gradientRadius' attribute with radial type
          at android.graphics.drawable.GradientDrawable.updateGradientDrawableGradient(GradientDrawable.java:1661)
          at android.graphics.drawable.GradientDrawable.inflateChildElements(GradientDrawable.java:1423)
          at android.graphics.drawable.GradientDrawable.inflate(GradientDrawable.java:1244)
          at android.graphics.drawable.DrawableInflater.inflateFromXmlForDensity(DrawableInflater.java:146)
          at android.graphics.drawable.Drawable.createFromXmlInnerForDensity(Drawable.java:1359)
          at android.graphics.drawable.Drawable.createFromXmlForDensity(Drawable.java:1318)
          at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:879)
          at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:677) 
          at android.content.res.Resources.loadDrawable(Resources.java:912) 
          at android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:955) 
          at android.content.res.TypedArray.getDrawable(TypedArray.java:930) 
          at android.view.View.&lt;init&gt;(View.java:5444) 
          at android.view.ViewGroup.&lt;init&gt;(ViewGroup.java:660) 
          at android.widget.RelativeLayout.&lt;init&gt;(RelativeLayout.java:248) 
          at android.widget.RelativeLayout.&lt;init&gt;(RelativeLayout.java:244) 
          at android.widget.RelativeLayout.&lt;init&gt;(RelativeLayout.java:240) 
          at java.lang.reflect.Constructor.newInstance0(Native Method) 
          at java.lang.reflect.Constructor.newInstance(Constructor.java:343) 
          at android.view.LayoutInflater.createView(LayoutInflater.java:686) 
          at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58) 
          at android.view.LayoutInflater.onCreateView(LayoutInflater.java:759) 
          at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:827) 
          at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769) 
          at android.view.LayoutInflater.rInflate(LayoutInflater.java:902) 
          at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:863) 
          at android.view.LayoutInflater.rInflate(LayoutInflater.java:905) 
          at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:863) 
          at android.view.LayoutInflater.inflate(LayoutInflater.java:554) 
          at android.view.LayoutInflater.inflate(LayoutInflater.java:461) 
          at android.view.LayoutInflater.inflate(LayoutInflater.java:383) 
          at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:696) 
          at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:170) 
          at com.deventretenimento.ganharassistindo.Redeem.onCreate(Redeem.java:40) 
          at android.app.Activity.performCreate(Activity.java:7335) 
          at android.app.Activity.performCreate(Activity.java:7326) 
          at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1275) 
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3119) 
          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3282) 
          at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) 
          at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) 
          at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) 
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1970) 
          at android.os.Handler.dispatchMessage(Handler.java:106) 
          at android.os.Looper.loop(Looper.java:214) 
          at android.app.ActivityThread.main(ActivityThread.java:7156) 
          at java.lang.reflect.Method.invoke(Native Method) 
          at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494) 
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975) 
  </code></pre>
  <p>this one is the layout I'm trying to enter and it gives this error</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:background=&quot;#EEF8FF&quot;
      tools:context=&quot;com.deventretenimento.ganharassistindo.RedeemPayTm&quot;&gt;
  
      &lt;RelativeLayout
          android:id=&quot;@+id/relative&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;300dp&quot;
          android:layout_marginTop=&quot;-50dp&quot;
          android:background=&quot;@drawable/back&quot;&gt;
  
          &lt;RelativeLayout
              android:id=&quot;@+id/relativecoinbalance&quot;
              android:layout_width=&quot;320dp&quot;
              android:layout_height=&quot;112dp&quot;
              android:layout_alignParentBottom=&quot;true&quot;
              android:layout_centerHorizontal=&quot;true&quot;
              android:layout_marginBottom=&quot;24dp&quot;
              android:background=&quot;@drawable/backreedem&quot;&gt;
  
              &lt;TextView
                  android:id=&quot;@+id/textViewCoins&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:layout_alignTop=&quot;@+id/imageView5&quot;
                  android:layout_marginStart=&quot;26dp&quot;
                  android:layout_marginTop=&quot;15dp&quot;
                  android:layout_toEndOf=&quot;@+id/imageView5&quot;
                  android:fontFamily=&quot;@font/font&quot;
                  android:text=&quot;0&quot;
                  android:textColor=&quot;@android:color/white&quot;
                  android:textSize=&quot;45sp&quot; /&gt;
  
              &lt;TextView
                  android:id=&quot;@+id/textView&quot;
                  android:layout_width=&quot;wrap_content&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:layout_alignTop=&quot;@+id/imageView5&quot;
                  android:layout_marginStart=&quot;26dp&quot;
                  android:layout_marginBottom=&quot;0dp&quot;
                  android:layout_toEndOf=&quot;@+id/imageView5&quot;
                  android:fontFamily=&quot;@font/font&quot;
                  android:text=&quot;MEU SALDO:&quot;
                  android:textColor=&quot;@android:color/white&quot;
                  android:textAppearance=&quot;?android:attr/textAppearanceSmall&quot;
                  android:textStyle=&quot;bold&quot; /&gt;
  
              &lt;ImageView
                  android:id=&quot;@id/imageView5&quot;
                  android:layout_width=&quot;64dp&quot;
                  android:layout_height=&quot;64dp&quot;
                  android:layout_centerVertical=&quot;true&quot;
                  android:layout_marginStart=&quot;33dp&quot;
                  android:layout_marginBottom=&quot;20dp&quot;
  
                  android:background=&quot;@drawable/back1&quot;
                  android:padding=&quot;21dp&quot;
                  app:srcCompat=&quot;@drawable/coinmain&quot; /&gt;
          &lt;/RelativeLayout&gt;
  
  
      &lt;/RelativeLayout&gt;
  
      &lt;ImageView
          android:id=&quot;@+id/imageView4&quot;
          android:layout_width=&quot;45dp&quot;
          android:layout_height=&quot;45dp&quot;
          android:layout_alignParentStart=&quot;true&quot;
          android:layout_alignParentTop=&quot;true&quot;
          android:layout_alignParentEnd=&quot;false&quot;
          android:layout_marginStart=&quot;22dp&quot;
          android:layout_marginTop=&quot;20dp&quot;
          android:background=&quot;@drawable/backbutton2&quot;
          android:padding=&quot;15dp&quot;
          app:srcCompat=&quot;@drawable/arrowback&quot;
          android:contentDescription=&quot;TODO&quot; /&gt;
  
      &lt;TextView
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentStart=&quot;true&quot;
          android:layout_alignParentTop=&quot;true&quot;
          android:layout_marginStart=&quot;88dp&quot;
          android:layout_marginTop=&quot;30dp&quot;
          android:text=&quot;GANHAR ASSISTINDO&quot;
          android:textColor=&quot;@android:color/white&quot;
          android:textAppearance=&quot;?android:attr/textAppearanceSmall&quot; /&gt;
  
      &lt;EditText
          android:id=&quot;@+id/payTmmobile&quot;
          style=&quot;@android:style/Widget.Holo.EditText&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_below=&quot;@+id/textView6&quot;
          android:layout_centerHorizontal=&quot;true&quot;
          android:layout_marginTop=&quot;5dp&quot;
          android:layout_marginEnd=&quot;8dp&quot;
          android:background=&quot;@null&quot;
          android:maxLength=&quot;9&quot;
          android:inputType=&quot;phone&quot;
          android:text=&quot;0&quot;
          android:windowSoftInputMode=&quot;stateHidden&quot;
          android:textAlignment=&quot;center&quot;
          android:fontFamily=&quot;@font/font&quot;
          android:textColor=&quot;#434D74&quot;
          android:textSize=&quot;100sp&quot;
          android:textStyle=&quot;bold&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/Checkout&quot;
          android:layout_width=&quot;280dp&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:fontFamily=&quot;@font/font&quot;
  
          android:layout_below=&quot;@+id/relative&quot;
          android:layout_centerHorizontal=&quot;true&quot;
          android:layout_marginStart=&quot;8dp&quot;
          android:layout_marginTop=&quot;20dp&quot;
          android:layout_marginEnd=&quot;8dp&quot;
          android:layout_marginBottom=&quot;8dp&quot;
          android:gravity=&quot;center&quot;
          android:text=&quot;Quantas moedas você deseja transformar em dinheiro?&quot;
          android:textAppearance=&quot;@style/TextAppearance.AppCompat.Title&quot;
          android:textColor=&quot;#3E425D&quot;
          app:layout_constraintBottom_toTopOf=&quot;@+id/payTmmobile&quot;
          app:layout_constraintEnd_toEndOf=&quot;parent&quot;
          app:layout_constraintStart_toStartOf=&quot;parent&quot;
          app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;
  
      &lt;Button
          android:id=&quot;@+id/button7&quot;
          android:layout_width=&quot;165dp&quot;
          android:layout_height=&quot;69dp&quot;
          android:textAppearance=&quot;?android:attr/textAppearanceSmall&quot;
          android:textStyle=&quot;bold&quot;
          android:fontFamily=&quot;@font/font&quot;
          android:textColor=&quot;#ffffff&quot;
          android:layout_alignParentBottom=&quot;true&quot;
          android:layout_centerHorizontal=&quot;true&quot;
          android:layout_marginBottom=&quot;56dp&quot;
          android:background=&quot;@drawable/back1now&quot;
          android:onClick=&quot;payTm&quot;
          android:text=&quot;CONTINUAR&quot;
  
          /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/textView6&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_below=&quot;@+id/Checkout&quot;
          android:layout_centerHorizontal=&quot;true&quot;
          android:fontFamily=&quot;@font/font&quot;
  
          android:layout_marginTop=&quot;5dp&quot;
          android:textAppearance=&quot;?android:attr/textAppearanceSmall&quot; /&gt;
  
      &lt;TextView
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentBottom=&quot;true&quot;
          android:fontFamily=&quot;@font/font&quot;
  
          android:layout_centerHorizontal=&quot;true&quot;
          android:layout_marginBottom=&quot;25dp&quot;
          android:text=&quot;Você deve ter 500 000 moedas.&quot;
          android:textAppearance=&quot;?android:attr/textAppearanceSmall&quot; /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>