nokeedev / gradle-native

The home of anything about Gradle support for natively compiled languages
https://nokee.dev
Apache License 2.0
47 stars 8 forks source link

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

Open aSemy opened 3 months ago

aSemy commented 3 months ago

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