Custom plugin using JNA fails with unable to locate JNA native support library

In my plugin, I am trying use jna to retrieve git credentials from Windows Secrets Manager. i have added both jna and jna-platform dependencies on my implementations section of the build-gradle.kts. running the plugin though, it is complaining about missing JNA native support library when i run the plugin.

is including them under dependencies not sufficient? anything else that is required? thanks

Hey, @nmorado! Could you please provide a minimal reproducible example?

I had this issue, but it was just a dumb mistake on my part - make sure you’re not using the .jar files generated in libs to run your plugin (I had been doing this for a while before importing an external dependency).

Instead, make sure you’re using either the runIde gradle task or the .zip in gradle-output-folder/distributions created with the buildPlugin task.

I am only running the runIde gradle task. I also tried building it and installing it and test - all same behavior

I dont know if i can upload it from where the code is currently. the dependencies for jna:5.140 and jna-platform:5.14.0 were added and the class that integrates with windows credentials manager using JNA. The class that interacts with credentials manager works if run as a standalone java project outside of the plugin.

looks like jna is already available from IDEA without having to include them manually. it worked after removing the dependencies.