姚宇(YaoYu)
姚宇(YaoYu)
Thanks @JakeWharton reply. I open the butter knife debug, run the app, the logcat shows the following log: ``` ...... D/ButterKnife: Looking up binding for com......activity.MainActivity D/ButterKnife: Not found. Trying...
@imaiya 并没有,其实有个简单的解决办法,直接把butterknife挂在app module里面,而不在library里挂,这样就不会出现问题,不过这么搞不符合组件开发而已。不仅仅是在studio3.0,在2.3的时候用butterknife挂在library里也是会这样的,所以我不懂是不是配置没有配置正确还是butterknife有bug > I encountered the same problem,user gradle:3.0.0 and butterknife 8.8.1; ButterKnife.bind(this) in library, @bindview(R.id.xx) in app, exception :NullPointerException @qinxianyuzou 兄弟你这个问题解决了吗,我升级到3.0遇到这个问题,很烦
我的项目更加复杂,项目架构是主管架构的,一个基础library库,然后一个基类library库,最后才是app的一层依赖一层,我不知道是不是这个原因导致了butterknife失效了,如果是,那就麻烦了 > @qinxianyuzou 对啊,我这边是有基础library,在library的基类中bind(this),在app具体页面中使用bindview,之前使用7.x是没有问题的,但是因为升级3.0需要使用8.x,升级之后就报空了;如果单独拎出来会破坏基础库的机构,不是很想这样做,如果找到好的解决方案callback一下哈
@wvisible Is it added to the app module instead of added to the library?
@wvisible You're right, this method can solve the problem, but doing so is tantamount to direct the butter knife on the app module Nothing to do with the library, which...
@wimvogt Yes, I know this, but it does not solve the problem of using a butterknife in a library. > you can add > > dependencies { > ...... >...
@shenwenbin123 No, at the moment I can only solve the problem by loading butterknife into the application module.
> 最新的不支持4.5.4版本了,必须升级4.6才能显示 用旧版的能搜刮吗?
> 在emby的config目录里有个plugins目录,放下边就行了 拷贝进去之后看不到插件