Comments (8)
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.
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.
I am also getting the same error
from shortbread.
@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.
I had added @shortcut annotation in several activities. yes i am using proguard
from shortbread.
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.
Same problem here even without proguard. Trying to figure out what happened.
from shortbread.
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)
- Use strings for labels HOT 1
- Do not special work HOT 2
- Error:(8, 26) error: cannot find symbol class ShortcutInfo HOT 2
- Method annotations doesn`t work HOT 1
- Support for Nova Launcher HOT 1
- 'shortbread.ShortcutProcessor' less than -source '1.8' HOT 1
- change direction and font HOT 1
- Error:(9, 36) error: cannot find symbol class Activity HOT 1
- Multiple shortcuts in same Activity HOT 2
- API support HOT 1
- Not working on Samsung J2 HOT 1
- Ability to remove and add shortcuts [Enhancement] HOT 2
- Is there a method call back when a shortcut is received by an activity? HOT 1
- Support for Java 8 HOT 1
- Support for Kotlin HOT 2
- Not working on emulator(Android Q) HOT 1
- not working in Kotlin HOT 1
- Support for dynamic app shortcuts HOT 6
- Crashing on onCreate() Application HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shortbread.