Error running android: Gradle project sync failed. Please fix your project and try again

前端 未结 30 3141
南方客
南方客 2020-11-30 18:32

Android Studio (1.2 RC0) keeps telling me Error running android: Gradle project sync failed. Please fix your project and try again. How can I find out what th

30条回答
  •  离开以前
    2020-11-30 18:57

    This could be due to Android Studio version conflict of v3 and v4 especially when you import a project in android stdio v4 which was previously built in v3.

    Here are the few things you need to do:

    • remove the .gradle and .idea folders from the main Application folder.
    • import the project in the android studio.
    • after the sync finished, it will ask you to update the android studio supported version.
    • click update.
    • done.

提交回复
热议问题