Diberdayakan oleh Blogger.

Jumat, 26 Februari 2016

Error: You need to use a Theme.AppCompat theme (or descendant) with the design library

by Joielechong sipayung  |  in Android Tips at  Jumat, Februari 26, 2016

If you in the middle of developing android application with Android Studio when the day before it's working fine, but in the next editing you encountered an error like this:

Binary XML file line #2: Error inflating class android.support.design.widget.CoordinatorLayoutat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)...
Caused by: java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the design library.

Please go and check your module library and replace the style of it with Theme.AppCompat theme (or descendant). It's not your fault, it's because you're using some library that too old or not using the same theme with your app code.

Don't waste your time by pulling your hair..;).


Happy Programming.

0 comments:

Silahkan tinggalkan komentar anda: