{path-of-android-studio}/lib/gson-2.7.jar
文件重命名为 gson-2.7.jar.disabled
。其中 {path-of-android-studio}
在 Windows 上默认为 C:\Program Files\Android\Android Studio
,在 Mac 上为 /Applications/Android Studio.app/Contents
。
来源于问题跟踪器
对于 Arctic Fox 2020.3.1:
检查是否有新的更新并进行更新。它将被更新为2020.3.1补丁1,这将解决该问题。
/home/void/.local/share/flatpak/app/com.google.AndroidStudio/x86_64/stable/945347e3ed941b868f366b6dc46cf294cafec69f21dbcb10d3fc4e69620315a4/files/extra/android-studio/lib
你不必一直滚动到底部。一旦到达/home/void/.local/share/flatpak/app/com.google.AndroidStudio
搜索“gson”,正确的文件将在一秒钟内出现。
不幸的是,对于使用snap包安装的人(我真的不知道为什么还有人使用snap包),没有办法编辑该文件。
我在2020.3.1
版本中也遇到了这个问题,只需删除项目中的.idea
文件夹内的所有内容即可解决。同时,我还将我的项目的Kotlin版本升级到了1.5.0。