Coder Social home page Coder Social logo

Comments (6)

songzhw avatar songzhw commented on May 2, 2024

我是在Android2.3下, 开启不开启InstanceRun都启动不了。 (我用的手机,不是模拟器)
后来改annotationProcessor为apt, 这才启动成功。 希望这对你有帮助

from arouter.

xie123 avatar xie123 commented on May 2, 2024

改annotationProcessor为apt?那意思是gradle的版本使用的是<2.2吗?我使用的是2.3的版本

from arouter.

songzhw avatar songzhw commented on May 2, 2024

我用的是AS 2.3, 但使用annotationProcessor仍不能跳转, 出toast说 no such router。 改为apt后就好了

from arouter.

zhi1ong avatar zhi1ong commented on May 2, 2024
  1. Instant Run是支持的,需要注意的是,如果开启了InstantRun,要在调用init之前调用openDebug,这么做是为了保证线上安全

  2. annotationProcessor 最好不要和apt混用,如果有其他的sdk用了apt,要都用apt,要么都改成annotationProcessor,区别就是一个是三方开发者写的,一个是google写的,功能类似。

from arouter.

xie123 avatar xie123 commented on May 2, 2024

确实,我在把openDebug在初始化之前调用就可以了。谢谢了。不过这点在文档中确实没有明确写道。

from arouter.

zhi1ong avatar zhi1ong commented on May 2, 2024

三.3 中明确提到了这部分的哦

from arouter.

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.