Rendering Problems Exception raised during rendering: com.android.ide.common.rendering.api.LayoutlibCallback

前端 未结 5 793
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 13:21

I encountered a problem when creating a project in Android Studio. (Version 1.5.1)

I describe my actions step-by-step:

  • Open Android Studio.
  • Cr
5条回答
  •  隐瞒了意图╮
    2020-12-07 14:01

    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 .

提交回复
热议问题