Android Studio 4.1 Canary 9 201.6466190-linux发行版已损坏? [英] Android Studio 4.1 Canary 9 201.6466190-linux distribution corrupted?

查看:68
本文介绍了Android Studio 4.1 Canary 9 201.6466190-linux发行版已损坏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我尝试通过更新对话框将Android Studio 4.1 Canary 8像往常一样更新为Canary 9.首先,金丝雀9抛出了错误:

At first I've tried to update Android Studio 4.1 Canary 8 to Canary 9 as usual through update dialog. At the first start Canary 9 have thrown error:

缺少必需的插件:

Missing essential plugin:

org.jetbrains.android

org.jetbrains.android

请从头开始重新安装Android Studio.

Please reinstall Android Studio from scratch.

因此,我从官方来源( https://developer.android.com/studio下载了Canary 9发行版/preview ).删除Canary 8目录并使用Canary 9提取tar.gz.然后以相同的错误启动 android-studio/bin/studio.sh .

So I downloaded Canary 9 distribution from official source (https://developer.android.com/studio/preview). Deleted Canary 8 catalog and extracted tar.gz with Canary 9. Then launched android-studio/bin/studio.sh with the same error.

我将〜/.AndroidStudioPreview4.1 目录重命名,然后再次启动studio.同样的错误.

I renamed ~/.AndroidStudioPreview4.1 catalog and started studio once more. Same error.

现在,我从备份中回滚到Canary 8.从金丝雀8号转到9号有什么帮助吗?

Now I rolled back to Canary 8 from my backup. Any help how to move from Canary 8 to 9?

推荐答案

基本上是发行说明中提到的此问题

Basically this issue mentioned in release notes

在Android Studio 4.1 Canary 9中,当您遇到以下错误时,升级后首先启动Android Studio:

In Android Studio 4.1 Canary 9, you may see the following error when first launching Android Studio after upgrading:

缺少必要的插件org.jetbrains.android

missing essential plugin org.jetbrains.android

当您从以前的版本导入设置时,可能会发生这种情况Android Studio.通常,这意味着您在本地安装了与新IDE不兼容的Kotlin插件.

This can happen when you import your settings from a previous version of Android Studio. Typically, this means you have a locally installed Kotlin plugin that is not compatible with the new IDE.

要解决此问题,请从以下位置删除Kotlin目录位置:

To fix this issue, remove the Kotlin directory from the following locations:

Linux:〜/.local/share/Google/AndroidStudioPreview4.1

Linux: ~/.local/share/Google/AndroidStudioPreview4.1

Windows:C:\ Users \ YourUserName \ AppData \ Roaming \ Google \ AndroidStudioPreview4.1

Windows: C:\Users\YourUserName\AppData\Roaming\Google\AndroidStudioPreview4.1

MacOS:〜/Library/Application Support/Google/AndroidStudioPreview4.1

MacOS: ~/Library/Application Support/Google/AndroidStudioPreview4.1

因为当前没有与Canary 9兼容的Kotlin插件可从JetBrains获得,我们将自己的Kotlin插件与Canary 9更新,因此您无需手动安装Kotlin插入.

Because there is no Kotlin plugin compatible with Canary 9 currently available from JetBrains, we have bundled our own Kotlin plugin with the Canary 9 update, so you don't need to manually install a Kotlin plugin. source

同时通过路径〜/.local/share/Google/AndroidStudioPreview4.1 找不到此类文件或目录.由 ./.cache/Google/AndroidStudioPreview4.1 创建的唯一名为 AndroidStudioPreview4.1 的目录.所以我删除了它,对主题没有任何影响.

At the same time by path ~/.local/share/Google/AndroidStudioPreview4.1 no such file or directory. The only catalog named AndroidStudioPreview4.1 founded by ./.cache/Google/AndroidStudioPreview4.1. So I deleted it without any effect on subject issue.

然后我完全删除了〜/.AndroidStudioPreview4.1 ,而不是重命名我以前做过的事情.并解决了问题.

Then I completely removed ~/.AndroidStudioPreview4.1 instead of renaming which I'd done before. And resolved the issue.

我相信Google以与JetBrains不同的方式捆绑了Kotlin插件.因此,路径各不相同.也许是Windows的路径.我认为发行说明中应纠正路径.

I believe Google bundle Kotlin plugin in a different way JetBrains do. So paths differ. Maybe path for Windows to. I believe paths should be corrected in release notes.

解决方案:

rm -r〜/.AndroidStudioPreview4.1

这篇关于Android Studio 4.1 Canary 9 201.6466190-linux发行版已损坏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆