Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's crash in release mode and logcat showing Binary XML file line #283: Error inflating class com.chivorn.smartmaterialspinner.SmartMaterialSpinner #66

Open
nabeelhafeez opened this issue Dec 23, 2022 · 1 comment

Comments

@nabeelhafeez
Copy link

I develop my app in debug mode, It's working fine in debug mode but when I build in release mode then app crashing at this point " Binary XML file line #283: Error inflating class com.chivorn.smartmaterialspinner.SmartMaterialSpinner". Kindly guide asap how to fix it for make signed apk for play store.

@JosueGramajo
Copy link

Same error here after updating to AGP 8.0.5. Working fine if the app is running in debug mode, the crash happens only generating a release APK or App bundle.

Crashlytics logs on the crash:

Fatal Exception: android.view.InflateException
Binary XML file line #158 in com.digitalgeko.promerica:layout/fragment_beneficiaries: Binary XML file line #158 in com.digitalgeko.promerica:layout/fragment_beneficiaries: Error inflating class com.chivorn.smartmaterialspinner.SmartMaterialSpinner
Caused by android.view.InflateException
Binary XML file line #158 in com.digitalgeko.promerica:layout/fragment_beneficiaries: Error inflating class com.chivorn.smartmaterialspinner.SmartMaterialSpinner

Caused by java.lang.reflect.InvocationTargetException

Caused by java.lang.RuntimeException
Font asset not found res/59.otf
android.graphics.Typeface.createFromAsset (Typeface.java:1189)
com.chivorn.smartmaterialspinner.SmartMaterialSpinner.initAttributes (SmartMaterialSpinner.java:277)
com.chivorn.smartmaterialspinner.SmartMaterialSpinner.init (SmartMaterialSpinner.java:248)
com.chivorn.smartmaterialspinner.SmartMaterialSpinner.<init> (SmartMaterialSpinner.java:228)
java.lang.reflect.Constructor.newInstance0 (Constructor.java)
java.lang.reflect.Constructor.newInstance (Constructor.java:343)
android.view.LayoutInflater.createView (LayoutInflater.java:858)
android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:1010)

Did you find any fix for this in the end @nabeelhafeez ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants