React-native organizes its project as follows:
android --build.gradle --settings.gradle ios node_modules index.android.js index.ios.js
This is a bit messy and requires editing js, java and objective C code, and android studio does not support javascript code completion. So I decided to use IntelliJ.
The problem is that if I open at the root level, IntelliJ cannot start Gradle, it will say Error running build (1): Module 'ReactLearning' is not backed by gradle
However, if I open on ./android
in Android Studio or IntelliJ, it works fine, and I see all the external libraries and code completion. But now I canβt edit any code at the root level. I could open 2 editors, one in the root, and the other specifically for Android, but then the IDE constantly overwrites each other's files.
What can I do to tell the IDE / Gradle that the corresponding project is in the same subdirectory?
source share