1. 程式人生 > >A problem occurred configuring project ':app'. > Failed to notify project evaluation listener. >

A problem occurred configuring project ':app'. > Failed to notify project evaluation listener. >

出現以下錯誤的解決方法:

* What went wrong:

A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.

   > Could not initialize class com.android.sdklib.repository.AndroidSdkHandler

我的解決方法:

升級專案下的build.gradle,alt+enter直接升級到最新就好了,然後Sync New就可以了。

如下圖


執行通過,打包成功