Gradle同步失败:无法加载库windows-amd64\\\<br/>ative-platform.dll [英] Gradle sync failed: Can&#39;t load library windows-amd64\native-platform.dll

查看:824
本文介绍了Gradle同步失败:无法加载库windows-amd64\\\<br/>ative-platform.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Android Studio 1.4更新到2.0,并让IDE在build.gradle中将我的gradle依赖项从1.x更改为2.0:

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

将项目gradle版本更新为2.10。



当我尝试与gradle文件同步项目或刷新项目,我现在收到以下错误:

  Gradle sync failed:Can not load library:C:\Users\foobar \.gradle\\\
ative\19\windows-amd64\\\
ative-platform.dll
请参阅IDE日志以获取更多详细信息(帮助|显示日志)


解决方案

从gradle路径中移除native文件夹:

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

再次运行时,它将重新生成本机文件夹和关联e .dll。

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)

解决方案

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.

这篇关于Gradle同步失败:无法加载库windows-amd64\\\<br/>ative-platform.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆