After login when starting MainActivity app crashes trying to inflate a view
See original GitHub issue Caused by: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.astuetz.PagerSlidingTabStrip
Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12
in this line
setContentView(R.layout.chat_sdk_activity_view_pager);
in order to start an app I have to remove this line from PagerSlidingTabStrip style
<item name="pstsShouldExpand">true</item>
My phone is Samsung note 4, with stock android version 6.0.1 tell me what other info I could provide.
This happens when I compile official rep myself, demo works fine
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Android app crashes when inflating new view element
The Error says you have a ClassCastException , which means you are not casting the classes properly. Most of the people seem to...
Read more >Android App Crashing on Open · Issue #167 - GitHub
Using v3.0.6 and React Native 0.54, API 26. I get no build errors but with this in MainActivity.java the app crashes as soon...
Read more >App crashing after using intent to open a new activity after login.
I have been trying to get my app to redirect to a new activity after login, I have tried almost everything to no...
Read more >error inflating resources, bug in gradle plugin 2.2 [37099757 ...
The app compiles but crashes on start. Here is the stack trace: E/AndroidRuntime: FATAL EXCEPTION: main. Process: com.techyos.authfireconstraint, PID: 2898
Read more >Migrate to the Navigation component - Android Developers
If your app uses a DrawerLayout , you might have a lot of configuration logic in your activity that manages opening and closing...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This happens on android 7.1.2, Nexus 6P. I got desperate and simply cloned that library (it’s one java file and three xml files) into chat ui sdk and commented out the line in the java there that crashes for whatever reason.
Whoever wrote this needs to test it by making a new project and following their directions - they would see all these problems right away.
The PagerSlidingTabStrip has been replaced with a TabLayout so this should be fixed in version
4.0.7
.