简体   繁体   English

如何在未在ubuntu上安装Android Studio的情况下安装android SDK工具?

[英]How to install android SDK tools without installing Android studio on ubuntu?

I was trying to install Android SDK with the help of the SDK command line tools downloaded from the link https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip on my Linux Ubuntu 16.04 PC. 我试图在我的Linux Ubuntu 16.04 PC上从链接https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip下载的SDK命令行工具的帮助下安装Android SDK。 i run the command following command for installation 我在安装后运行以下命令

./android update sdk  
sudo ./android update sdk

but getting the this error 但是得到这个错误

how to solve this error ?or suggest me a proper way to install build tools. 如何解决此错误?或建议我安装构建工具的正确方法。

FYI 费耶

and also i read that ~/.android should contain androidtool.cfg file which has below data in it. 而且我读到〜/ .android应该包含androidtool.cfg文件,其中包含以下数据。

   http.proxyPort=proper_port

   http.proxyHost=Proper_proxy_ip

   sdkman.show.update.only=true

   sdkman.ask.adb.restart=false

   sdkman.force.http=true

It says that android script is deprecated, so you must use $ANDROID_HOME/tools/bin/sdkmanager --update for update all the installed packages, and $ANDROID_HOME/tools/bin/sdkmanager --list for see a list of installed, updates and available packages. 它说不赞成使用android脚本,因此您必须使用$ANDROID_HOME/tools/bin/sdkmanager --update来更新所有已安装的软件包,并使用$ANDROID_HOME/tools/bin/sdkmanager --list来查看已安装的更新列表。和可用的软件包。
See more options at: https://developer.android.com/studio/command-line/sdkmanager.html or with $ANDROID_HOME/tools/bin/sdkmanager --help 在以下位置查看更多选项: https : //developer.android.com/studio/command-line/sdkmanager.html或带有$ANDROID_HOME/tools/bin/sdkmanager --help

$ANDROID_HOME refer to the location of your Android SDK. $ANDROID_HOME是指您的Android SDK的位置。 by example: export ANDROID_HOME=$HOME/android/sdk 例如: export ANDROID_HOME=$HOME/android/sdk

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在不安装 Android Studio 的情况下安装 GUI android SDK 管理器 - How to install the GUI android SDK manager without installing Android Studio 安装 Android Studio 时无法安装 SDK 工具组件 - Unable to install SDK tools component while installing Android Studio 刚安装Android Studio后如何离线安装SDK工具? - How can I install the SDK tools offline after just installing Android Studio? Android:如何在不使用Android SDK工具的情况下在设备上安装APK - Android: how to install apk on device, without using android sdk tools How to install Android SDK for flutter development on Ubuntu without android studio.? - How to install Android SDK for flutter development on Ubuntu without android studio.? 如何仅在 Ubuntu 上安装 Android 工作室命令行工具 - How to install Android studio command line tools only on Ubuntu 在Android Studio中安装哪些SDK平台工具? - In Android Studio which SDK platform tools to install? 如何在32位Windows 7中使用SDK工具安装Android Studio - How to install Android Studio with SDK tools in 32 bit Windows 7 如何在 Ubuntu 上安装 Android SDK? - How to install Android SDK on Ubuntu? 在不安装 Android Studio 的情况下安装 Android 仿真器 - Install Android emulator without installing Android Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM