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

后端 未结 9 2042
忘了有多久
忘了有多久 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:41

    Had a similar problem after renaming the project folder and adding the renamed folder as new project.

    • solved this by the infamous "Invalidate Caches / Restart" option

    (before I removed the old project link which was not enough)

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

    I solved the problem by rename the project folder and then reopen android studio , android studio will tell you that it can not find the project , then remove the project from the android studio current open list . rename project folder back and open it by android studio again .

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

    I saw a version of this with just now on Android Studio 3.4: the only error message I saw in the IDE was that Gradle sync failed, but in idea.log there was a NullPointerException and its traceback originated at com.intellij.openapi.extensions.Extensions.disposeArea and was just like the one in the question.

    The fix that worked for me:

    1. rm .idea/modules.xml

    2. Then try Gradle sync again.

    This also caused that file to get automatically regenerated. The new version had exactly the same entries as the old, plus some additional ones for various library dependencies. Not sure if those entries being absent was the cause of the issue, or an unrelated accident.

    Before that, I tried "Invalidate Caches / Restart...", and it didn't work in my case. Also double-checked and there are no symbolic links in my project path, or the paths to Android Studio or the Android SDK.

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