Coder Social home page Coder Social logo

Comments (7)

cbfg5210 avatar cbfg5210 commented on May 24, 2024

clean一次再跑就没这个问题了,没clean的话就会有一个Application会重复调用到。

from appjoint.

cbfg5210 avatar cbfg5210 commented on May 24, 2024

有办法避免这个问题吗?因为每次clean都挺耗时间的,如果不clean,由于重复初始化导致了应用崩溃。

from appjoint.

PrototypeZ avatar PrototypeZ commented on May 24, 2024

您好,方便更详细描述一下问题吗?我感觉可能和Instant Run 有关系,比如说,修改的是主App类?Router 类?或者修改模块App类后,再增量编译,就能导致复现的?

from appjoint.

cbfg5210 avatar cbfg5210 commented on May 24, 2024

您好,方便更详细描述一下问题吗?我感觉可能和Instant Run 有关系,比如说,修改的是主App类?Router 类?或者修改模块App类后,再增量编译,就能导致复现的?

我没有开Instant Run,Run了几次就偶尔出现了,clean了之后再Run或者删除了手机上的app再Run就没有重复初始化。是用了priority这个注解才发现这个问题。

from appjoint.

LeonDevLifeLog avatar LeonDevLifeLog commented on May 24, 2024

可能 https://github.com/PrototypeZ/AppJoint/pull/18/files#diff-bbc0ff2084f02d1be5ffc85bac4bb09aR461
这里可能出现重复添加的情况,待我修复验证一下

from appjoint.

BigBigDeBoy avatar BigBigDeBoy commented on May 24, 2024

我也遇到了 重复执行moduleapplication 继承application 重复执行oncreate

from appjoint.

chinwetang avatar chinwetang commented on May 24, 2024

我发现 moduleapplication 存在两个同class的对象,它会导致重复执行application的oncreate

from appjoint.

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.