Android Studio之让人懵逼的错误:Failed to load native library 'native-platform.dll' for Windows 10 x86.

在使用Android Studio的时候,经常会遇到各种莫名其妙的错误,让人一脸懵逼,无从下手,有时候整一天都弄不明白,既浪费了时间又让人身心俱疲。下面我把我这次遇到的奇葩问题和解决办法贴到这里,希望能够帮到大家,让大家1分钟就爬坑成功!(心疼自己个儿)


1.错误描述:
Error:Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/3.3/userguide/gradle_daemon.html
Please read the following process output to find out more:

FAILURE: Build failed with an exception.

  • What went wrong:
    Failed to load native library ‘native-platform.dll’ for Windows 10 x86.

  • Try:
    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.
    这里写图片描述
    这是Android Studio给出的错误,咋一看真的懵逼,网上各种查各种找,功夫不负有心人,总算找到解决方法了


2.解决方法:
解决方法其实很简单,我们可以在Android Studio给出的错误描述中看到这个What went wrong:Failed to load native library ‘native-platform.dll’ for Windows 10 x86.
大概意思就是告诉我们出问题了,问题是:未能为Windows 10 x86系统加载到本地库的’native-platform.dll’

<1>那么我们就去电脑中找这个文件native-platform.dll
这里写图片描述

<2>找到native-platform.dll这个文件后,将它的后缀.lock去掉
这里写图片描述

这时重启Android Studio,大功告成!问题得到解决!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值