Git Product home page Git Product logo

Comments (1)

sockeqwe avatar sockeqwe commented on July 18, 2024

Hi, I guess you are using Android Studio 2.0 and /or gradle incremental
builds. The problem is that incremental builds break annotation processing.
This basically affects all Annotation processor libraries out there like
dagger etc.

google/dagger#298

Please try to disable incremental builds (see how in the link above) and
let me know if that issue has been caused by incremental builds.

Andrei Buneyeu [email protected] schrieb am Mi., 24. Feb. 2016,
21:10:

Hey,
thanks for the library!
do you have any thought why adapter delegate is not being generated
sometimes?

java.lang.RuntimeException: Could not find adapter delegate for
com.buneyeu.myapp.fragment.messages.MessagesAdapter@554b2a1
at
com.hannesdorfmann.annotatedadapter.AutoSupportDelegators.getDelegator(AutoSupportDelegators.java:22)
at
com.hannesdorfmann.annotatedadapter.support.recyclerview.SupportAnnotatedAdapter.(SupportAnnotatedAdapter.java:36)
at
com.buneyeu.myapp.adapters.BaseListAnnotatedAdapter.(BaseListAnnotatedAdapter.java:19)
at
com.buneyeu.myapp.fragment.messages.MessagesAdapter.(MessagesAdapter.java:71)
at
com.buneyeu.myapp.fragment.messages.MessagesFragment.onCreate(MessagesFragment.java:65)
at
com.buneyeu.myapp.fragment.messages.MessagesFragment_.onCreate(MessagesFragment_.java:38)
at android.support.v4.app.Fragment.performCreate(Fragment.java:1939)
at
android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1029)
at
android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1248)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
at
android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1613)
at
android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Clean rebuild helps things, but it's annoying to unexpectedly see the
crash. AutoSupportDelegators contains, let's say, only 2 of 7-8 annotated
adapters.


Reply to this email directly or view it on GitHub
#22.

from annotatedadapter.

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.