GithubHelp home page GithubHelp logo

Kotlin 1.0.0-rc about klaxon HOT 3 CLOSED

cbeust avatar cbeust commented on June 12, 2024
Kotlin 1.0.0-rc

from klaxon.

Comments (3)

cbeust avatar cbeust commented on June 12, 2024

0.22 and yes.

from klaxon.

lopezjurip avatar lopezjurip commented on June 12, 2024

I'm having this error on Android Studio:

Kotlin library 'klaxon-0.22.jar' has an unsupported format. Please update the library or the plugin
e: /Users/username/.gradle/caches/modules-2/files-2.1/com.beust/klaxon/0.22/6903f4606ab63166ea38da4b9b7a8b5c933ea57e/klaxon-0.22.jar!/com/beust/klaxon/JsonArray.class: Class 'com/beust/klaxon/JsonArray' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.0.1, expected version is 1.1.0

e: /Users/username/.gradle/caches/modules-2/files-2.1/com.beust/klaxon/0.22/6903f4606ab63166ea38da4b9b7a8b5c933ea57e/klaxon-0.22.jar!/com/beust/klaxon/JsonBase.class: Class 'com/beust/klaxon/JsonBase' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.0.1, expected version is 1.1.0

e: /Users/username/.gradle/caches/modules-2/files-2.1/com.beust/klaxon/0.22/6903f4606ab63166ea38da4b9b7a8b5c933ea57e/klaxon-0.22.jar!/com/beust/klaxon/JsonObject.class: Class 'com/beust/klaxon/JsonObject' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.0.1, expected version is 1.1.0

e: /Users/username/.gradle/caches/modules-2/files-2.1/com.beust/klaxon/0.22/6903f4606ab63166ea38da4b9b7a8b5c933ea57e/klaxon-0.22.jar!/com/beust/klaxon/Parser.class: Class 'com/beust/klaxon/Parser' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.0.1, expected version is 1.1.0

my gradle.build:

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.app.myapp"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'

    // Android
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:design:23.1.1'
    compile 'com.android.support:support-v13:23.1.1'

    // Kotlin
    compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

    // JSON
    compile 'com.beust:klaxon:0.22'
}
buildscript {
    ext.kotlin_version = '1.0.0-rc-1036'
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
    }
}
repositories {
    mavenCentral()
    jcenter()
}

from klaxon.

cbeust avatar cbeust commented on June 12, 2024

Maybe I made a mistake with 0.22, I just uploaded 0.23 compiled with the RC, can you try again?

from klaxon.

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.