使用自定義的view或者引用第三方控件出錯

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.topmax.cargo.ui1.HuzAlertController$RecycleListView" on path: DexPathList[[zip file "/data/app/com.topmax.cargo-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.topmax.cargo-1, /vendor/lib, /system/lib]]


android.view.InflateException: Binary XML file line #26: Error inflating class com.topmax.cargo.ui1.HuzAlertController$RecycleListView

出現這些錯誤一般都是佈局文件引用自定view或者控件的包名寫錯了:比如說我要使用這個HuzAlertController,我在xml中


將包名寫錯了,就會出現這個錯誤,使用第三方控件或者自定義的一定要注意包名路徑

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章