Ubuntu 16.04 ubuntu-make android 错误:在没有类别 Android 的情况下请求了默认框架

Nor*_*ton 7 android android-studio ubuntu-make

我尝试使用 ubuntu-make 在 Ubuntu 16.04 中安装 Android Studio 2.0,如维基手册视频中所述

fieldmarshal@fmcomp:~$ umake android
ERROR: A default framework for category Android was requested where there is none
usage: umake android [-h] {android-ndk} ...
Run Code Online (Sandbox Code Playgroud)

另一种输入方式也无济于事:

fieldmarshal@fmcomp:~$ umake android android-studio
usage: umake android [-h] {android-ndk} ...
umake android: error: argument framework: invalid choice: 'android-studio' (choose from 'android-ndk')
Run Code Online (Sandbox Code Playgroud)

尽管其他 IDE 安装正常,例如当我运行: 时 umake ide idea,一切正常。

但是当我尝试安装 Android Studio 时,我不断收到这些错误。

Kai*_*tje 6

我在另一个 askubuntu 线程中找到了一个解决方案:Why can I can't get Android Studio from umake again?

即使我使用的是 Linux Mint,以下摘自上面的链接也对我有用:

您需要拥有最新版本的 umake,截至撰写本文时为 17.03。我的是旧的,所以我换了它。

umake --version
Run Code Online (Sandbox Code Playgroud)

不要从标准 ubuntu 存储库安装 umake,而是添加 ubuntu-desktop 存储库以获取最新的 umake 版本。添加存储库

sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
Run Code Online (Sandbox Code Playgroud)

更新软件源

sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

现在安装/升级 umake

sudo apt-get install ubuntu-make
Run Code Online (Sandbox Code Playgroud)

现在通过以下方式安装 Android Studio

sudo umake android
Run Code Online (Sandbox Code Playgroud)