4

I have created three modules for my android app namely app, domain, and data.

By mistake, I have created domain and data modules as android module instead of Java module. Now I want to replace them to Java modules.

Can anyone suggest how I can achieve this?

enter image description here

ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96
anshul
  • 982
  • 1
  • 11
  • 33

1 Answers1

6

You need to change:

apply plugin: 'com.android.library'

to

apply plugin: 'java'

and add the following line after it:

sourceCompatibility= 1.7
targetCompatibility= 1.7

in your build.gradle android library module.

ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96