Upgrade issue in gradle build tools version from 1.2.3 to 1.3.1

只谈情不闲聊 提交于 2019-12-05 18:56:43

This kind of error happens in these cases:

  • 2 modules have the same identification (group+name). Check the code
  • 1 module has the same name of the root project

In the first case:

  • rename one of the modules
  • update the settings.gradle file with the new name
  • run gradlew clean assemble

In the second case.

  • rename the root project or follow the steps above.`

This check was introduced with gradle-plugin 1.3.x. You can check the code:

You have 2 modules with the same name as the error states change name of module.

To rename a module

go to settings.gradle and rename the module to your new name. Then close Android Studio, and rename the folder using File Explorer. Now reopen Android studio and your module name will be updated.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!