Reputation: 431
I tried some solutions but none of them helped.
I can't compile anything because of gradle's error:
Error:C:\Program Files\Android\Android Studio\gradle\gradle-2.8\native\jna\win32-amd64\jnidispatch.dll (System can't find this path)
In Settings I tried to check "Use default gradle wrapper (recommended)" but it comes back to "Use local gradle distribution" with path C:\Program Files\Android\Android Studio\gradle\gradle-2.8
I downloaded gradle 2.8 from the official site but there's no "native" directory.
I updated everything with SDK and restart Studio but it also didn't help.
Android Studio 1.5.1, it's the same with all projects, even the new ones.
How can I fix this?
Upvotes: 0
Views: 644
Reputation: 2359
I got the same problem when switch to another computer. It's because project is keeping the reference to another computer paths.
For fix it i did:
I deleted the .idea
folder from the project, like the highlight from image bellow.
Then you have to remove the project from android studio and open it again.
Upvotes: 1