I encountered a problem when creating a project in Android Studio. (Version 1.5.1)
I describe my actions step-by-step:
java.lang.NoSuchMethodError: com.android.ide.common.rendering.api.LayoutlibCallback.getXmlFileParser(Ljava/lang/String;)Lorg/xmlpull/v1/XmlPullParser;
Thrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method.Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.
Your app must target Android 6.0 (API level 23) to enable this behavior; you do not need to add any additional code.
Just select "API 23: Android 6.0" in Preview Section .