Module … is not backed by gradle

前端 未结 10 811
一整个雨季
一整个雨季 2021-02-04 23:03

I\'m using IntelliJ IDEA Pro 13.1.2. Never used any versions below 13.

When trying to run build.gradle from IDE I get the message:

M

10条回答
  •  心在旅途
    2021-02-04 23:45

    You may have originally created the project via File->New->Project From Version Control. This doesn't seem to always set the project up as a Gradle project, even if there is a build.gradle in the root directory. To solve this:-

    1. Close IntelliJ.
    2. Delete the .idea folder in the project.
    3. Start IntelliJ and select 'Open'.
    4. Navigate to the project folder and open it.

    The project will be recognised as Gradle and be set up as such.

提交回复
热议问题