Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jun 29, 2024 · 0 comments

Comments

@aSemy
Copy link

aSemy commented Jun 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant