Closed rAseri closed 5 years ago
Same error. I tried to use it through "compileOnlyAar" and "implementationAar"
Will be fixed next release. Workaround for now is
plugins {
id 'kotlin'
id 'idea'
id 'com.stepango.aar2jar' version "0.4"
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
compileOnly androidJar
compileOnlyAar "androidx.lifecycle:lifecycle-extensions:2.0.0"
compileOnlyAar "androidx.lifecycle:lifecycle-livedata-core:2.0.0"
compileOnlyAar 'androidx.appcompat:appcompat:1.0.2'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
afterEvaluate {
idea {
module {
scopes.forEach { name, map ->
map.plus += [configurations.compileOnlyAar]
}
}
}
}
Thanks for the plugin!
I try to use this plugin to add rxAndroid
aar
dependency to my pure Kotlin gradle module. This is a build.gradle file of my Kotlin module:My project builds successfully, but there is a dependency resolving issue when I try to import the library class:
Could you explain what's the problem and how to handle this issue?