Java错误需要- gt,错误:很遗憾,您不能拥有非Gradle Java模块,并且>一个项目中的Android-Gradle模块...

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-trackman.v1 is my root project and I've not configured any outputs or facets for this project. The app is my android gradle module and I've configured Android and Android-Gradle Facet for this project and gps-trackman isn't my Spring Maven Project. I want to be able to build everything all together. Is it possible?

I now get this error message in my IntelliJ Eventlog

Unsupported Modules Detected: Compilation is not supported

for following modules: gps-trackman, gps-trackman.v1, app.

Unfortunately you can't have non-Gradle Java modules and

Android-Gradle modules in one project.

The project 'gps-trackman.v1' is not a Gradle-based

Is this error just due to a misconfiguration of my project or is it really not possible to have a maven module and a Gradle module in one project?

Do I have to configure any Facets for the root project? Alternatively, do I have to convert my maven to gradle?

解决方案

1- close the project

2- close Android Studio IDE

3- delete the .idea directory

4- delete all .iml files

5- open Android Studio IDE and import the project

Answer from here

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值