Gradle sync failed with Android Studio 3.1: Uninitialized object exists on backward branch 70

前端 未结 5 1275
名媛妹妹
名媛妹妹 2020-12-16 09:19

After Updating Android Studio from 3.0 to 3.1 My project gradle syncing failed with the following error.

Gradle sync failed: Uninitialized object exists on         


        
5条回答
  •  醉梦人生
    2020-12-16 10:02

    1) Update to the latest JDK Version, in my case jdk1.8.0_162

    2) In your Android Studio select File-> Project Structure -> SDK Location -> JDK Location, write the directory C:\Program Files\Java\jdk1.8.0_162

    3) Restart Android Studio

    Problem Solved

提交回复
热议问题