IDEA builds the Android wear development environment, Android wear, I & #39; m comming !, Androidcomming

Source: Internet
Author: User

IDEA builds the Android wear development environment, Android wear, I'm comming !, Androidcomming

With google releasing android wear and Samsung gear, LG's G watch and moto 360, apple released apple watch, there may be another war in the smart watch industry in the future. Of course, this is my personal opinion and is for reference only.


As a developer, we are concerned about development of watches only. So let's build a development environment for android wear!

To build the android wear development environment, we need the following software: Intellij 13.1.3 and android-sdk 23.0.02.

First, download and install the android-sdk, Which is 23.0.02, and then install the following package



Note: Do not use the android wear sdk 4.4.2. It is a preview version. Now it seems that it cannot be used. I cannot connect to it on my mobile phone.

Then install IDEA. You can understand IDEA as android studio. android studio is only a part of idea functions. Then, when creating an android project, you must specify the sdk path, just specify it.

The next step is to create a new project. The new project is as follows (note: the topic must be none)


After next


Next, and finish.

Open MainActivity. java, after android is created, IDEA will always report errors. In fact, IDEA uses gradle as the android project construction tool, while tianchao's network cannot download foreign gradle tools.

The solution is to install it manually or use a proxy server. The author uses shadowsocks as a proxy.

Manual installation: http://www.cnblogs.com/jinmingjie/p/3470101.html (here also mention the android development environment to build, you can also look)

Run ctrl-alt-s on the proxy server and search for proxy configuration.

After the gradle tool is installed, you must add the dependent libraries required for android wear development to the gradle build file.

Add


Open the AndroidManifest. xml file, and the gradle file to be synchronized will appear at the top. Click synchronize. gradle will automatically download the library file that we have added dependencies. (Proxy is also required here)

After the solution is completed, we find that all the engineering errors are lost.

The next step is to create a virtual machine for android wear. Select


Open the AVD manager and create the following virtual machine:


Then run the VM


Then run the project


Now we can see the familiar hello world, haha! Success


Finally, I did not use eclipse in this android development environment because I was unable to build it in eclipse, so I tried IDEA. Then I tried setting up the android wear environment in eclipse, I will share with you later. The next article may introduce how to connect a mobile phone to the simulator so that notifications on the mobile phone can be sent to the simulator.


I am a newbie studying computer science. If you have any questions, you are welcome to criticize and correct them. If you encounter any problems during the construction, you can leave a message to me for discussion.


I don't buy a pink pants what she wear was a good idea right?

There are a lot of problems.
1. pants is a complex number. You cannot use a, those pants, or a pair of pants.
2. Either wears or wore behind she, and wear cannot appear.
3. The front is don't, the back is was, and the time is inconsistent.
4. The entire sentence does not mean anything.
You need to work harder, kid.

I am not sure which tie to wear for the party I have no idea, why does either not need neither ??

Too is used to indicate "also" in the affirmative sentence, and either is used in the negative sentence,
Neither itself indicates "None of the two". The sentence already contains a negative word "no". If the sentence is "no", "no" indicates that the sentence must be "no.

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.