question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
StevenWoocommented, Nov 5, 2017

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.

0reactions
bensmileycommented, Dec 14, 2017

The PagerSlidingTabStrip has been replaced with a TabLayout so this should be fixed in version 4.0.7.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found