Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install SDK on Linux system

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you how to install SDK in Linux system. The content is simple and easy to understand. It is clearly organized. I hope it can help you solve your doubts. Let Xiaobian lead you to study and learn this article "How to install SDK in Linux system".

SDK: SDK is a software development kit (abbreviation: SDK, foreign language full name: Software Development Kit) is generally a collection of development tools for software engineers to build application software for specific software packages, software frameworks, hardware platforms, operating systems, etc.

Linux system installation SDK detailed steps: 1. Where to download SDK? android studio official website, the bottom linux command line tool, this method is not used temporarily, because it will not

Note: There is a very bad situation here. Official linux inside the command-line tools only do not know what is the case, download and extract just tools, sdk tools directory. Although this is the only one, I don't know how to use it now.

See tutorial Download sdk android_sdk_r24.4.1

Where do you get these sdk resources? Android Resource Network

2. Install SDKlinux server download, wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz

Unzip tar xvzf android-sdk_r24.4.1-linux.tgz

3. Configure SDK environment variables

vim /etc/profile export ANDROID_HOME=/usr/local/android-sdk-linux export PATH=$ANDROID_HOME/tools:$PATH export PATH=$ANDROID_HOME/platform-tools:$PATH make environment variable changes effective source /etc/profile

List resources to install

android list sdk-all List all sdk resources including Sdk buildTools,SDK platform, etc. Select the serial number of the required resource, such as 3 is buildtoolsVersion 28.0.3, 47 is platform 8.1.0

android update sdk -u -a -t 3,47(serial number of resource required)…Download

Note: At present, the general android project will come with its own wrapper directory, which has gradle, the project root directory and scripts, so generally do not need to download gradle when running. Android studio configuration gradle plugin can be. If there is no gradle and no as in the project, you need to download gradle. Steps are as follows: 1. Download gradle wget https://services.gradle.org/distributions/gradle-2.12-bin.zip 2. Unzip gradle-2.12-bin.zip 3. Configure environment variable GRADLE_HOME=

PATH:$GRADLE_HOME/bin 4. source /etc/profile 5. Enter gradle to check if the installation is successful

Find your missing component such as android-28 code and install it.

4. Problems encountered running the project in./ gradlew assembleRelease may appear when compiled

You have not accepted the license agreements of the following SDK components: [Android SDK Build-Tools 24, Android SDK Platform 24]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html This is due to missing components, here is missing platform android-28. So it needs to be installed

Android list SDK --all may also appear

./ gradlew: Permission denied This time you need to add executable permissions

chmod +x ./ gradlew execute./ gradlew assembleRelease reported net java command When the Linux environment was first configured, it was not logged in to root. At this time, all kinds of commands need to be added sudo . It's inconvenient, especially if you have to perform... Gradlew assembleRelease is packaged, and the java command cannot be found. Because this is done via sudo, root is not configured with java. So you need to get through

sudo passwd root Configure a new password for root and then switch to normal user via su, remember to source ./ bash_profile is now ready to be packaged and executed.

That's all for "How to Install SDK on Linux". Thanks for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report