Git Product home page Git Product logo

Comments (8)

AlexanderThiele avatar AlexanderThiele commented on May 25, 2024 1

I had the same problem.

In my project we're using a different annotation processor plugin:
apply plugin: 'com.neenbedankt.android-apt'

And i fixed this crash by using apt instead of annotationProcessor:

compile 'com.github.matthiasrobbers:shortbread:1.0.0'
apt 'com.github.matthiasrobbers:shortbread-compiler:1.0.0'

from shortbread.

MatthiasRobbers avatar MatthiasRobbers commented on May 25, 2024

The code generation did not complete. Hard to tell what the exact issue is. Did you add any Shortcut annotations yet? Can post the elements and the shortcuts so I can try to reproduce? Or even better, point me to a sample project with that I can reproduce it. Thanks!

from shortbread.

gargas avatar gargas commented on May 25, 2024

I am also getting the same error

from shortbread.

MatthiasRobbers avatar MatthiasRobbers commented on May 25, 2024

@gargas I tried to reproduce but the only state where I get the ClassNotFoundException is when I have zero @Shortcut annotations in my code. That is a bug and I will fix it but that is probably not the case here, right?

Also are you using other annotation processors that are not using the annotationProcessor notation in gradle? Are you using proguard?

from shortbread.

gargas avatar gargas commented on May 25, 2024

I had added @shortcut annotation in several activities. yes i am using proguard

from shortbread.

MatthiasRobbers avatar MatthiasRobbers commented on May 25, 2024

Just checked again, it works with proguard.

I want to fix this but I need to reproduce it. Can you post your build.gradle by any chance? Is there anything special with your project like using an old version of the Android Gradle Plugin or something? As written before, a sample project would be the best.

from shortbread.

dlackty avatar dlackty commented on May 25, 2024

Same problem here even without proguard. Trying to figure out what happened.

from shortbread.

MatthiasRobbers avatar MatthiasRobbers commented on May 25, 2024

Thanks, @AlexanderThiele!

So the solution is to either use the old apt as a workaround

compile 'com.github.matthiasrobbers:shortbread:1.0.0'
apt 'com.github.matthiasrobbers:shortbread-compiler:1.0.0'

or better, migrate your project to the new built-in annotationProcessor syntax.
Migration guide: https://bitbucket.org/hvisser/android-apt/wiki/Migration

from shortbread.

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.