Material-calendarview: (RESOLVED) App Crashing Run time XML error

Created on 12 Feb 2018  路  4Comments  路  Source: prolificinteractive/material-calendarview

RESOLVED!
I added "next" string in my string.xml file and then i renamed it to string_next, so material-celendarview was not able to read it. Resolved by chaging string_next to next....

This crash is happening from last 2 days. I havent changed anything in my project and other external dependencies are working fine. but material-calendarview gives me this run time error.

Here is my error log:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.scoratech.scoraxchange, PID: 30847
android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.prolificinteractive.materialcalendarview.MaterialCalendarView
Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class com.prolificinteractive.materialcalendarview.MaterialCalendarView
Caused by: java.lang.reflect.InvocationTargetException

My XML Code:
` android:id="@+id/myEventsCalendar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginEnd="@dimen/marginThirty"
android:layout_marginStart="@dimen/marginThirty"
app:mcv_selectionColor="@color/colorPrimary" />

            <com.prolificinteractive.materialcalendarview.MaterialCalendarView
                android:id="@+id/deptEventsCalendar"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_marginEnd="@dimen/marginThirty"
                android:layout_marginStart="@dimen/marginThirty"
                android:visibility="gone"
                app:mcv_selectionColor="@color/colorPrimary" />

`

Here is Android Studio preview...
image

Please let me know what causing this problem', Thanks

Most helpful comment

i removed and added again but same problem have you solved it
Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class com.prolificinteractive.materialcalendarview.MaterialCalendarView
Caused by: java.lang.reflect.InvocationTargetExceptionr

All 4 comments

Hi,

How do you resolved this ? It is still crashing for me. I checked, It has "next" string in my library project. Please guide on resolving this. It is super important.

@sirajsumra , i removed this library from gradle -> sync -> added again -> sync... resolved

i removed and added again but same problem have you solved it
Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class com.prolificinteractive.materialcalendarview.MaterialCalendarView
Caused by: java.lang.reflect.InvocationTargetExceptionr

Your application base theme should be Material Theme.
Ex:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gibsonndemanga picture gibsonndemanga  路  6Comments

ghost picture ghost  路  4Comments

marcello-marabita-mblabs picture marcello-marabita-mblabs  路  8Comments

yuanliu666 picture yuanliu666  路  4Comments

broakenmedia picture broakenmedia  路  5Comments