Download compile Android Wear source code, try to make wearable device function

Source: Internet
Author: User

Experience Android Wear reason: Android Wear code has been released for a long time, has not tried, here is a compilation process and steps, if you want to try, this article assumes that the reader has been downloaded to compile Android experience, if not, please Google related articles install the appropriate environment , such as Java's various support libraries. Download source code: Google Official Download:
- u https : //android.googlesource.com/platform/manifest-b android-4.4w_r1

In view of the majority of the domestic network environment, Google's server can not access, to try other mirror sites, TI as an example:
Repo Init-u git://git.omapzoom.org/platform/manifest- b android-4.4w_r1

TI's Mirror site is missing a library: Boringssl directory: external/chromium_org/third_party/boringssl/src/, yes, SSL library, all of the heart of the leak, Google itself to achieve a OpenSSL It is
This boringssl, there is no mirror on GitHub, I mirrored one, address: https://github.com/ruier/boringssl-src.git
Switch Java version The latest Android source code needs OPENJDK to compile, from the most recent version KitKat or Oracle Java 6来 compiled, so you need to download the installation OpenJDK 7

Java 7:for The latest version of Android

$ sudo apt-get update$ sudo apt-get install openjdk-7-jdk

Optionally, update the default Java version by running:

$ sudo update-alternatives --config java$ sudo update-alternatives --config javac

Compile: I used the armv7-a-neon default compiler:
Printconfig
============================================
Platform_version_codename=aosp
platform_version=4.4.3.43.43.43
Target_product=mini_armv7a_neon
Target_build_variant=userdebug
Target_build_type=release
target_build_apps=
Target_arch=arm
Target_arch_variant=armv7-a-neon
Target_cpu_variant=cortex-a9
Target_2nd_arch=
Target_2nd_arch_variant=
Target_2nd_cpu_variant=
Host_arch=x86_64
Host_os=linux
Host_os_extra=linux-3.2.0-48-generic-x86_64-with-ubuntu-12.04-precise
Host_build_type=release
Build_id=aosp
Out_dir=out
============================================

Download compile Android Wear source code, try to make wearable device function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.