GithubHelp home page GithubHelp logo

Comments (4)

gabrielittner avatar gabrielittner commented on September 15, 2024

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.

bnorm avatar bnorm commented on September 15, 2024

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.

gabrielittner avatar gabrielittner commented on September 15, 2024

Two solutions that fix it for me:

  1. Update to Dagger 2.4
  2. 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.

bnorm avatar bnorm commented on September 15, 2024

Awesome. That worked for me as well. Thanks!

from auto-value-with.

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.