Error: Unfortunately you can't have non-Gradle Java modules and > Android-Gradle modules in one project

前端 未结 25 2422
孤独总比滥情好
孤独总比滥情好 2020-12-12 10:29

I have an IntelliJ 14.1.2 Project consisting of two modules - one is an Android Gradle based module and the other is a Spring Java-based module with Maven.

gps-track

25条回答
  •  南方客
    南方客 (楼主)
    2020-12-12 10:46

    In my case settings.gradle contained invalid configuration.

    I changed:

    include ':app'
    rootProject.name=''
    

    To:

    include ':app'
    

    Error is gone. So maybe check your settings.gradle for potential errors. If this won't work try to remove cache and other tips.

提交回复
热议问题