AAkira / Napier

Logging library for Kotlin Multiplatform
Apache License 2.0
786 stars 34 forks source link

Could not resolve com.github.aakira:napier-android:1.4.1 #51

Closed amatsegor closed 4 years ago

amatsegor commented 4 years ago

Hi! Updated to version 1.4.1 from 1.3.9, tried to run a :commonCode:build task and got this

`> Could not resolve all artifacts for configuration ':commonCode:debugCompileClasspath'.

Could not resolve com.github.aakira:napier-android:1.4.1. Required by: project :commonCode No matching variant of com.github.aakira:napier-android:1.4.1 was found. The consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:

  • Variant 'android-releaseApiElements' capability com.github.aakira:napier-android:1.4.1 declares an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
  • Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug'
  • Variant 'android-releaseRuntimeElements' capability com.github.aakira:napier-android:1.4.1 declares a runtime of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
  • Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug'
  • Variant 'metadata-api' capability com.github.aakira:napier-android:1.4.1:
  • Incompatible because this component declares a usage of 'kotlin-metadata' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm'
  • Other compatible attribute:
  • Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug')
  • Variant 'metadata-commonMainMetadataElements' capability com.github.aakira:napier-android:1.4.1:
  • Incompatible because this component declares a usage of 'kotlin-api' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm'
  • Other compatible attribute:
  • Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') `
amatsegor commented 4 years ago

UPD: kinda solved by adding a maven repo to build.gradle.kts Artifacts seem to be missing in JCenter