Skip to content

Kotlin/C++ JNI Library example fails with "Cannot add a configuration with name 'api' as a configuration with that name already exists" #865

@aSemy

Description

@aSemy

I downloaded the Kotlin/C++ JNI Library example and updated it to use Gradle 8.8, Kotlin 1.9, and the latest Nokee plugins, but it fails with an error.

An exception occurred applying plugin request [id: 'dev.nokee.jni-library', version: '0.1.0']
> Failed to apply plugin 'dev.nokee.jni-library'.
   > Could not create an instance of type dev.nokee.platform.jni.internal.JniLibraryDependenciesInternal.
      > Cannot add a configuration with name 'api' as a configuration with that name already exists.

If I update the Nokee plugins to use the latest versions, it fails with another error:

FAILURE: Build failed with an exception.
* What went wrong:
java.lang.ExceptionInInitializerError (no error message)
> Unsupported architecture of name 'aarch64'

Here is the project: project.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions