Android Studio无法导入模块

时间:2018-05-05 15:52:23

标签: android android-studio

错误讯息:

Element: class org.jetbrains.plugins.groovy.lang.psi.impl.GroovyFileImpl 
because: different providers: 
SingleRootFileViewProvider{ 
myVirtualFile=file:///Users/renrenliwangluokeji/Desktop/SDDAndroid/StepDemo2/settings.gradle,
content=VirtualFileContent{size=15}}(69e7355d); 
SingleRootFileViewProvider{ myVirtualFile=file:///Users/renrenliwangluokeji/Desktop/SDDAndroid/StepDemo2/settings.gradle,
content=VirtualFileContent{size=15}}(1efd863f)

1 个答案:

答案 0 :(得分:1)

似乎是IDE问题,请尝试手动添加

include ':app', ':your_module_name'

在settings.gradle和sync gradle中,希望它有所帮助。

参考:https://issuetracker.google.com/issues/77939622