Comments (4)
JavaPoet 1.7 has that method, so it has to be another dependency. Can you give me a full list of dependencies? I've seen this before with Dagger 2 before version 2.4.
from auto-value-with.
Here's the branch of the project I am trying to update. https://github.com/bnorm-software/barkeep-testing/tree/withers-update You can look at the pom file to see what dependencies I have.
from auto-value-with.
Two solutions that fix it for me:
- Update to Dagger 2.4
- Add JavaPoet before Dagger to the dependencies.
<dependency>
<groupId>com.squareup</groupId>
<artifactId>javapoet</artifactId>
<version>1.7.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.dagger</groupId>
<artifactId>dagger</artifactId>
<version>${dagger.version}</version>
</dependency>
<dependency>
<groupId>com.google.dagger</groupId>
<artifactId>dagger-compiler</artifactId>
<version>${dagger.version}</version>
<scope>provided</scope>
</dependency>
The latter is probably safer because Dagger 2.4 uses JavaPoet 1.6, so it will fail again if any annotation processor uses something added in JavaPoet 1.7.
from auto-value-with.
Awesome. That worked for me as well. Thanks!
from auto-value-with.
Related Issues (20)
- Don't attempt to implement non-abstract 'with' methods HOT 1
- The generated class uses an inexistent constructor when using AutoValue's Builder HOT 1
- Get methods are not handled properly HOT 11
- Is @CheckResult used? And if not, why? HOT 3
- 0.1.2's wither implementations return wrong AutoValue class for Nested classes
- Add support for generic arguments HOT 1
- Adding with-er methods generates a lot of warnings HOT 1
- @Override annotation is duplicated HOT 2
- Compiler disallowing abstract with-er method HOT 11
- Can't use generics in Interface, version 1.4
- Multiple Fields Support HOT 3
- Cut final release since AutoValue 1.3 is released HOT 3
- Is it okay to add an example to this repo HOT 2
- If the model uses two of the same adapter, we get a duplicate field HOT 1
- IllegalStateException: Missing required properties HOT 3
- Allow changes in generic types
- Include @CheckResult on generated methods HOT 1
- IllegalStateException: Missing required properties HOT 2
- Binaries of latest release (1.1.0) lack class files of shaded dependencies 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 auto-value-with.