Android Studio 3.2.1 - Cannot sync project with gradle files: Argument for @NotNull parameter 'message' of … must not be null

后端 未结 9 2047
忘了有多久
忘了有多久 2021-01-07 22:58

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

相关标签:
9条回答
  • 2021-01-07 23:24

    I got same issue in Android Studio 3.4. I managed to fix it by restoring my previously deleted app-name.iml file.

    0 讨论(0)
  • 2021-01-07 23:25

    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.

    0 讨论(0)
  • 2021-01-07 23:30

    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.

    0 讨论(0)
  • 2021-01-07 23:30

    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.

    0 讨论(0)
  • 2021-01-07 23:34

    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.

    0 讨论(0)
  • 2021-01-07 23:38

    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 .

    0 讨论(0)
提交回复
热议问题