Skip to content

butterknife8.0及以上在Small中使用找不到组件ID,为空报错的问题 #268

@mygift2016

Description

@mygift2016

butterknife8.0及以上在Small中使用找不到组件ID,为空报错的问题,请联调测试

Activity

chen397254698

chen397254698 commented on Aug 13, 2016

@chen397254698

我也出现了类似问题, 在宿主中可以使用butterknife注入, 但是在其他插件中不行,可以使用findviewbyid。 butterknife也是通过id来定位空间的,是不是small为了避免id冲突而重新生成的id,butterkinfe识别的还是旧的id;

通过查找build-small -> small-pre-ids -> app-R.txt 下的 view_page id为0x7f0c015c
而在build下R文件中找到 view_page id为0x7f0c00ad

pessonljxpd

pessonljxpd commented on Aug 23, 2016

@pessonljxpd

现在这个问题处理到什么程度了?我最近也遇到了,除了butterKnife的注解找不到控件ID外,其他的用到 其他框架的注解的控件也不行。

galenlin

galenlin commented on Aug 23, 2016

@galenlin
Member

暂未处理,预计在下周处理。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @galenlin@pessonljxpd@chen397254698@mygift2016

        Issue actions

          butterknife8.0及以上在Small中使用找不到组件ID,为空报错的问题 · Issue #268 · wequick/Small