Getting error “Gradle version 1.10 is required. Current version is 1.12.” when executing “gradle wrapper”?

后端 未结 3 980
天命终不由人
天命终不由人 2021-01-17 11:43

I\'m trying to execute gradle wrapper for an Android project, and this error is raised:

A problem occurred evaluating root project \'myap

3条回答
  •  失恋的感觉
    2021-01-17 12:26

    I had the same problem. It turned out that the old Android Studio created gradle related files one level above my application folder. In my case, the path was in ~/git/, and my project was at ~/git/myproject. I used Android Studio RC2 now, and no matter how I changed the config within the project, gradle still wanted to use the old 1.10 version. Therefore, I re-checked out the project a new path, and updated the gradle version reference within the project, then it compiled.

提交回复
热议问题