Android Studio 3.0 submodule compile failed

有些话、适合烂在心里 提交于 2019-12-05 18:58:39

You just need to reduce the details you provide:

compile project(path: ':mymodule')

The details what in which configuration is decided by gradle now by themselves. So it became way easier. Instead of 4 lines you just need the above now.

Also remove the publishNonDefault true from your modules gradle. It is not needed anymore.

Dependency management between modules has changed since Android Gradle Plugin 3.0.0. It automatically tries to matches flavours between your app and the libraries/modules it depends on.

See the documentation for more explanation!

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