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

前端 未结 25 2435
孤独总比滥情好
孤独总比滥情好 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:48

    Been dealing with this issue for a while every time I tried opening a project.

    I always receive this error even though I knew I had not made any changes that should of caused this apart from exporting to zip.

    To Fix:

    • Make a new project or open project that works
    • Go to file > open > "your project"
    • Make sure your dummy project stays open. The project you were getting errors should be opened in a new window.

    This fixed it for me without doing any changes or deleting anything.

提交回复
热议问题