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之让人懵逼的错误:Failed to load native library 'native-platform.dll' for Windows 10 x86._第1张图片
    这是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
Android Studio之让人懵逼的错误:Failed to load native library 'native-platform.dll' for Windows 10 x86._第2张图片

<2>找到native-platform.dll这个文件后,将它的后缀.lock去掉
Android Studio之让人懵逼的错误:Failed to load native library 'native-platform.dll' for Windows 10 x86._第3张图片

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

你可能感兴趣的:(android)