Android Studio 3.1.1. New module → Import project gradle, after selecting a project to import and confirm, the IDE crashes:
Element: class org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileImpl because: different providers: SingleRootFileViewProvider {myVirtualFile = file: ///home/michal/AndroidStudioProjects/FirebaseJobTest/settings.gradle, {content = Virtual size = 26}} (1416c50); SingleRootFileViewProvider {myVirtualFile = file: ///home/michal/AndroidStudioProjects/FirebaseJobTest/settings.gradle, content = VirtualFileContent {size = 26}} (665cfacf) is canceled: see attachment com.intellij.psi.PsiInccessidmentment Element .jetbrains.plugins.groovy.lang.psi.impl.GroovyFileImpl because: different providers: SingleRootFileViewProvider {myVirtualFile = file: /// home / michal / AndroidStudioProjects / FirebaseJobTest / settings. gradle, content = VirtualFileContent {size = 26}} (1416c50); SingleRootFileViewProvider {myVirtualFile = file:///home/michal/AndroidStudioProjects/FirebaseJobTest/settings.gradle, content = VirtualFileContent {size = 26}} (665cfacf) has been canceled: see the attachment at com.intellij.psi.util.PsiUtilCore.ensureValid (PsiUava50Core.ensureValid (PsiUtilCore. )
Do you know a workaround?
I ran into the same problem, it seems like a problem with the IDE, try manually adding
include ':app', ':your_module_name'
in the settings .gradle and sync gradle, hope this helps.
Source: https://habr.com/ru/post/1696143/More articles:Static library usage dependency explanation - c ++The Hyphen (-) symbol is displayed as a field in a WPF Roboto Font application in windows 7 - c #libuv vs sockets in asp.net core 2.1 - .netError: Local workspace file ('angular.json') was not found. - angularC # How can I get numbers containing number x from a list? - listIs ≤ legal less equal to char? - javascriptChecking Identity Server 3/4 hash function in a JS node - javascriptMicrosoft Graph API Downloading File Contents Unauthorized 401 - onedrivePandas how to find cell launch position using string - pythonPython: how to print a 5x5 grid on the same line as another - pythonAll Articles