Android studio关闭提示:Workspace associated with branch ‘name‘ has been restored

  • Android studio Chipmunk 2021.2.1版本,在切换分支时,即使已经提交了本地的修改,也会有提示。例如:我们从Master分支切换到LocalA分支,会提示如下:
    Android studio关闭提示:Workspace associated with branch ‘name‘ has been restored_第1张图片

  • 这个提示是什么意思?

    已还原与分支“LocalA”关联的工作区
    
  • 这里说的工作区是指什么?
    点击“What is a workspace”,会提示:工作区是一组打开的文件、当前运行配置和断点
    Android studio关闭提示:Workspace associated with branch ‘name‘ has been restored_第2张图片

    可以仔细观察一下,在A分支上打开MainActivity,切换到B分支,打开androidTest目录下的ExampleInstrumentedTest,再切回A分支,A分支仍旧打开MainActivity。功能正常。

  • 所以,这个提示并不意味着我们哪里做的不对

怎么关闭这个提示?

  • 鼠标指针移动到提示框,有个“设置”按钮。或者直接:File----Settings----,照着下面修改就好:
    Android studio关闭提示:Workspace associated with branch ‘name‘ has been restored_第3张图片

你可能感兴趣的:(Android,Studio,android,studio,android,ide)