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 published for quite a long time. Has not been tried, here is a compilation process and steps, assuming to try. This article assumes that the reader already has the experience of downloading and compiling Android, assuming no, please install the appropriate environment for Google related articles. such as Java various support libraries. Download Source: Google Official Download:
- u https : //android.googlesource.com/platform/manifest-b android-4.4w_r1

In view of the majority of domestic network environment. Google's server has no way to access and can try other mirror sites. Take 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 folder: external/chromium_org/third_party/boringssl/src/, is the SSL library, all of the heart of the hole. Google has implemented a OpenSSL itself. It is
This boringssl, there is no mirror on GitHub, I mirrored one, address: https://github.com/ruier/boringssl-src.git
Switch Java version number the latest Android source code needs OPENJDK to compile. The recent version number 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 compilation inside:
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

Related Article

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.