之前由于電腦沒電導致自動關機,重新開機打開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)上找了下資料褪秀,預計是native-platform.dll這個文件出了問題,定位這個文件的位置薛训,一般在C:\Users<你自己的用戶名>.gradle\native中
打開23(你自己的gradle版本)媒吗,如果只有一個native-platform.dll.lock文件,只要將這個文件后綴.lock刪掉即可乙埃。