Gradle project sync failed (android studio 3.1)



this problem happened after updating ( android studio 3.+ with gradle 4.+) and what you

should do is update gradle offline
link: Services.gradle.org

24 thoughts on “Gradle project sync failed (android studio 3.1)”

  1. HI CAN YOU HELP ME WHEN I RUN : startup failed:
    build file 'E:UsersBB7PAndroidStudioProjectseCommercebuild.gradle': 1: unexpected token: < @ line 1, column 1.
    <?xml version="1.0" encoding="utf-8"?>

    Reply
  2. In my case it was wrong the manifest had this label.
    <uses-sdk android: minSdkVersion = "7" android: targetSdkVersion = "15" />, which was from an example, delete that line and then synchronize and fix it.
    Then update to and sync again <uses-sdk android: minSdkVersion = "15" android: targetSdkVersion = "27" />

    Reply

Leave a Comment