这个问题有三个适当的答案。
File -> Invalidate Caches / Restart... -> Select Invalidate and Restart
Just navigate to your android studio installation directory, i.e
yourDrive:/.AndroidStudio3.3/system
and DELETE THE CACHE FOLDER ( first close android studio, if its running ).
Then start Android Studio again. Done.
P.S I am using android studio 3.3.
Open the Settings or Preferences dialog: On Windows or Linux, select File > Settings from the menu bar. Navigate to Build, Execution, Deployment > Instant Run. Unchecked the box next to Restart activity on code changes.
按照以下步骤操作(这将有助于您):
1)首先,清除缓存并重新启动Android Studio。
2)然后从项目中删除.idea文件夹和所有.iml文件。
3)现在再次使用invalidate cache重新启动studio。
4)打开您的项目并构建即可。
就是这样。