Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle sync failed: Can't load library windows-amd64\native-platform.dll

Tags:

android

gradle

Updated from Android Studio 1.4 to 2.0, and had the IDE change my gradle dependency to 2.0 from 1.x in the build.gradle:

dependencies {
    classpath 'com.android.tools.build:gradle:2.0.0'
}

Updated the project gradle version to 2.10.

When I tried to sync a project with the gradle files, or refresh the project, I now get the following error:

Gradle sync failed: Can't load library: C:\Users\foobar\.gradle\native\19\windows-amd64\native-platform.dll
            Consult IDE log for more details (Help | Show Log)
like image 758
CodyF Avatar asked Apr 22 '16 14:04

CodyF


1 Answers

Remove the "native" folder from gradle path:

.gradle\native\19\windows-amd64\native-platform.dll

When run again, it will regenerate the "native" folder, and the associative .dll.

like image 186
Nazeer Basha Avatar answered Sep 23 '22 14:09

Nazeer Basha