InflateException: Error inflating class Button - Crash through play store












0















I have spent a long time looking for an answer to this issue and seem unable to figure it out.



An app I created through "Android Studio" has been working perfectly fine when I create an APK in debug mode, however if I create a bundle and upload it to play store then it crashes on 5 out of 11 devices (including my own) due to the exact same error:




Issue: java.lang.RuntimeException: Unable to start activity ComponentInfo{maxmansung.finaljudgement/maxmansung.finaljudgement.MainScreen}: android.view.InflateException: Binary XML file line #65: Binary XML file line #65: Error inflating class Button




What appears to be happening is that the app is unable to open any Buttons at all for some reason. I have tried deleting the button at the point of error but it simply changes to crashing on another button instead.





Error Log




FATAL EXCEPTION: main
Process: maxmansung.finaljudgement, PID: 20309
java.lang.RuntimeException: Unable to start activity ComponentInfo{maxmansung.finaljudgement/maxmansung.finaljudgement.MainScreen}: android.view.InflateException: Binary XML file line #65: Binary XML file line #65: Error inflating class Button
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2793)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6524)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)
Caused by: android.view.InflateException: Binary XML file line #65: Binary XML file line #65: Error inflating class Button
Caused by: android.view.InflateException: Binary XML file line #65: Error inflating class Button
Caused by: java.lang.ArrayIndexOutOfBoundsException: length=58; index=309
at android.content.res.StringBlock.get(StringBlock.java:65)
at android.content.res.AssetManager.getPooledStringForCookie(AssetManager.java:642)
at android.content.res.TypedArray.loadStringValueAt(TypedArray.java:1279)
at android.content.res.TypedArray.getString(TypedArray.java:219)
at android.widget.TextView.(TextView.java:1157)
at android.widget.Button.(Button.java:109)
at android.widget.Button.(Button.java:105)
at android.support.v7.widget.AppCompatButton.(AppCompatButton.java:71)
at android.support.v7.widget.AppCompatButton.(AppCompatButton.java:67)
at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:109)
at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1024)
at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1081)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:780)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:738)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:869)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:832)
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 android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
at maxmansung.finaljudgement.MainScreen.onCreate(MainScreen.java:24)
at android.app.Activity.performCreate(Activity.java:6910)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2746)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6524)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)




Game Code



If I keep the OnClickListener parts then the crash continues



package maxmansung.finaljudgement;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;

import maxmansung.finaljudgement.savedVariables.saveSettings;

public class MainScreen extends AppCompatActivity {


@Override
public void onBackPressed() {
System.exit(0);
}

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main_screen);

saveSettings settings = new saveSettings(this);
settings.updateFromSave(this);
Boolean currentTrue = settings.getCurrentTrue();

Button mainScreenNew = findViewById(R.id.mainScreenNew);
Button mainScreenCont = findViewById(R.id.mainScreenCont);
Button mainScreenAchievements = findViewById(R.id.mainScreenAchieve);

if (currentTrue){
mainScreenCont.setVisibility(View.VISIBLE);
} else {
mainScreenCont.setVisibility(View.GONE);
}

if (settings.achievementsGained()){
mainScreenAchievements.setVisibility(View.VISIBLE);
} else {
mainScreenAchievements.setVisibility(View.GONE);
}

final Animation clickAnimation = AnimationUtils.loadAnimation(this, R.anim.scale_click);

mainScreenNew.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Animation.AnimationListener listener = new Animation.AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {

}

@Override
public void onAnimationEnd(Animation animation) {
Intent gamePage = new Intent(getApplicationContext(),GamePage.class);
gamePage.putExtra("continue", false);
startActivity(gamePage);
}

@Override
public void onAnimationRepeat(Animation animation) {

}
};
clickAnimation.setAnimationListener(listener);
view.startAnimation(clickAnimation);
}
});




XML Page



If I remove the drawableLeft and drawableStart parts then the crash changes to what appears to be an identical crash but further back in the XML code



I have removed the previous code as it does not impact the crash



<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="maxmansung.finaljudgement.MainScreen">

<Button
android:id="@+id/mainScreenAchieve"
style="@style/Widget.AppCompat.Button.Borderless.Colored"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp"
android:drawableStart="@drawable/achievement_icon"
android:drawableLeft="@drawable/achievement_icon"
android:text="@string/mainScreenAchievements"
android:textAllCaps="true"
android:textColor="@color/colorText"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/mainScreenCont" />











share|improve this question





























    0















    I have spent a long time looking for an answer to this issue and seem unable to figure it out.



    An app I created through "Android Studio" has been working perfectly fine when I create an APK in debug mode, however if I create a bundle and upload it to play store then it crashes on 5 out of 11 devices (including my own) due to the exact same error:




    Issue: java.lang.RuntimeException: Unable to start activity ComponentInfo{maxmansung.finaljudgement/maxmansung.finaljudgement.MainScreen}: android.view.InflateException: Binary XML file line #65: Binary XML file line #65: Error inflating class Button




    What appears to be happening is that the app is unable to open any Buttons at all for some reason. I have tried deleting the button at the point of error but it simply changes to crashing on another button instead.





    Error Log




    FATAL EXCEPTION: main
    Process: maxmansung.finaljudgement, PID: 20309
    java.lang.RuntimeException: Unable to start activity ComponentInfo{maxmansung.finaljudgement/maxmansung.finaljudgement.MainScreen}: android.view.InflateException: Binary XML file line #65: Binary XML file line #65: Error inflating class Button
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2793)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
    at android.app.ActivityThread.-wrap12(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
    at android.os.Handler.dispatchMessage(Handler.java:105)
    at android.os.Looper.loop(Looper.java:156)
    at android.app.ActivityThread.main(ActivityThread.java:6524)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)
    Caused by: android.view.InflateException: Binary XML file line #65: Binary XML file line #65: Error inflating class Button
    Caused by: android.view.InflateException: Binary XML file line #65: Error inflating class Button
    Caused by: java.lang.ArrayIndexOutOfBoundsException: length=58; index=309
    at android.content.res.StringBlock.get(StringBlock.java:65)
    at android.content.res.AssetManager.getPooledStringForCookie(AssetManager.java:642)
    at android.content.res.TypedArray.loadStringValueAt(TypedArray.java:1279)
    at android.content.res.TypedArray.getString(TypedArray.java:219)
    at android.widget.TextView.(TextView.java:1157)
    at android.widget.Button.(Button.java:109)
    at android.widget.Button.(Button.java:105)
    at android.support.v7.widget.AppCompatButton.(AppCompatButton.java:71)
    at android.support.v7.widget.AppCompatButton.(AppCompatButton.java:67)
    at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:109)
    at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1024)
    at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1081)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:780)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:738)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:869)
    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:832)
    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 android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
    at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
    at maxmansung.finaljudgement.MainScreen.onCreate(MainScreen.java:24)
    at android.app.Activity.performCreate(Activity.java:6910)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2746)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
    at android.app.ActivityThread.-wrap12(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
    at android.os.Handler.dispatchMessage(Handler.java:105)
    at android.os.Looper.loop(Looper.java:156)
    at android.app.ActivityThread.main(ActivityThread.java:6524)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)




    Game Code



    If I keep the OnClickListener parts then the crash continues



    package maxmansung.finaljudgement;

    import android.content.Intent;
    import android.os.Bundle;
    import android.support.v7.app.AppCompatActivity;
    import android.view.View;
    import android.view.animation.Animation;
    import android.view.animation.AnimationUtils;
    import android.widget.Button;

    import maxmansung.finaljudgement.savedVariables.saveSettings;

    public class MainScreen extends AppCompatActivity {


    @Override
    public void onBackPressed() {
    System.exit(0);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main_screen);

    saveSettings settings = new saveSettings(this);
    settings.updateFromSave(this);
    Boolean currentTrue = settings.getCurrentTrue();

    Button mainScreenNew = findViewById(R.id.mainScreenNew);
    Button mainScreenCont = findViewById(R.id.mainScreenCont);
    Button mainScreenAchievements = findViewById(R.id.mainScreenAchieve);

    if (currentTrue){
    mainScreenCont.setVisibility(View.VISIBLE);
    } else {
    mainScreenCont.setVisibility(View.GONE);
    }

    if (settings.achievementsGained()){
    mainScreenAchievements.setVisibility(View.VISIBLE);
    } else {
    mainScreenAchievements.setVisibility(View.GONE);
    }

    final Animation clickAnimation = AnimationUtils.loadAnimation(this, R.anim.scale_click);

    mainScreenNew.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View view) {
    Animation.AnimationListener listener = new Animation.AnimationListener() {
    @Override
    public void onAnimationStart(Animation animation) {

    }

    @Override
    public void onAnimationEnd(Animation animation) {
    Intent gamePage = new Intent(getApplicationContext(),GamePage.class);
    gamePage.putExtra("continue", false);
    startActivity(gamePage);
    }

    @Override
    public void onAnimationRepeat(Animation animation) {

    }
    };
    clickAnimation.setAnimationListener(listener);
    view.startAnimation(clickAnimation);
    }
    });




    XML Page



    If I remove the drawableLeft and drawableStart parts then the crash changes to what appears to be an identical crash but further back in the XML code



    I have removed the previous code as it does not impact the crash



    <?xml version="1.0" encoding="utf-8"?>
    <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="maxmansung.finaljudgement.MainScreen">

    <Button
    android:id="@+id/mainScreenAchieve"
    style="@style/Widget.AppCompat.Button.Borderless.Colored"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginLeft="8dp"
    android:layout_marginTop="8dp"
    android:layout_marginRight="8dp"
    android:layout_marginBottom="8dp"
    android:drawableStart="@drawable/achievement_icon"
    android:drawableLeft="@drawable/achievement_icon"
    android:text="@string/mainScreenAchievements"
    android:textAllCaps="true"
    android:textColor="@color/colorText"
    android:textStyle="bold"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/mainScreenCont" />











    share|improve this question



























      0












      0








      0








      I have spent a long time looking for an answer to this issue and seem unable to figure it out.



      An app I created through "Android Studio" has been working perfectly fine when I create an APK in debug mode, however if I create a bundle and upload it to play store then it crashes on 5 out of 11 devices (including my own) due to the exact same error:




      Issue: java.lang.RuntimeException: Unable to start activity ComponentInfo{maxmansung.finaljudgement/maxmansung.finaljudgement.MainScreen}: android.view.InflateException: Binary XML file line #65: Binary XML file line #65: Error inflating class Button




      What appears to be happening is that the app is unable to open any Buttons at all for some reason. I have tried deleting the button at the point of error but it simply changes to crashing on another button instead.





      Error Log




      FATAL EXCEPTION: main
      Process: maxmansung.finaljudgement, PID: 20309
      java.lang.RuntimeException: Unable to start activity ComponentInfo{maxmansung.finaljudgement/maxmansung.finaljudgement.MainScreen}: android.view.InflateException: Binary XML file line #65: Binary XML file line #65: Error inflating class Button
      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2793)
      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
      at android.app.ActivityThread.-wrap12(ActivityThread.java)
      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
      at android.os.Handler.dispatchMessage(Handler.java:105)
      at android.os.Looper.loop(Looper.java:156)
      at android.app.ActivityThread.main(ActivityThread.java:6524)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)
      Caused by: android.view.InflateException: Binary XML file line #65: Binary XML file line #65: Error inflating class Button
      Caused by: android.view.InflateException: Binary XML file line #65: Error inflating class Button
      Caused by: java.lang.ArrayIndexOutOfBoundsException: length=58; index=309
      at android.content.res.StringBlock.get(StringBlock.java:65)
      at android.content.res.AssetManager.getPooledStringForCookie(AssetManager.java:642)
      at android.content.res.TypedArray.loadStringValueAt(TypedArray.java:1279)
      at android.content.res.TypedArray.getString(TypedArray.java:219)
      at android.widget.TextView.(TextView.java:1157)
      at android.widget.Button.(Button.java:109)
      at android.widget.Button.(Button.java:105)
      at android.support.v7.widget.AppCompatButton.(AppCompatButton.java:71)
      at android.support.v7.widget.AppCompatButton.(AppCompatButton.java:67)
      at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:109)
      at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1024)
      at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1081)
      at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:780)
      at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:738)
      at android.view.LayoutInflater.rInflate(LayoutInflater.java:869)
      at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:832)
      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 android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
      at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
      at maxmansung.finaljudgement.MainScreen.onCreate(MainScreen.java:24)
      at android.app.Activity.performCreate(Activity.java:6910)
      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2746)
      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
      at android.app.ActivityThread.-wrap12(ActivityThread.java)
      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
      at android.os.Handler.dispatchMessage(Handler.java:105)
      at android.os.Looper.loop(Looper.java:156)
      at android.app.ActivityThread.main(ActivityThread.java:6524)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)




      Game Code



      If I keep the OnClickListener parts then the crash continues



      package maxmansung.finaljudgement;

      import android.content.Intent;
      import android.os.Bundle;
      import android.support.v7.app.AppCompatActivity;
      import android.view.View;
      import android.view.animation.Animation;
      import android.view.animation.AnimationUtils;
      import android.widget.Button;

      import maxmansung.finaljudgement.savedVariables.saveSettings;

      public class MainScreen extends AppCompatActivity {


      @Override
      public void onBackPressed() {
      System.exit(0);
      }

      @Override
      protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main_screen);

      saveSettings settings = new saveSettings(this);
      settings.updateFromSave(this);
      Boolean currentTrue = settings.getCurrentTrue();

      Button mainScreenNew = findViewById(R.id.mainScreenNew);
      Button mainScreenCont = findViewById(R.id.mainScreenCont);
      Button mainScreenAchievements = findViewById(R.id.mainScreenAchieve);

      if (currentTrue){
      mainScreenCont.setVisibility(View.VISIBLE);
      } else {
      mainScreenCont.setVisibility(View.GONE);
      }

      if (settings.achievementsGained()){
      mainScreenAchievements.setVisibility(View.VISIBLE);
      } else {
      mainScreenAchievements.setVisibility(View.GONE);
      }

      final Animation clickAnimation = AnimationUtils.loadAnimation(this, R.anim.scale_click);

      mainScreenNew.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View view) {
      Animation.AnimationListener listener = new Animation.AnimationListener() {
      @Override
      public void onAnimationStart(Animation animation) {

      }

      @Override
      public void onAnimationEnd(Animation animation) {
      Intent gamePage = new Intent(getApplicationContext(),GamePage.class);
      gamePage.putExtra("continue", false);
      startActivity(gamePage);
      }

      @Override
      public void onAnimationRepeat(Animation animation) {

      }
      };
      clickAnimation.setAnimationListener(listener);
      view.startAnimation(clickAnimation);
      }
      });




      XML Page



      If I remove the drawableLeft and drawableStart parts then the crash changes to what appears to be an identical crash but further back in the XML code



      I have removed the previous code as it does not impact the crash



      <?xml version="1.0" encoding="utf-8"?>
      <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="maxmansung.finaljudgement.MainScreen">

      <Button
      android:id="@+id/mainScreenAchieve"
      style="@style/Widget.AppCompat.Button.Borderless.Colored"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginLeft="8dp"
      android:layout_marginTop="8dp"
      android:layout_marginRight="8dp"
      android:layout_marginBottom="8dp"
      android:drawableStart="@drawable/achievement_icon"
      android:drawableLeft="@drawable/achievement_icon"
      android:text="@string/mainScreenAchievements"
      android:textAllCaps="true"
      android:textColor="@color/colorText"
      android:textStyle="bold"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/mainScreenCont" />











      share|improve this question
















      I have spent a long time looking for an answer to this issue and seem unable to figure it out.



      An app I created through "Android Studio" has been working perfectly fine when I create an APK in debug mode, however if I create a bundle and upload it to play store then it crashes on 5 out of 11 devices (including my own) due to the exact same error:




      Issue: java.lang.RuntimeException: Unable to start activity ComponentInfo{maxmansung.finaljudgement/maxmansung.finaljudgement.MainScreen}: android.view.InflateException: Binary XML file line #65: Binary XML file line #65: Error inflating class Button




      What appears to be happening is that the app is unable to open any Buttons at all for some reason. I have tried deleting the button at the point of error but it simply changes to crashing on another button instead.





      Error Log




      FATAL EXCEPTION: main
      Process: maxmansung.finaljudgement, PID: 20309
      java.lang.RuntimeException: Unable to start activity ComponentInfo{maxmansung.finaljudgement/maxmansung.finaljudgement.MainScreen}: android.view.InflateException: Binary XML file line #65: Binary XML file line #65: Error inflating class Button
      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2793)
      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
      at android.app.ActivityThread.-wrap12(ActivityThread.java)
      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
      at android.os.Handler.dispatchMessage(Handler.java:105)
      at android.os.Looper.loop(Looper.java:156)
      at android.app.ActivityThread.main(ActivityThread.java:6524)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)
      Caused by: android.view.InflateException: Binary XML file line #65: Binary XML file line #65: Error inflating class Button
      Caused by: android.view.InflateException: Binary XML file line #65: Error inflating class Button
      Caused by: java.lang.ArrayIndexOutOfBoundsException: length=58; index=309
      at android.content.res.StringBlock.get(StringBlock.java:65)
      at android.content.res.AssetManager.getPooledStringForCookie(AssetManager.java:642)
      at android.content.res.TypedArray.loadStringValueAt(TypedArray.java:1279)
      at android.content.res.TypedArray.getString(TypedArray.java:219)
      at android.widget.TextView.(TextView.java:1157)
      at android.widget.Button.(Button.java:109)
      at android.widget.Button.(Button.java:105)
      at android.support.v7.widget.AppCompatButton.(AppCompatButton.java:71)
      at android.support.v7.widget.AppCompatButton.(AppCompatButton.java:67)
      at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:109)
      at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1024)
      at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1081)
      at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:780)
      at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:738)
      at android.view.LayoutInflater.rInflate(LayoutInflater.java:869)
      at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:832)
      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 android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
      at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
      at maxmansung.finaljudgement.MainScreen.onCreate(MainScreen.java:24)
      at android.app.Activity.performCreate(Activity.java:6910)
      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2746)
      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
      at android.app.ActivityThread.-wrap12(ActivityThread.java)
      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
      at android.os.Handler.dispatchMessage(Handler.java:105)
      at android.os.Looper.loop(Looper.java:156)
      at android.app.ActivityThread.main(ActivityThread.java:6524)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)




      Game Code



      If I keep the OnClickListener parts then the crash continues



      package maxmansung.finaljudgement;

      import android.content.Intent;
      import android.os.Bundle;
      import android.support.v7.app.AppCompatActivity;
      import android.view.View;
      import android.view.animation.Animation;
      import android.view.animation.AnimationUtils;
      import android.widget.Button;

      import maxmansung.finaljudgement.savedVariables.saveSettings;

      public class MainScreen extends AppCompatActivity {


      @Override
      public void onBackPressed() {
      System.exit(0);
      }

      @Override
      protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main_screen);

      saveSettings settings = new saveSettings(this);
      settings.updateFromSave(this);
      Boolean currentTrue = settings.getCurrentTrue();

      Button mainScreenNew = findViewById(R.id.mainScreenNew);
      Button mainScreenCont = findViewById(R.id.mainScreenCont);
      Button mainScreenAchievements = findViewById(R.id.mainScreenAchieve);

      if (currentTrue){
      mainScreenCont.setVisibility(View.VISIBLE);
      } else {
      mainScreenCont.setVisibility(View.GONE);
      }

      if (settings.achievementsGained()){
      mainScreenAchievements.setVisibility(View.VISIBLE);
      } else {
      mainScreenAchievements.setVisibility(View.GONE);
      }

      final Animation clickAnimation = AnimationUtils.loadAnimation(this, R.anim.scale_click);

      mainScreenNew.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View view) {
      Animation.AnimationListener listener = new Animation.AnimationListener() {
      @Override
      public void onAnimationStart(Animation animation) {

      }

      @Override
      public void onAnimationEnd(Animation animation) {
      Intent gamePage = new Intent(getApplicationContext(),GamePage.class);
      gamePage.putExtra("continue", false);
      startActivity(gamePage);
      }

      @Override
      public void onAnimationRepeat(Animation animation) {

      }
      };
      clickAnimation.setAnimationListener(listener);
      view.startAnimation(clickAnimation);
      }
      });




      XML Page



      If I remove the drawableLeft and drawableStart parts then the crash changes to what appears to be an identical crash but further back in the XML code



      I have removed the previous code as it does not impact the crash



      <?xml version="1.0" encoding="utf-8"?>
      <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="maxmansung.finaljudgement.MainScreen">

      <Button
      android:id="@+id/mainScreenAchieve"
      style="@style/Widget.AppCompat.Button.Borderless.Colored"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginLeft="8dp"
      android:layout_marginTop="8dp"
      android:layout_marginRight="8dp"
      android:layout_marginBottom="8dp"
      android:drawableStart="@drawable/achievement_icon"
      android:drawableLeft="@drawable/achievement_icon"
      android:text="@string/mainScreenAchievements"
      android:textAllCaps="true"
      android:textColor="@color/colorText"
      android:textStyle="bold"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/mainScreenCont" />








      java android






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 25 '18 at 10:37







      Maxmansung

















      asked Nov 24 '18 at 22:47









      MaxmansungMaxmansung

      87




      87
























          2 Answers
          2






          active

          oldest

          votes


















          0














          This type of error sometimes happens because there is a drawable involved.

          I see in your xml this @drawable/achievement_icon is used for the Button with id mainScreenAchieve.

          Is there a case that you have stored this drawable in a folder like drawable-v24 only and not in the main drawable folder?

          If this is the case then copy and paste it in the main drawable folder too.

          Otherwise in the devices with lower version this drawable is unavailable and this leads to an app crash.






          share|improve this answer
























          • I've tried removing the drawable icon (and the entire button) but the crash continues, it appears to be specific to the act of inflating an button

            – Maxmansung
            Nov 24 '18 at 23:00











          • Does this line #65 point to this Button with the drawable?

            – forpas
            Nov 24 '18 at 23:01











          • Yes, hence why I tested out removing the button with the drawable, however that resulted in this error: "android.view.InflateException: Binary XML file line #36: Error inflating class Button"

            – Maxmansung
            Nov 24 '18 at 23:08













          • Have you tried removing the style?

            – forpas
            Nov 24 '18 at 23:10











          • Yes, the crash continues without the style and the error remains the same

            – Maxmansung
            Nov 24 '18 at 23:17



















          0














          It looks like it's related to the text setting. Is your strings.xml malformed? Or is it missing from certain build types?



          Also - Having a + in this line: app:layout_constraintTop_toBottomOf="@+id/mainScreenCont" can cause problems. It doesn't need the +.






          share|improve this answer
























          • I can remove the "+" but it doesn't make a difference to the crashes. I have also Isolated the crash down to 2 influences: 1. The images in 3rd button 2. The use of onClickListeners Both of these cause the crash and removing only one of them causes it to continue

            – Maxmansung
            Nov 25 '18 at 10:28













          • So, if you remove the drawable references from your snippet above, it works? If so, have you tried setting it programmatically, instead, to see if that still crashes?

            – gtcompscientist
            Nov 25 '18 at 14:17













          • It seems that after a lot of work I have discovered it is due to using a vector image within a button which doesn't work for pre v24 OS. I am also having a problem with the animations, I suspect this is also due to using it on a button

            – Maxmansung
            Nov 25 '18 at 19:28











          • Ah! Look up useVectorCompat. I'm away from my machine, or I would help more specifically with that set up.

            – gtcompscientist
            Nov 25 '18 at 21:06











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53463020%2finflateexception-error-inflating-class-button-crash-through-play-store%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          This type of error sometimes happens because there is a drawable involved.

          I see in your xml this @drawable/achievement_icon is used for the Button with id mainScreenAchieve.

          Is there a case that you have stored this drawable in a folder like drawable-v24 only and not in the main drawable folder?

          If this is the case then copy and paste it in the main drawable folder too.

          Otherwise in the devices with lower version this drawable is unavailable and this leads to an app crash.






          share|improve this answer
























          • I've tried removing the drawable icon (and the entire button) but the crash continues, it appears to be specific to the act of inflating an button

            – Maxmansung
            Nov 24 '18 at 23:00











          • Does this line #65 point to this Button with the drawable?

            – forpas
            Nov 24 '18 at 23:01











          • Yes, hence why I tested out removing the button with the drawable, however that resulted in this error: "android.view.InflateException: Binary XML file line #36: Error inflating class Button"

            – Maxmansung
            Nov 24 '18 at 23:08













          • Have you tried removing the style?

            – forpas
            Nov 24 '18 at 23:10











          • Yes, the crash continues without the style and the error remains the same

            – Maxmansung
            Nov 24 '18 at 23:17
















          0














          This type of error sometimes happens because there is a drawable involved.

          I see in your xml this @drawable/achievement_icon is used for the Button with id mainScreenAchieve.

          Is there a case that you have stored this drawable in a folder like drawable-v24 only and not in the main drawable folder?

          If this is the case then copy and paste it in the main drawable folder too.

          Otherwise in the devices with lower version this drawable is unavailable and this leads to an app crash.






          share|improve this answer
























          • I've tried removing the drawable icon (and the entire button) but the crash continues, it appears to be specific to the act of inflating an button

            – Maxmansung
            Nov 24 '18 at 23:00











          • Does this line #65 point to this Button with the drawable?

            – forpas
            Nov 24 '18 at 23:01











          • Yes, hence why I tested out removing the button with the drawable, however that resulted in this error: "android.view.InflateException: Binary XML file line #36: Error inflating class Button"

            – Maxmansung
            Nov 24 '18 at 23:08













          • Have you tried removing the style?

            – forpas
            Nov 24 '18 at 23:10











          • Yes, the crash continues without the style and the error remains the same

            – Maxmansung
            Nov 24 '18 at 23:17














          0












          0








          0







          This type of error sometimes happens because there is a drawable involved.

          I see in your xml this @drawable/achievement_icon is used for the Button with id mainScreenAchieve.

          Is there a case that you have stored this drawable in a folder like drawable-v24 only and not in the main drawable folder?

          If this is the case then copy and paste it in the main drawable folder too.

          Otherwise in the devices with lower version this drawable is unavailable and this leads to an app crash.






          share|improve this answer













          This type of error sometimes happens because there is a drawable involved.

          I see in your xml this @drawable/achievement_icon is used for the Button with id mainScreenAchieve.

          Is there a case that you have stored this drawable in a folder like drawable-v24 only and not in the main drawable folder?

          If this is the case then copy and paste it in the main drawable folder too.

          Otherwise in the devices with lower version this drawable is unavailable and this leads to an app crash.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 24 '18 at 22:56









          forpasforpas

          10.8k2423




          10.8k2423













          • I've tried removing the drawable icon (and the entire button) but the crash continues, it appears to be specific to the act of inflating an button

            – Maxmansung
            Nov 24 '18 at 23:00











          • Does this line #65 point to this Button with the drawable?

            – forpas
            Nov 24 '18 at 23:01











          • Yes, hence why I tested out removing the button with the drawable, however that resulted in this error: "android.view.InflateException: Binary XML file line #36: Error inflating class Button"

            – Maxmansung
            Nov 24 '18 at 23:08













          • Have you tried removing the style?

            – forpas
            Nov 24 '18 at 23:10











          • Yes, the crash continues without the style and the error remains the same

            – Maxmansung
            Nov 24 '18 at 23:17



















          • I've tried removing the drawable icon (and the entire button) but the crash continues, it appears to be specific to the act of inflating an button

            – Maxmansung
            Nov 24 '18 at 23:00











          • Does this line #65 point to this Button with the drawable?

            – forpas
            Nov 24 '18 at 23:01











          • Yes, hence why I tested out removing the button with the drawable, however that resulted in this error: "android.view.InflateException: Binary XML file line #36: Error inflating class Button"

            – Maxmansung
            Nov 24 '18 at 23:08













          • Have you tried removing the style?

            – forpas
            Nov 24 '18 at 23:10











          • Yes, the crash continues without the style and the error remains the same

            – Maxmansung
            Nov 24 '18 at 23:17

















          I've tried removing the drawable icon (and the entire button) but the crash continues, it appears to be specific to the act of inflating an button

          – Maxmansung
          Nov 24 '18 at 23:00





          I've tried removing the drawable icon (and the entire button) but the crash continues, it appears to be specific to the act of inflating an button

          – Maxmansung
          Nov 24 '18 at 23:00













          Does this line #65 point to this Button with the drawable?

          – forpas
          Nov 24 '18 at 23:01





          Does this line #65 point to this Button with the drawable?

          – forpas
          Nov 24 '18 at 23:01













          Yes, hence why I tested out removing the button with the drawable, however that resulted in this error: "android.view.InflateException: Binary XML file line #36: Error inflating class Button"

          – Maxmansung
          Nov 24 '18 at 23:08







          Yes, hence why I tested out removing the button with the drawable, however that resulted in this error: "android.view.InflateException: Binary XML file line #36: Error inflating class Button"

          – Maxmansung
          Nov 24 '18 at 23:08















          Have you tried removing the style?

          – forpas
          Nov 24 '18 at 23:10





          Have you tried removing the style?

          – forpas
          Nov 24 '18 at 23:10













          Yes, the crash continues without the style and the error remains the same

          – Maxmansung
          Nov 24 '18 at 23:17





          Yes, the crash continues without the style and the error remains the same

          – Maxmansung
          Nov 24 '18 at 23:17













          0














          It looks like it's related to the text setting. Is your strings.xml malformed? Or is it missing from certain build types?



          Also - Having a + in this line: app:layout_constraintTop_toBottomOf="@+id/mainScreenCont" can cause problems. It doesn't need the +.






          share|improve this answer
























          • I can remove the "+" but it doesn't make a difference to the crashes. I have also Isolated the crash down to 2 influences: 1. The images in 3rd button 2. The use of onClickListeners Both of these cause the crash and removing only one of them causes it to continue

            – Maxmansung
            Nov 25 '18 at 10:28













          • So, if you remove the drawable references from your snippet above, it works? If so, have you tried setting it programmatically, instead, to see if that still crashes?

            – gtcompscientist
            Nov 25 '18 at 14:17













          • It seems that after a lot of work I have discovered it is due to using a vector image within a button which doesn't work for pre v24 OS. I am also having a problem with the animations, I suspect this is also due to using it on a button

            – Maxmansung
            Nov 25 '18 at 19:28











          • Ah! Look up useVectorCompat. I'm away from my machine, or I would help more specifically with that set up.

            – gtcompscientist
            Nov 25 '18 at 21:06
















          0














          It looks like it's related to the text setting. Is your strings.xml malformed? Or is it missing from certain build types?



          Also - Having a + in this line: app:layout_constraintTop_toBottomOf="@+id/mainScreenCont" can cause problems. It doesn't need the +.






          share|improve this answer
























          • I can remove the "+" but it doesn't make a difference to the crashes. I have also Isolated the crash down to 2 influences: 1. The images in 3rd button 2. The use of onClickListeners Both of these cause the crash and removing only one of them causes it to continue

            – Maxmansung
            Nov 25 '18 at 10:28













          • So, if you remove the drawable references from your snippet above, it works? If so, have you tried setting it programmatically, instead, to see if that still crashes?

            – gtcompscientist
            Nov 25 '18 at 14:17













          • It seems that after a lot of work I have discovered it is due to using a vector image within a button which doesn't work for pre v24 OS. I am also having a problem with the animations, I suspect this is also due to using it on a button

            – Maxmansung
            Nov 25 '18 at 19:28











          • Ah! Look up useVectorCompat. I'm away from my machine, or I would help more specifically with that set up.

            – gtcompscientist
            Nov 25 '18 at 21:06














          0












          0








          0







          It looks like it's related to the text setting. Is your strings.xml malformed? Or is it missing from certain build types?



          Also - Having a + in this line: app:layout_constraintTop_toBottomOf="@+id/mainScreenCont" can cause problems. It doesn't need the +.






          share|improve this answer













          It looks like it's related to the text setting. Is your strings.xml malformed? Or is it missing from certain build types?



          Also - Having a + in this line: app:layout_constraintTop_toBottomOf="@+id/mainScreenCont" can cause problems. It doesn't need the +.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 25 '18 at 1:27









          gtcompscientistgtcompscientist

          613516




          613516













          • I can remove the "+" but it doesn't make a difference to the crashes. I have also Isolated the crash down to 2 influences: 1. The images in 3rd button 2. The use of onClickListeners Both of these cause the crash and removing only one of them causes it to continue

            – Maxmansung
            Nov 25 '18 at 10:28













          • So, if you remove the drawable references from your snippet above, it works? If so, have you tried setting it programmatically, instead, to see if that still crashes?

            – gtcompscientist
            Nov 25 '18 at 14:17













          • It seems that after a lot of work I have discovered it is due to using a vector image within a button which doesn't work for pre v24 OS. I am also having a problem with the animations, I suspect this is also due to using it on a button

            – Maxmansung
            Nov 25 '18 at 19:28











          • Ah! Look up useVectorCompat. I'm away from my machine, or I would help more specifically with that set up.

            – gtcompscientist
            Nov 25 '18 at 21:06



















          • I can remove the "+" but it doesn't make a difference to the crashes. I have also Isolated the crash down to 2 influences: 1. The images in 3rd button 2. The use of onClickListeners Both of these cause the crash and removing only one of them causes it to continue

            – Maxmansung
            Nov 25 '18 at 10:28













          • So, if you remove the drawable references from your snippet above, it works? If so, have you tried setting it programmatically, instead, to see if that still crashes?

            – gtcompscientist
            Nov 25 '18 at 14:17













          • It seems that after a lot of work I have discovered it is due to using a vector image within a button which doesn't work for pre v24 OS. I am also having a problem with the animations, I suspect this is also due to using it on a button

            – Maxmansung
            Nov 25 '18 at 19:28











          • Ah! Look up useVectorCompat. I'm away from my machine, or I would help more specifically with that set up.

            – gtcompscientist
            Nov 25 '18 at 21:06

















          I can remove the "+" but it doesn't make a difference to the crashes. I have also Isolated the crash down to 2 influences: 1. The images in 3rd button 2. The use of onClickListeners Both of these cause the crash and removing only one of them causes it to continue

          – Maxmansung
          Nov 25 '18 at 10:28







          I can remove the "+" but it doesn't make a difference to the crashes. I have also Isolated the crash down to 2 influences: 1. The images in 3rd button 2. The use of onClickListeners Both of these cause the crash and removing only one of them causes it to continue

          – Maxmansung
          Nov 25 '18 at 10:28















          So, if you remove the drawable references from your snippet above, it works? If so, have you tried setting it programmatically, instead, to see if that still crashes?

          – gtcompscientist
          Nov 25 '18 at 14:17







          So, if you remove the drawable references from your snippet above, it works? If so, have you tried setting it programmatically, instead, to see if that still crashes?

          – gtcompscientist
          Nov 25 '18 at 14:17















          It seems that after a lot of work I have discovered it is due to using a vector image within a button which doesn't work for pre v24 OS. I am also having a problem with the animations, I suspect this is also due to using it on a button

          – Maxmansung
          Nov 25 '18 at 19:28





          It seems that after a lot of work I have discovered it is due to using a vector image within a button which doesn't work for pre v24 OS. I am also having a problem with the animations, I suspect this is also due to using it on a button

          – Maxmansung
          Nov 25 '18 at 19:28













          Ah! Look up useVectorCompat. I'm away from my machine, or I would help more specifically with that set up.

          – gtcompscientist
          Nov 25 '18 at 21:06





          Ah! Look up useVectorCompat. I'm away from my machine, or I would help more specifically with that set up.

          – gtcompscientist
          Nov 25 '18 at 21:06


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53463020%2finflateexception-error-inflating-class-button-crash-through-play-store%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Contact image not getting when fetch all contact list from iPhone by CNContact

          count number of partitions of a set with n elements into k subsets

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks