现在我无法安装 ubuntu-sdk,也无法解决问题。我使用了:
sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ubuntu-sdk
但我在安装 ubuntu-sdk 时总是遇到依赖关系问题
ubuntu- sdk : Depends: ubuntu-sdk-libs-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我能做什么?谢谢
答案1
我们正在解决这个问题,但一个想法是sudo apt-get install ubuntu-sdk-libs-dev libgl1-mesa-dev-lts-utopic libgles2-mesa-dev-lts-utopic
我会检查它是否是解决此问题的足够通用且永久的解决方案。但值得一试。
答案2
安装 SDK 的好解决方案:
sudo apt-get install openjdk-7-jdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
选择您要安装的内容:
./android update sdk
将 sdk 添加到您的路径:
nano ~/.bashrc
只需插入以下一行:
export PATH=${PATH}:$HOME/sdk/android-sdk-linux/platform-tools:$HOME/sdk/android-sdk-linux/tools:$HOME/sdk/android-sdk-linux/build-tools/22.0.1/
之后,逐行输入以下行:
export ANDROID_HOME=/<sdk installation location>/android-sdk-linux
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
source ~/.bashrc
sudo apt-get install libc6:i386 libstdc++6:i386
sudo apt-get install zlib1g:i386