以前因爲電腦沒電致使自動關機,從新開機打開Android Studio後沒法build項目了,報瞭如下這個錯誤:html
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.
複製代碼
網上找了下資料,預計是native-platform.dll這個文件出了問題,定位這個文件的位置,通常在C:\Users<你本身的用戶名>.gradle\native中bash
打開23(你本身的gradle版本),若是隻有一個native-platform.dll.lock文件,只要將這個文件後綴.lock刪掉便可。jvm