Idea builds Android Wear development environment, Android Wear,i ' m comming!

Source: Internet
Author: User

With Google releasing Android Wear and then having Samsung's Gear,lg G Watch and Moto 360, Apple has released Apple Watch, and there may be another war in the smart watch industry in the future. Of course, this is only the author's personal views, for reference only.


As a developer, of course, it is only the development of watches, so let's build the Android Wear development environment!

To build the Android Wear development environment, we need the following software IntelliJ 13.1.3,ANDROID-SDK 23.0.02.

First you need to download and install the ANDROID-SDK, here is the 23.0.02, then need to install the following package



Note, do not use the 4.4.2 Android Wear SDK, that is the preview version, now seems to be unable to use, anyway, I can not use the phone connection.

And then install idea, about what you understand as Android studio, Android Studio is just some of the features that you'll need to specify the SDK path when creating a new Android project.

Next is the new project, the new is as follows (note: The subject must be none)


After next


And then all the way next, and the final finish is done.

Open Mainactivity.java, after the creation of Android will find that idea will always error, in fact, because of the Gradle as the Android construction tools, and the celestial network can not download foreign gradle tools

The workaround is to install it manually, or to use a proxy server. The author uses shadowsocks as the agent.

Manual Installation: Http://www.cnblogs.com/jinmingjie/p/3470101.html (This is also the way to mention the Android development environment, you can also see)

Use the proxy server to ctrl-alt-s and then search for proxy configuration.

After installing the Gradle tool, you need to add the dependent libraries needed for Android Wear development in the Gradle build file.

Under Build.gradle in the app directory, add


Then open the Androidmanifest.xml file, in the above will be asked to synchronize the Gradle file, click Sync, gradle is automatically download we add dependent library files. (also need to use proxy here)

When it was done, we found that the project had gone wrong.

The next step is to create a new Android Wear virtual machine, select


Open the AVD Manager and create a new virtual machine as follows


Then run the virtual machine


Then run the project


You can see our familiar hello World, haha! Done


Finally, the Android development environment did not use eclipse to do things because I really do not build up in eclipse, so I tried the idea, then I will try Eclipse's Android Wear environment to build, then share with you, The next one may say how to connect the phone to the simulator, so that the notification on the phone can run to the simulator up.


I am a novice learning computer, if there is not the right place, welcome to the great gods to criticize. If you encounter any problems in the building, you can leave a message to me, we discuss the exchange.

Idea builds Android Wear development environment, Android Wear,i ' m comming!

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.