Gradle failed to load 'native-platform.dll'

Hello,

I’m currently trying to create a project for Android with Unity.
I wanted to deploy it on my phone, so I tried building it, except the build always fails with the same error:

Failed to load native library ‘native-platform.dll’ for Windows 10 x86.

I don’t have this problem when I try building the project for PC/Mac/Linux, so it probably has to do with my Android / Java setup.

I’ve tried googling the error message, but all the answers I found were about Android Studio and talked deleting the native folder in a .gradle folder, neither of which I can find.

Thanks in advance for your help

I think I managed to solve my problem.

I found the .gradle folder in my user folder on the C: drive. After deleting that folder, I retried building the project, and it worked this time.