Android Wear Eclipse development environment, androideclipse
This article describes how to build an Android Wear development environment in Eclipse. Remember, this is not what you want to do. The following describes the procedure in detail to ensure that you can work properly.
3. Then you can start the simulator to familiarize yourself with the Android Wear operations.
4. Create an Android Wear Application (The following are the key steps)
5. Create an Android Wear project first.
Next, we choose to create a "Blank Wear Activity". If your ADT has not been upgraded, you may not see this option.
Click Next. Next, you will find that the new project is not compiled through ?????? Well, we found that some packages are missing here. Where are these packages? The next step is the key. Enter the following directory
/Your_android_home/extras/google/m2repository/com/google/android/support/wearable/1.0.0You will find some files related to wearable. There are two key files.
Wearable-1.0.0.aar and wearable-1.0.0-javadoc.jar"Decompress the aar file to a specified folder type, create a libs subfolders in the folder type, and then copy classes. jar and wearalbe-1.0.0-javadoc.jar to the libs directory. Then, import it to eclipse. Set it to Library and import it to eclipse. Then, reference this Library from the AndroidWearTest project we created at the beginning. You will find that the errors of the above project have disappeared. Then we run the project on the simulator, and you will unfortunately find that the program crashes, and the prompt is as follows:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.curious.awtest/com.curious.awtest.MainActivity}: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.
When this error occurs, we need to modify the styles. xml file in our project. The default Theme settings are as follows:
<style name="AppBaseTheme" parent="android:Theme.DeviceDefault"> <!-- Theme customizations available in newer API levels can go in res/values-vXX/styles.xml, while customizations related to backward-compatibility can go here. --> </style>
Next, we will run our project on the simulator again. This time we can run it successfully and finally thought about the following:
The references are as follows:
Https://medium.com/@tangtungai/how-to-develop-and-package-android-wear-app-using-eclipse-ef1b34126a5d
Http://stackoverflow.com/questions/24520240/import-android-support-wearable-cannot-be-resolved
Http://stackoverflow.com/questions/24471891/wear-project-attr-androidwindowswipetodismiss
Http://stackoverflow.com/questions/24567836/unable-to-execute-intial-android-wear-hello-world-app-in-eclipse
How to build an Android development environment using eclipse
First download an android sdk, and then install the simulators of various android versions online. It takes a lot of time. I remember that I spent a whole night (my network speed is slow). After the installation, I can create a simulator. Of course, this can only be an independent running simulator that has not been integrated into the IDE.
Secondly, download ADT (Android Development Tools) PLUG-IN. The adt plug-IN can be integrated into Eclipse or MyEclipse. you can install it online or independently download ADT, then integrated into the IDE. In this way, you can use MyEclipse to develop android applications.
How to build an android development environment? Which version does eclipse need to download?
Both 1 and 3 are supported,
Then download an android SDK from the official Android website,
How to install the SDK
Du tianwei [authoritative expert]