Coder Social home page Coder Social logo

"Cannot set readonly property: comparator for class: java.util.TreeMap" exception on assemble task about dexcount-gradle-plugin HOT 7 CLOSED

keepsafe avatar keepsafe commented on September 23, 2024
"Cannot set readonly property: comparator for class: java.util.TreeMap" exception on assemble task

from dexcount-gradle-plugin.

Comments (7)

benjamin-bader avatar benjamin-bader commented on September 23, 2024

Interesting; this seems to be a (mis)feature of Groovy, attempting to set a private final TreeMap field comparator outside of the map's constructor. I haven't yet reproduced it, but I'll see what I can do to work around this. Thanks for the report!

from dexcount-gradle-plugin.

benjamin-bader avatar benjamin-bader commented on September 23, 2024

I haven't had any luck reproducing this crash. Can you do me a favor? What happens if you build your app with a newer Gradle wrapper version?

from dexcount-gradle-plugin.

benjamin-bader avatar benjamin-bader commented on September 23, 2024

In the process of fixing issue #12, I may have fixed this. If you still have problems with a newer Gradle version, try using the snapshot build I just uploaded: 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.2.1-SNAPSHOT`

from dexcount-gradle-plugin.

kolipass avatar kolipass commented on September 23, 2024

Where can I take the snapshot?

http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.getkeepsafe.dexcount%22%20AND%20a%3A%22dexcount-gradle-plugin%22 Havent 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.2.1-SNAPSHOT`

from dexcount-gradle-plugin.

benjamin-bader avatar benjamin-bader commented on September 23, 2024

Apologies; the build is in Sonatype snapshots. Your build.gradle will need to look something like this:

buildscript {
  repositories {
    // other repositories e.g. jcenter() or mavenCentral()
    maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
  }

  dependencies {
    classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.2.1-SNAPSHOT'
  }
}

from dexcount-gradle-plugin.

kivsiak avatar kivsiak commented on September 23, 2024

Snapshot version is working without any errors.

2015-09-11 21:12 GMT+02:00 Ben Bader [email protected]:

Apologies; the build is in Sonatype snapshots. Your build.gradle will
need to look something like this:

buildscript {
repositories {
// other repositories e.g. jcenter() or mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}

dependencies {
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.2.1-SNAPSHOT'
}
}


Reply to this email directly or view it on GitHub
#11 (comment)
.

Vladimir Abramov.

from dexcount-gradle-plugin.

benjamin-bader avatar benjamin-bader commented on September 23, 2024

I released a stable version 0.2.1 containing this bugfix; it should propagate to Maven Central within a few hours.

from dexcount-gradle-plugin.

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.