Coder Social home page Coder Social logo

Comments (5)

stormlei avatar stormlei commented on May 1, 2024

+1 @mzule

from activityrouter.

mzule avatar mzule commented on May 1, 2024

你的 butterknife 使用的官方的 AnnotationProcessor 吗?可能与 apt 之间有冲突,需要做一下改动,使用官方的 AnnotationProcessor 来处理 ActivityRouter.

根目录 build.gradle 相关的配置不再需要了,直接删掉。

项目的 build.gradle 相关配置简化成如下。

dependencies {
    compile 'com.github.mzule.activityrouter:activityrouter:1.2.2'
    annotationProcessor 'com.github.mzule.activityrouter:compiler:1.1.7'
}

如果你确定成功了,我会在 readme 里面补充一下说明。或者欢迎给我提 PR.

from activityrouter.

Ryokooo avatar Ryokooo commented on May 1, 2024

嗯..这样就可以用了..谢谢!

from activityrouter.

simplehych avatar simplehych commented on May 1, 2024

确实存在这个问题,和ButterKnife冲突,请有时间更新一下readmine
另:这个配置是应该在项目的每一个module都进行配置的吧,包括主module

dependencies {
    compile 'com.github.mzule.activityrouter:activityrouter:1.2.2'
    annotationProcessor 'com.github.mzule.activityrouter:compiler:1.1.7'
}

from activityrouter.

mzule avatar mzule commented on May 1, 2024

谢谢提醒,我待会就改 readme, 另外不是和 ButterKnife 冲突,是官方的 annotationProcessor 和 apt 不能共用。

是否需要在所有 module 配置这个要看需求。

from activityrouter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.