Android Studio Gradle錯誤Failed to load native library 'native-platform.dll'

之前由于電腦沒電導(dǎo)致自動關(guān)機,重新開機打開Android Studio后無法build項目了,報了以下這個錯誤:
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.

網(wǎng)上找了下資料,預(yù)計是native-platform.dll這個文件出了問題,定位這個文件的位置,一般在C:\Users<你自己的用戶名>.gradle\native中

QQ截圖20170818095945.png

打開23(你自己的gradle版本),如果只有一個native-platform.dll.lock文件,只要將這個文件后綴.lock刪掉即可。

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容