This issue has been an ache for me and i'm not entirely sure what's causing it any help would be appreciated.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tencil/com.example.tencil.login}: android.view.InflateException: Binary XML file line #73 in com.example.tencil:layout/activity_login: Binary XML file line #73 in com.example.tencil:layout/activity_login: Error inflating class Button
Caused by: android.view.InflateException: Binary XML file line #73 in com.example.tencil:layout/activity_login: Binary XML file line #73 in com.example.tencil:layout/activity_login: Error inflating class Button
Caused by: android.view.InflateException: Binary XML file line #73 in com.example.tencil:layout/activity_login: Error inflating class Button
Caused by: java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.AppCompat (or a descendant).
Now I've googled this issue countless of times and I can't see where I'm going wrong any help would be appreciated.
<Button
android:id="@+id/btn_login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/password"
android:layout_marginLeft="20dp"
android:layout_marginTop="15dp"
android:layout_marginRight="20dp"
android:backgroundTint="#14b9d5"
android:fontFamily="@font/roboto_regular"
android:text="@string/login"
android:textColor="@android:color/white" />
<!-- android:background="@drawable/btn_custom"-->
GETTING THIS PROBLEM NOW:
Hey Team,
I have this issue now : Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
enter code here