Single-host Android Development Environment (5) and single-host android Development
The above section describes how to set up the development environment for Android. This article will briefly introduce how to set up the development environment for Android applications.
Building an Application Development Environment Based on Android Studio is much easier than using Eclipse. Android Studio is also the application development environment officially recommended by Google. It is indeed very tall and the version is updated very fast!
First install JDK. The installation process is always the default.
JDK official: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
JDK-8u73 (x86, x64) for Windows CSDN: http://download.csdn.net/detail/sunrain_hjb/9463661
After JDK is installed, install Android Studio.
Official website of Android Studio 1.5.1:
Https://dl.google.com/dl/android/studio/install/1.5.1.0/android-studio-bundle-141.2456560-windows.exe
If you cannot access it, contact the master (Blue Light) for help. This is one of the essential tools for Android development!
Android Studio 1.5.1 official version 360 cloud Disk: https://yunpan.cn/OcYEwUigBR4WwD access password e29d
Android Studio can also be installed by default. To facilitate migration, you can customize the installation directory during the installation process. Install the SDK and Android Studio in the same directory, as shown in.
Because Google's website cannot be accessed in China, an error occurs when updating the SDK. The information is as follows:
Fetching https://dl.google.com/android/repository/addons_list-2.xmlFailed to fetch URL https://dl.google.com/android/repository/addons_list-2.xml, reason: Unknown Host dl.google.comFetched Add-ons List successfullyFetching URL: https://dl.google.com/android/repository/repository-11.xmlFailed to fetch URL https://dl.google.com/android/repository/repository-11.xml, reason: IO Unknown Host dl.google.comDone loading packages.Fetching URL: https://dl.google.com/android/repository/repository-11.xmlFailed to fetch URL https://dl.google.com/android/repository/repository-11.xml, reason: IO Unknown Host dl.google.comDone loading packages.
You can solve this problem by setting a proxy, as shown in.
For more proxies available in the wall, visit http://www.androiddevtools.cn /.
For how to use Android Studio and how to use it, please download the video tutorial and observe it carefully.
Video tutorial: https://yunpan.cn/OcY8jbuyXIfphH access password 44f9
Android Application Development also has an important part, NDK. Although the official reminder is not to use it intentionally, most apps are unnecessary, and things will become more complicated. However, you don't need a knife to kill chickens, but you have to use it to kill cows. I also used NDK, socket communication, Framebuffer processing, and jpeg compression when porting WinCE's Remote Desktop assistant to the Android platform. Originally, C was written on WinCE, with NDK, You can compile with a slight modification, which not only improves the running efficiency, but also improves the development efficiency. This should also be an important use of NDK. Reuse the existing C code.
The NDK official website is as follows,
Https://dl.google.com/android/repository/android-ndk-r11-windows-x86.zip
Http://dl.google.com/android/repository/android-ndk-r11-windows-x86_64.zip
NDK r11 for Windows in China:
Http://mirrors.neusoft.edu.cn/android/repository/android-ndk-r11-windows-x86.zip
Http://mirrors.neusoft.edu.cn/android/repository/android-ndk-r11-windows-x86_64.zip
Similarly, when NDK is installed, the path is also set in the same directory as SDK and Android Studio for migration.
Android Studio How to use NDK please see the video, How to create a c ++ library with NDK on Android Studio 1.5 (not experimental way), the video is as follows, https://yunpan.cn/OcYEuGwtVnx9mp access password e0db. To be honest, the configuration of NDK is a bit complicated. Currently, there are two ways, and the other is experimental way. When porting the Android Remote Desktop Assistant (Android Remote Displayer), I used gradle-experimental: 0.4.0. In order to use the jpeg compressed library, I will discuss it in detail later.