kotlin-multiplatform-projects icon indicating copy to clipboard operation
kotlin-multiplatform-projects copied to clipboard

[BUG] Could not resolve suparnatural-kotlin-multiplatform:fs:1.1.0.

Open MaciejCmiel opened this issue 3 years ago • 3 comments

Describe the bug After Bintray was closed on 1st May I can't reach the library.

Could not resolve suparnatural-kotlin-multiplatform:fs:1.1.0.

To Reproduce Add library dependency to the project

"suparnatural-kotlin-multiplatform:fs:1.1.0"

or

"suparnatural-kotlin-multiplatform:fs-android:1.0.10"

Expected behavior

Stacktrace

* What went wrong:

Could not determine the dependencies of task ':[project]:[package]:compileDevDebugKotlin'.

> Could not resolve all files for configuration ':[project]:[package]:devDebugRuntimeClasspath'.

   > Could not resolve suparnatural-kotlin-multiplatform:fs:1.1.0.

     Required by:

         project :[project]:[package] > project :[project]:[package2]

      > Could not resolve suparnatural-kotlin-multiplatform:fs:1.1.0.

         > Could not get resource 'https://dl.bintray.com/kodein-framework/Kodein-DI/suparnatural-kotlin-multiplatform/fs/1.1.0/fs-1.1.0.pom'.

            > Could not GET 'https://dl.bintray.com/kodein-framework/Kodein-DI/suparnatural-kotlin-multiplatform/fs/1.1.0/fs-1.1.0.pom'. Received status code 403 from server: Forbidden

      > Could not resolve suparnatural-kotlin-multiplatform:fs:1.1.0.

         > Could not get resource 'https://dl.bintray.com/suparnatural/kotlin-multiplatform/suparnatural-kotlin-multiplatform/fs/1.1.0/fs-1.1.0.pom'.

            > Could not GET 'https://dl.bintray.com/suparnatural/kotlin-multiplatform/suparnatural-kotlin-multiplatform/fs/1.1.0/fs-1.1.0.pom'. Received status code 403 from server: Forbidden

version 1.0.10

* What went wrong:

Could not determine the dependencies of task ':[project]:[package]:compileDevDebugKotlin'.

> Could not resolve all files for configuration ':[project]:[package]:devDebugRuntimeClasspath'.

   > Could not resolve suparnatural-kotlin-multiplatform:fs-android:1.0.10.

     Required by:

         project :[project]:[package] > project :[project]:[package2]

      > Could not resolve suparnatural-kotlin-multiplatform:fs-android:1.0.10.

         > Could not get resource 'https://dl.bintray.com/kodein-framework/Kodein-DI/suparnatural-kotlin-multiplatform/fs-android/1.0.10/fs-android-1.0.10.pom'.

            > Could not GET 'https://dl.bintray.com/kodein-framework/Kodein-DI/suparnatural-kotlin-multiplatform/fs-android/1.0.10/fs-android-1.0.10.pom'. Received status code 403 from server: Forbidden

      > Could not resolve suparnatural-kotlin-multiplatform:fs-android:1.0.10.

         > Could not get resource 'https://dl.bintray.com/suparnatural/kotlin-multiplatform/suparnatural-kotlin-multiplatform/fs-android/1.0.10/fs-android-1.0.10.pom'.

            > Could not GET 'https://dl.bintray.com/suparnatural/kotlin-multiplatform/suparnatural-kotlin-multiplatform/fs-android/1.0.10/fs-android-1.0.10.pom'. Received status code 403 from server: Forbidden

   > Could not resolve suparnatural-kotlin-multiplatform:fs-metadata:1.0.10.

     Required by:

         project :onemeter-mobile-multiplatform:advertisingmonitor > project :onemeter-mobile-multiplatform:data

      > Could not resolve suparnatural-kotlin-multiplatform:fs-metadata:1.0.10.

         > Could not get resource 'https://dl.bintray.com/kodein-framework/Kodein-DI/suparnatural-kotlin-multiplatform/fs-metadata/1.0.10/fs-metadata-1.0.10.pom'.

            > Could not GET 'https://dl.bintray.com/kodein-framework/Kodein-DI/suparnatural-kotlin-multiplatform/fs-metadata/1.0.10/fs-metadata-1.0.10.pom'. Received status code 403 from server: Forbidden

      > Could not resolve suparnatural-kotlin-multiplatform:fs-metadata:1.0.10.

         > Could not get resource 'https://dl.bintray.com/suparnatural/kotlin-multiplatform/suparnatural-kotlin-multiplatform/fs-metadata/1.0.10/fs-metadata-1.0.10.pom'.

            > Could not GET 'https://dl.bintray.com/suparnatural/kotlin-multiplatform/suparnatural-kotlin-multiplatform/fs-metadata/1.0.10/fs-metadata-1.0.10.pom'. Received status code 403 from server: Forbidden

Version

1.0.10 and 1.1.0

Platforms affected:

  • iOS [x]
  • Android [x]
  • JVM [ ]
  • JS [ ]

MaciejCmiel avatar Jun 15 '21 17:06 MaciejCmiel

All the libs have been migrated to maven central. Try this setup. https://kmpdocs.suparnatural.com/fs/#setup

suparngp avatar Jun 18 '21 20:06 suparngp

When placing

implementation("com.suparnatural.kotlin:fs:1.1.0")

and using maven central I get the following error:

:shared:iosSimulatorArm64Main: Could not resolve com.suparnatural.kotlin:fs:1.1.0.
Required by:
    project :shared

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

:shared:iosSimulatorArm64Test: Could not resolve com.suparnatural.kotlin:fs:1.1.0.
Required by:
    project :shared

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

It only happens for iOS simulator main and text, no other iOS or for Android. However, it seems to work still anyways (Android does work, haven't had a chance to test iOS yet).

coderforlife avatar Feb 26 '23 20:02 coderforlife

@coderforlife I got the same issue. seems like iOS Simulator Arm 64 metadata is missing.

`FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong: Execution failed for task ':shared:transformIosMainCInteropDependenciesMetadataForIde'.

Could not resolve all files for configuration ':shared:iosSimulatorArm64CompilationDependenciesMetadata'. Could not resolve com.suparnatural.kotlin:fs:1.1.0. Required by: project :shared > No matching variant of com.suparnatural.kotlin:fs:1.1.0 was found. The consumer was configured to find a library for use during 'kotlin-metadata', preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'ios_simulator_arm64' but: - Variant 'commonMainMetadataElements-published' capability com.suparnatural.kotlin:fs:1.1.0 declares a component for use during 'kotlin-api': - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native' - Other compatible attributes: - Doesn't say anything about its component category (required a library) - Doesn't say anything about its target Java environment (preferred optimized for non-jvm) - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'ios_simulator_arm64')

BUILD FAILED in 711ms`

khalid64927 avatar Jan 23 '24 14:01 khalid64927