foreword
It's been a long time since I blogged, and with Google's new Android Wear development platform released, I decided to write something. In the next period of time, I will work with you to study this system that will be worn on the body. As the saying goes, if you want to do well, you must first sharpen your tools. Today we will first talk about building a development environment.
IDE
First of all, let's talk about the IDE we will use this time. This time we will use Android Studio. This IDE is an IDE launched by Google for Android development. It has made many optimizations for Android development. For students who have not used it before, it may be inconvenient at first, but I believe you will get used to it after you get started. The download address of Android Studio is: http://developer.android.com/sdk/installing/studio.html . Of course, since it is a service of Google, for well-known reasons, this requires some skills. Since this is suspected of violation, the author is inconvenient to say more. A netizen uploaded a strange thing, and I don't know what it is used for: http://pan.baidu.com/share/home?uk=3023992890#category/type=0 . Download SDK
After downloading Android Studio, click to open the SDK Manager, and download the SDK files required by Android Wear . Of course, I recommend downloading the sample code if conditions permit. I will select some of Google's sample programs to explain in the following tutorials. , if you really can't download it, you can temporarily not download Samples for SDK. Students who encounter difficulties in this part can refer to this blog post: http://my.oschina.net/tingzi/blog/209643 . In addition, since Android Wear requires the Android SDK version to be at least 4.3, you also need to download the Android SDK of Android 4.3 or above, remember. Create an emulator
After downloading the SDK, you can click here to open the AVD Manager in Android Studio, and then it is no different from creating a normal Android emulator.
After starting the created simulator, you can see the simulator of the smart watch.
Connect to the emulator via your phone
First of all, a premise is that the mobile phone used for connection must be able to use google service framwork, which needs to be done by yourself. If your mobile phone is already able to use Google's services, you need to download a software called, Android Wear, which can be found with google play or 360 mobile phone assistant , after starting the software, it is like this
Next, in the command line Enter the following command , after the connection is successful, you will be able to see the Google Voice logo on the simulator, as shown in the figure below
About code and project
In the following blog posts, I will paste the key code into the text and explain it. I will publish the code of the entire project on OSChina's git for everyone to download and view. Tail
So far, the development environment of Android Wear is basically completed. Since most of the resources need to be over the wall, if you are doing it for the first time, you must be patient and Google a lot. The next update begins and we begin our official Android Wear development journey, Hello Android Wear!