0
.0. I imported a project to the PC (specifically here = generated Ktor project, although I've seen such behavior before with Compose Desktop projects)

Generated here

.1. IntelliJ Idea doesn't recognize it as a project

enter image description here

When I open the same project on Android Studio = it works fine
enter image description here

Here is how the project supposed to look in IntelliJ (this Ktor project I build manually with IDE and it worked):

enter image description here

.2. I was able to make the project folders visible to IDE:

Repair IDE->Rescan Project Indexes->Reopen Project

enter image description here

Now It look like this:

enter image description here

But IDE still doesn't see my modules properly

enter image description here

enter image description here

How do I properly configure the imported project?

Note: I've read IntelliJ does not show project folders And tried methods described there. But a lot of answers are hard to replicate as IntelliJ interface changed.

Edit: I've fixed it with Manage Idea Settings->Restore Default Settings. Now projects are opened properly. Thank everyone for your time.

Nikita A
  • 51
  • 1
  • 4
  • Can you try to right-click on the `build.gradle.kts` or `settings.gradle.kts` file and choose `Link Gradle Project`? – Aleksei Tirman Feb 08 '23 at 17:53
  • I've just tried to `Link Gradle Project`, and I got the message Project Reload Failed (The project is already registered) – Nikita A Feb 09 '23 at 07:45

1 Answers1

0

I've fixed the problem with Manage Idea Settings->Restore Default Settings. Now projects are opened properly. Thank everyone for your time.

enter image description here

Nikita A
  • 51
  • 1
  • 4