Cannot run the project Cuba Studio 7


I try to run (open) a Cuba 6 project converted to Cuba 7 but I have the following message:


Run configuration error: Unknown script type/home/…/build.gradle

and CUBA idea menu tag is missing.

If I import the project (Gradle) it works, but I think is not normal to import project every time.

Which is the best way to save the project: ipr extension or Directory Based Format?
Please advise.

Solved: import gradle project.