Coder Social home page Coder Social logo

Comments (6)

Mark-William-Schumacher avatar Mark-William-Schumacher commented on June 28, 2024

The only update for me that is currently working is

    apt 'com.gabrielittner.auto.value:auto-value-cursor:0.2.0'
    provided 'com.gabrielittner.auto.value:auto-value-cursor-annotations:0.2.0'

The 0.4.1-SNAPSHOT however isn't working for me

from auto-value-cursor.

gabrielittner avatar gabrielittner commented on June 28, 2024

Does 0.4.0 work?
When you use the SNAPSHOT is there nothing generated at all or are just the Cursor/ContentValues methods not generated? Do you see any error message when compiling?

from auto-value-cursor.

Mark-William-Schumacher avatar Mark-William-Schumacher commented on June 28, 2024

Nothing generated .
On 0.3.1 everything is working including the abstract ContentValues toContentValues(); generation.
On 0.2.0 everything is working except the abstract ContentValues toContentValues(); generation.
On 0.4.0, 0.4.1-SNAPSHOT I couldn't get any generation to work.

Below gradle is working

    apt 'com.gabrielittner.auto.value:auto-value-cursor:0.3.1'
    provided 'com.gabrielittner.auto.value:auto-value-cursor-annotations:0.3.1'

from auto-value-cursor.

gabrielittner avatar gabrielittner commented on June 28, 2024

There seems to be a dependency conflict with dagger2:

java.lang.NoSuchMethodError: com.squareup.javapoet.CodeBlock.of(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock;

The method was added in JavaPoet 1.6. dagger-compiler includes 1.5.1 in it's jar and that seems to replace auto-value-cursor's dependency.

+--- com.google.dagger:dagger-compiler:2.2
|    +--- com.google.dagger:dagger:2.2
|    |    \--- javax.inject:javax.inject:1
|    +--- com.google.dagger:dagger-producers:2.2
|    |    +--- com.google.dagger:dagger:2.2 (*)
|    |    \--- com.google.guava:guava:19.0
|    \--- com.google.guava:guava:19.0
+--- com.google.auto.value:auto-value:1.2
+--- com.gabrielittner.auto.value:auto-value-cursor:0.4.0
|    +--- com.gabrielittner.auto.value:auto-value-cursor-annotations:0.4.0
|    +--- com.google.auto.value:auto-value:1.2
|    +--- com.google.auto.service:auto-service:1.0-rc2
|    |    +--- com.google.auto:auto-common:0.3 -> 0.6
|    |    |    \--- com.google.guava:guava:18.0 -> 19.0
|    |    \--- com.google.guava:guava:18.0 -> 19.0
|    \--- com.squareup:javapoet:1.6.0

I'll see if I can find a workaround, otherwise I'll replace the usage of that one method.

from auto-value-cursor.

gabrielittner avatar gabrielittner commented on June 28, 2024

Adding apt com.squareup:javapoet:1.6.0 before dagger 2 will fix the problem.

from auto-value-cursor.

gabrielittner avatar gabrielittner commented on June 28, 2024

Dagger 2.4 also uses JavaPoet 1.6 and it should work without explicitly adding JavaPoet to your dependencies.

from auto-value-cursor.

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.