I have a problem using AndroidStudio. I freshly installed it on my Kubuntu 18.04 machine and wanted to create my frist project. Everyhting worked fine and the project opened
I got same issue in Android Studio 3.4. I managed to fix it by restoring my previously deleted app-name.iml file.
Faced same issue, wasted a day reinstalling everything and figured out just now. It happens if you create a symbolic link to your project and specify the path through that symbolic link. Just specify the project path by going the long way and everything will work just fine.
Ok, I was finally able to figure out the reason.
The problem was, that my project folder resided on a different hard disk partition, than my home folder. The folder containing my android projects was linked to my home folder with a symbolic link.
I can't tell whether its the symbolic link, or the other partition, that is causing the problem. I haven't checked that. Maybe it works if you have it on the same partition but linked with a symbolic link. Maybe it works when used on another partition without symbolic links. But for anyone experiencing this problem -> Check if one of these might be your cause as well.
Some extra information: My android project folder resided on a hard disk partition formatted with ZFS.
I had the same problem. I move the ~/Android/Sdk folder to a different partition and placed a symbolic link!!!
Solution for me: Delete .android , .AndroidStudio3.2 , .gradle folders Start studio.sh again and let it initialize things as for the first time. Then go to File->settings->System Settings->Android SDK and give the new location to the Android SDK folder as an absolute path (not symbolic links).
After this, it worked like charm.
I also had the same problem and simply resolved it by closing android studio, deleting .idea and .gradle files located on the project folder and then reopening android studio.
check this : Argument for @NotNull parameter 'module' of com/intellij/openapi/roots/ModuleRootManager.getInstance must not be null
by the way , i usually delete .idea
and .gradle
folders inside my project folder after updating android studio , almost works for all new bugs after updating .