Android compile error; Java plugin has been applied, not compatible with android
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