Closed MaYunFei closed 7 years ago
感觉是个适配的问题,换了个手机好了,我之前是 moto g 刷的CM14 android7.0
你好,从Log来看是找不到类 android.view.vector
:
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.vector"
这个是啥呢?是不是没有打包宿主或插件里。
可以看下我附上的demo工程就用的
compile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
compile "com.android.support:support-v4:$rootProject.supportLibraryVersion"
compile "com.android.support:design:$rootProject.supportLibraryVersion"
compile "com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion"
compile "com.squareup.retrofit2:converter-gson:$rootProject.retrofitVersion"
compile "com.squareup.retrofit2:adapter-rxjava:$rootProject.retrofitVersion"
compile "com.squareup.okhttp3:logging-interceptor:$rootProject.okhttpVersion"
compile "com.squareup.okhttp3:okhttp:$rootProject.okhttpVersion"
compile "io.reactivex:rxandroid:$rootProject.rxandroidVersion"
compile "io.reactivex:rxjava:$rootProject.rxjavaVersion"
换了个手机居然可以了,android.view.vector
这个类我也搜过了,没有用到,Google也搜过了没有什么信息,我这几天再试试
后来没有出现这个问题,先关闭了
错误报告
你做了什么?
我在
lib*
模块中自定义了个view
,使用 inflate 添加子控件,app*
模块引用,单独编译运行是可以的,但是打包成插件整体运行时不可以的,(ps 我后来又写了个demo 是可以运行的,但是这个demo就是运行不了) 工程 https://github.com/MaYunFei/smalltest你期望的结果是什么?
Small能够正确编译并正确运行。
实际结果是什么?
后来发现 Small 启动时报了个错误
运行报错,报错信息如下:
Small环境
Compile-time
Bundles
Runtime