Hello, I am Ma Nongfei ge, thank you for reading this article, welcome one button three lian oh. This article focuses on the Android SDK and how to install Android Studio for Android development. Dry goods full, suggested collection, need to use often look. If you have any questions or needs, please feel free to leave a message.
preface
The last article set the Android learning plan, this article officially entered the Android learning journey. This article will focus on the Android SDK directory structure, how to install Android Studio, and how to develop your first Android application with Android Studio.
How do I install Android Studio?
Android Studio is Google’s official recommended development tool for Developing Android. It is developed on the basis of IDEA. It has good support for Android and is the preferred development tool for Android. accessThe official address of Android Studio, click on theDownload Android StudioButton to download the latest version of the Android Studio installation package.After the installation package is downloaded, it is time to install. The installation process is relatively simple. In the Windows environment, just click Next. In the Mac environment, just drag Android Studio into Applications to complete the installation. Android Studio automatically installs the Android SDK for us. Clicking to open the Android Studio application will bring up the following screen.
What is the Android SDK?
Once you have Installed Android Studio, you can download theFile->Appearance&Behavior->System Settings->Android SDKCheck the installation path of the Android SDK. In this case, MY Mac environment, the default path is/Users/xiaowei/Library/Android/sdk
. The version of the SDK installed here is up to dateThe Android 12.0Version.Go to this directory to find the SDK, you can see the SDK directory structure as shown below:First of all, what exactly is the Android SDK? Those who have learned Java should be very clear about the Java JDK. It is the Java virtual machine and the basic environment for Java to run. That is to say, Java applications must have JDK to run. The JDK contains a number of toolkits necessary for JAVA development. Such as system classes and so on. Similar to the JDK,Android SDK is the exclusive Android software development kit, you can use it to quickly develop Android applications.
With the Android SDK concepts behind it, let’s take a look at the SDK directory structure.
- build-tools
Save some Android platform related general tools, such as ADB, and aapt, aidl, dx files. Build-tools includes common tools for each Android SDK version. Aapt stands for Android Assert Packaging Tool. This Tool can view, create, and update document attachments in ZIP format (ZIP, JAR, and APK). Resource files can also be compiled into binaries.
Adb is the Android Debug Bridge to manage emulators and real machines, a universal tool, DDMS debugging environment. AIDL (Android Interface Definition Language) is an Android internal process communication Interface description language, through which we can define the communication Interface between processes. Dx: convert. Class intermediate code to DVlik intermediate code, all. Class files generated by Java compilation need to be converted by this tool, and finally packaged into apK files. Dexdump: You can use dexdump to view the dex execution in apK files and roughly analyze the original Java codeCopy the code
- The emulator directory contains the main Android emulator program, emulator, and various resources.
- Licenses Licenses The Open source certificate of the Android SDK is stored in the directory.
- Platform-tools This directory contains platform tools
- Platforms platforms is the core content of the SDK. Each Android SDK version includes a directory containing system images, tools, sample code, and more. Platforms directory structure for each version:
- Data / : contains default fonts, resources, etc.
- Skins /: Contains several emulator skins, each of which corresponds to a screen size;
- Android.jar: a Java package of Android library files used when compiling android applications for the platform;
- The skins directory contains the skins of the Android emulator
- The sources sources directory stores the resource packs under each Android SDK version. The resource packs contain various tool classes required for Android development. The most important of these is the Android directory.
- Tools is the Tools folder in the SDK root directory, which contains important tools. For example, Emulator is the main Android emulator program. Mksdcard is a tool for creating SD images of emulators
- System-images This directory stores all images used by the system
Android directory
As a Java project, it is common to introduce the utility classes you need, which are JAR packages.
The Android directory mainly includes the following contents:
The name of the | role |
---|---|
app | Provides a high-level program model and a basic runtime environment |
content | Contains classes for accessing and publishing data on devices |
database | Browse and manipulate the database through the content provider |
graphics | The underlying graphics library |
location | Classes for locating and related services |
media | Provides some classes to manage a variety of audio, video media interface |
net | Provides classes that aid network access beyond the usual Java.net.* interface |
os | Provides system services, message transfer, and IPC mechanisms |
opengl | Provides tools for OpenGL |
provider | Provides classes that access Android content providers |
telephony | Provides API interactions related to making phone calls |
view | Provides a basic user interface interface framework |
util | Methods that involve instrumentality, such as time and date manipulation |
webkit | The default browser interface |
widget | Contains various UI elements for use on the screen of the application |
test | A class that provides the Android unit testing framework |
security | Classes that provide the Android security framework |
service | Android core service classes |
nfc | Provides basic classes for NFC functionality |
debug | Provides the base classes required for debug functionality |
conclusion
This article first explains how to install Android Studio, then focuses on the Directory structure of the Android SDK.
I am Mynongfei and thank you again for reading this article.
The whole network with the same name [code nongfei brother]. Thank you again for reading this article.