在远程视图中添加Horizo​​ntalListView时出错

时间:2018-06-11 10:27:54

标签: android remoteview horizontallistview

根据enter link description here recyler视图不能与远程视图一起使用。我必须在远程视图中使用Horizo​​ntalListView进行通知。我正在使用类Horizo​​ntalListView.java并在远程视图中添加它,如

<com.example.remoteviewlistviewdemo.HorizontalListView
    android:layout_width="wrap_content"
    android:layout_height="100dp"
    android:layout_below="@id/testNotification"
    android:background="@color/colorPrimary" />   

当我收到通知时。得到错误和错误是

android.view.InflateException: Binary XML file line #18: Binary XML file line #18: Error inflating class com.example.remoteviewlistviewdemo.HorizontalListView
Caused by: android.view.InflateException: Binary XML file line #18: Error inflating class com.example.remoteviewlistviewdemo.HorizontalListView
Caused by: java.lang.ClassNotFoundException: Didn't find class on path: DexPathList[[],nativeLibraryDirectories=[/system/priv-app/MiuiSystemUI/lib/arm64, /system/lib64, /vendor/lib64, /system/lib64, /vendor/lib64]]

我已经关注了此enter link description here

但没有解决方案。任何想法如何实现这一点。 在此先感谢您 请在投反对票之前考虑一下。

0 个答案:

没有答案