Android compile error; Java plugin has been applied, not compatible with android

强颜欢笑 提交于 2019-11-28 09:38:12

The problem is that you cannot apply both the com.android.application and the java plugin in the same module. Why are you doing that? There's nothing in the question you reference that tell you to apply the java plugin.

Remove the line with apply plugin: 'java', and you're good to go

For those that are using kotlin and are making an Android library: make sure to use apply plugin: 'kotlin-android' instead of apply plugin: 'kotlin'.

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