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.

The app crashes while the activity is launching

See original GitHub issue

I was trying this library as per the readme.md I added that dependency and the repository jcenter() already existed In the layout file I added the tag as given in the readme

Actual Behavior

The app crashes while the activity is loading

FATAL EXCEPTION: main
                                                                            Process: xyz.xenial.abhinav.dataentry, PID: 5881
                                                                            java.lang.RuntimeException: Unable to start activity ComponentInfo{xyz.xenial.abhinav.dataentry/xyz.xenial.abhinav.dataentry.InvestDailyActivity}: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class devs.mulham.horizontalcalendar.HorizontalCalendarView
                                                                                at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426)
                                                                                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)
                                                                                at android.app.ActivityThread.-wrap11(ActivityThread.java)
                                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)
                                                                                at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                                at android.os.Looper.loop(Looper.java:148)
                                                                                at android.app.ActivityThread.main(ActivityThread.java:5443)
                                                                                at java.lang.reflect.Method.invoke(Native Method)
                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
                                                                             Caused by: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class devs.mulham.horizontalcalendar.HorizontalCalendarView
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
                                                                                at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:286)
                                                                                at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
                                                                                at xyz.xenial.abhinav.dataentry.InvestDailyActivity.onCreate(InvestDailyActivity.java:21)
                                                                                at android.app.Activity.performCreate(Activity.java:6259)
                                                                                at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)
                                                                                at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
                                                                                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490) 
                                                                                at android.app.ActivityThread.-wrap11(ActivityThread.java) 
                                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354) 
                                                                                at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                                at android.os.Looper.loop(Looper.java:148) 
                                                                                at android.app.ActivityThread.main(ActivityThread.java:5443) 
                                                                                at java.lang.reflect.Method.invoke(Native Method) 
                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728) 
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 
                                                                             Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class devs.mulham.horizontalcalendar.HorizontalCalendarView
                                                                                at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:776)
                                                                                at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
                                                                                at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:374) 
                                                                                at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:286) 
                                                                                at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) 
                                                                                at xyz.xenial.abhinav.dataentry.InvestDailyActivity.onCreate(InvestDailyActivity.java:21) 
                                                                                at android.app.Activity.performCreate(Activity.java:6259) 
                                                                                at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130) 
                                                                                at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379) 
                                                                                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490) 
                                                                                at android.app.ActivityThread.-wrap11(ActivityThread.java) 
                                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354) 
                                                                                at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                                at android.os.Looper.loop(Looper.java:148) 
                                                                                at android.app.ActivityThread.main(ActivityThread.java:5443) 
                                                                                at java.lang.reflect.Method.invoke(Native Method) 
                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728) 
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 
                                                                             Caused by: java.lang.ClassNotFoundException: Didn't find class "devs.mulham.horizontalcalendar.HorizontalCalendarView" on path: DexPathList[[zip file "/data/app/xyz.xenial.abhinav.dataentry-2/base.apk"],nativeLibraryDirectories=[/data/app/xyz.xenial.abhinav.dataentry-2/lib/arm, /vendor/lib, /system/lib]]
                                                                                at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
                                                                                at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
                                                                                at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
                                                                                at android.view.LayoutInflater.createView(LayoutInflater.java:583)
                                                                                at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
                                                                                at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) 
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:835) 
                                                                                at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798) 
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:515) 
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:374) 
                                                                                at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:286) 
                                                                                at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) 
                                                                                at xyz.xenial.abhinav.dataentry.InvestDailyActivity.onCreate(InvestDailyActivity.java:21) 
                                                                                at android.app.Activity.performCreate(Activity.java:6259) 
                                                                                at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130) 
                                                                                at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379) 
                                                                                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490) 
                                                                                at android.app.ActivityThread.-wrap11(ActivityThread.java) 
                                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354) 
                                                                                at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                                at android.os.Looper.loop(Looper.java:148) 
                                                                                at android.app.ActivityThread.main(ActivityThread.java:5443) 
                                                                                at java.lang.reflect.Method.invoke(Native Method) 
                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728) 
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 
                                                                            	Suppressed: java.lang.NoClassDefFoundError: devs.mulham.horizontalcalendar.HorizontalCalendarView
                                                                                at dalvik.system.DexFile.defineClassNative(Native Method)
                                                                                at dalvik.system.DexFile.defineClass(DexFile.java:226)
                                                                                at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
                                                                                at dalvik.system.DexPathList.findClass(DexPathList.java:338)
                                                                                at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
                                                                                		... 25 more
                                                                            	Suppressed: java.lang.ClassNotFoundException: devs.mulham.horizontalcalendar.HorizontalCalendarView
                                                                                at java.lang.Class.classForName(Native Method)
                                                                                at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
                                                                                at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
                                                                                at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
                                                                                		... 24 more
                                                                             Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
Kamoskocommented, Aug 23, 2018

Can you solve it? Thanks

0reactions
aalap03commented, Jan 3, 2020

this is because of using this library in project supporting andoridX, this library is not working with androidX even after enabling jetifier in gradle.properties.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android: app crashes on starting new activity - Stack Overflow
You need to set the content to the activity first. You can findViewById of the current view hierarchy set to the activity.
Read more >
Crashes | Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
My app crashes when start new activity - CodeProject
My problem is when I open new activity when pressing button an error accoutred "Unfortunately, ISPcheck has stopped".
Read more >
Unexpected App Crashes on Android and How to Deal with ...
When the user navigates back to the app from the background, if the app process was killed, the app would restart from the...
Read more >
Why do my apps keep crashing on Android, How to fix it
The easiest way to fix an app that keeps crashing on your Android smartphone is to simply force stop it and open it...
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