Comments (3)
0.22 and yes.
from klaxon.
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.
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)
- Unable to parse Boolean HOT 1
- Parsing number values HOT 1
- Parsing jsons with nullable fields - `serializeNull = false` as a default?
- [Bug] Unsigned numbers not correctly serialized
- Add support for JSON Lines HOT 1
- `JsonObject` created by `toJsonObject` from a derived class will not contain members of any superclass. HOT 1
- Docs are not clear on now to process a stream of json objects.
- Failure parsing json into class with primary constructor with parameters not specifying var or val
- Using a TypeAdapter with a default class for null?
- Unable to instantiate MyClass
- No accessors or field is found for property var XXXXXX: kotlin.String?
- KlaxonDoc.java got compiled to Java 11 byte code HOT 1
- Using Klaxon in Gradle Task
- Fails to handle case where enum is the key of a map inside a data class
- Optional property HOT 1
- A
- Is there any way to configure or modify the parsing such that Klaxon can handle `NaN` in input?
- [BUG] Decimal conversion in `toJsonString` depends on system locale and uses wrong separator
- FieldRenamer overrides @Json name annotation
- Not escaping quotes or orther special characters when calling parseArray HOT 1
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 klaxon.