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

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

    None of above worked for me but tried something random and it worked.

    1. Copy the corrupted project directory.
    2. Paste it at somewhere else.
    3. Import it in Android Studio. (File-> New-> Import project)
    4. And uncorrupted project get restored.

    PS: You must have original corrupted project. (Means, copy it without tampering project structure)

提交回复
热议问题