Error inflating class fragment

后端 未结 30 2666
长发绾君心
长发绾君心 2020-11-22 14:38

I get the Error

Unable to start activity ComponentInfo{de.androidbuch.activiti/de.androidbuch.activiti.task.Activity}: android.view.InflateException: Binar         


        
30条回答
  •  悲&欢浪女
    2020-11-22 15:06

    Make sure there is no exception raised in the onCreateView method of the fragment. If any exception is raised in this method, logcat won't show exact details of the exception, instead it always shows the message:

    Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.fragment" 
    on path: DexPathList[[zip file "/data/app/com.package/base.apk"],
    nativeLibraryDirectories=[/data/app/com.package/lib/arm64, /vendor/lib64, /system/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    

提交回复
热议问题