
我正在尝试在Android 2.2项目中使用GrIDLayout,并在我的工作区中安装了grIDlayout_v7项目后,将其添加到我的项目AndroID DependencIEs中,为其自定义属性添加自定义xmlns,并将其嵌入到我的xml布局中:
<androID.support.v7.Widget.GrIDLayout androID:layout_wIDth="match_parent" androID:layout_height="300dp" grID:columnCount="2" grID:rowCount="3" > <include androID:layout_wIDth="match_parent" androID:layout_height="match_parent" layout="@layout/quick_contact" /> <include androID:layout_wIDth="match_parent" androID:layout_height="match_parent" layout="@layout/quick_contact" /> <include androID:layout_wIDth="match_parent" androID:layout_height="match_parent" layout="@layout/quick_contact" /> <include androID:layout_wIDth="match_parent" androID:layout_height="match_parent" layout="@layout/quick_contact" /> <include androID:layout_wIDth="match_parent" androID:layout_height="match_parent" layout="@layout/quick_contact" /> <include androID:layout_wIDth="match_parent" androID:layout_height="match_parent" layout="@layout/quick_contact" /></androID.support.v7.Widget.GrIDLayout>我在运行时开始收到以下异常:
java.lang.classNotFoundException: DIDn't find class "androID.support.v7.Widget.GrIDLayout" on path: DexPathList[[zip file "system/framework/androID.test.runner.jar", zip file "data/app/<app package>.apk"], nativelibraryDirectorIEs=[data/app-lib/<app package>, /vendor/lib, /system/lib]]我已经尝试过清理和重建,删除库并再次添加它但无济于事.
关于可能导致这种情况的任何想法?
解决方法:
我看到了这个错误.对我来说,我必须在我的依赖项中特别包含网格布局,如下所示:
dependencIEs { ... compile 'com.androID.support:grIDlayout-v7:18.0.+'}有关如何包含支持库的更多信息,请参阅此处:https://developer.android.com/tools/support-library/features.html
总结以上是内存溢出为你收集整理的GridLayout兼容性 – ClassNotFoundException:未找到类“android.support.v7.widget.GridLayout”全部内容,希望文章能够帮你解决GridLayout兼容性 – ClassNotFoundException:未找到类“android.support.v7.widget.GridLayout”所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)