Project with Java and Android modules - Java module thinks its Android

Answered

Howdy,

I have a project with subprojects each with their own module. I used IntelliJ to create the empty gradle project and then add each module to the project. There are 3 Java modules and 1 Android module. My issue is that after adding the Android module, all the Java modules now think they are Android. On the editor, the inspections are all Android related, complaining about "Call requires API level 8 (current min is 1): java.lang.String#isEmpty"

When I look at the frameworks that IntelliJ has added to each module, the Java modules have both Java Gradle and Android Gradle. If I try to remove the Android Gradle, it just automatically shows back up. I looked at the build.gradle and there is nothing special about any of them. All very basic.

I dont even know what to post to help resolve this issue, so any guidance or help would be appreciated.

Thanks,

Bryan

0

Please sign in to leave a comment.