-
Notifications
You must be signed in to change notification settings - Fork 477
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
InflateException coming for few android 7.0 devices #27
Comments
You can include ,values folders inside your project instead lib.that might help you |
Did you add ssp or only sdp? |
Yah. I missed the point of separate lib for non text and text views. Thanks !! |
Code: |
I don't think so it was because of ssp !! May be binding error I guess !! |
Can you try rebuilding the project? I just tried a similar code on android 7.0 emulator and it worked well. |
This is not an always. Crash is happening on few android 7.0 devices ( mainly on moto G). Even I also tested it for nexus and pixal and samsung device, it is working fine. Do you know why it is not working for few devices ? |
Is it possible that you will try to fix it and send back a pull request? |
Yah , i am working on this issue. Today i found that this could be because of memory leak mentioned on this stackoverflow page : http://stackoverflow.com/questions/4512981/android-view-inflateexception-binary-xml-file-line-12-error-inflating-class. |
Please update your textview xml tag here, this will help to fix the inflate issue. @hmittal1 |
Seems like it doesn't relate to sdp, please let me know if I'm wrong. |
Hi, I get this issue too on Android 7 when user use split-screen mode How do you think about that @elhanan-mishraky ? Thanks a lot |
@vankhoa01 is it possible that you will create a pull request with the required fix? |
I just duplicate values-sw300dp and named is values for fixing. Could you give me some hint for this case ? |
@vankhoa01 I will try to fix it this week. |
Great |
@vankhoa01 the fix is published, please use 1.0.5 and let me know if it goes well :) |
InflateException is coming for few android device having version 7.0 on eample code
android:layout_marginTop="@dimen/_45ssp".
Stacktrace:
Caused by: android.view.InflateException: Binary XML file line #33: Binary XML file line #33: Error inflating class TextView
Caused by: android.view.InflateException: Binary XML file line #33: Error inflating class TextView
Caused by: java.lang.UnsupportedOperationException: Can't convert value at index 2 to dimension: type=0x1
at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:720)
at android.widget.TextView.(TextView.java:1088)
at android.widget.TextView.(TextView.java:704)
at android.support.v7.widget.bm.(Unknown Source)
at android.support.v7.widget.bm.(Unknown Source)
The text was updated successfully, but these errors were encountered: