A piece of crap about Android development tools

Source: Internet
Author: User

First, preface

Android has been developing for more than a year, in retrospect, just beginning to learn Android or in the university, that is to watch the Mars Video tutorial on the beginning of the Android road, from the beginning of the environment to build a project, step by step to explore their own progress, Because I have not experienced the senior Android engineer to lead me, so most of my study from the Network Blog,eoe forum, so I love technology to share this thing, because the network is strong because a large number of people do not share their own technology for any benefit, so we can find the answer on the network, Even if there is no answer can find the results of previous research, we can tread on the shoulders of predecessors continue to move forward, technology development will be rapid, Newton said he was stepping on the shoulders of giants success, we are not buried behind closed doors? Hey, Mom, for a long time didn't write a blog, immediately pull the egg far away. Back to the point, talk about getting started with Android development tools that we use.

Second, I think the classic development kit

1, the development of Android we need a Java environment, this undoubtedly, if this does not go to Google "Java environment build", Google recently by the Celestial harmony, not to Bing also can, Baidu that too slag, suggest don't use, if you like to watch various training ads, I do not stop you go to Baidu to find degrees Niang ~~!

2, with the Java environment can use the android most popular IDE ( integrated development Environment) Eclipse, it should be the most popular now, I think, I do not know, should Google out of the more excellent IDE----Android Studio, In hindsight, developers of Java should have no one who doesn't know about eclipse, although the strong Java development tool is not it, and Eclipse's almost downloadable decompression can be used without any configuration installation.

3, Eclipse development of Android is the use of ADT this plugin, ADT integrated a set of things to develop the Android needs, installation is very simple, Baidu can find the answer

Nonsense so much, as if they did not say how to install, statement, I hope to talk about ideas, operation to find Google, because this network has been very much, the above summary of the basic environment to build the necessary tools have Java+eclipse+adt, Beginners who are just starting out may see the above thinking that building an environment is so complicated? In fact, it is not so step by step, now just go to the next Java, and then go to the Android website next ADT integrates Eclipse and ADT and SDK, and then can run up a HelloWorld. Just ran a helloworld, we still know a little better, or how to improve the B-grid it, right. To a connection to do dry goods, or people think it is the text looks also strange tired

Java Download: Http://www.google200.com/search/?q=java

ADT Download: http://developer.android.com/

After these two can develop Hello World, run you can use ADT inside the SDK default virtual machine, of course, this virtual machine runs very slow, slow to We want to dozens, so you can use the real machine, of course you can also use the fastest genymotion based on x86 architecture of the development of virtual machines, All the people who used it said yes. Who should know who to use.

Let's take a look at what he looks like.

It looks better than the original.

Three, about the simulator genymotion those things

: http://www.genymotion.com/

Speaking of Genymotion, I have to pull a little bit about it and the development of those things, first of all, this virtual machine with the architecture is x86 all some apps running up on it, just at the beginning I thought it was a problem, and then know that arm and x86 to be compatible to add a plugin to convert a bit, Details can be studied http://forum.xda-developers.com/showthread.php?t=2528952 this article. Simply be the next genymotion-arm-translation, then reboot the simulator to be OK. There is the possibility of installing genymotion, you are not connected to the Genymotion server, this time you just change the DNS for 8.8.8.8 should be able to, cooked with it than with the real machine still cool. Also think of a map development, this simulator can directly point to the map of Google to the latitude and longitude to the simulator, at that time, I think this thing and Columbus found the new road as happy. For the time being pulled so much, the other good want not to think more.

Iv. Network grasping the package artifact fiddler

: Http://www.telerik.com/fiddler

When doing network development, when the network has a problem, or want to see the network data to do chicken, at the beginning I only know debugging and with tcpdump that two, use particularly inconvenient, especially tcpdumg this slag thing, At that time has been depressed for God horse did not like Chome browser F12 as simple and easy to use tools, and later found that there is really just I did not find. Alas, it can be seen how important the previous guidance is. The principle of Fiddler is to set up a proxy on the computer, and then the mobile phone or simulator with this agent to the Internet can see the data flow, very convenient. Specific configuration asked Niang should have.


About this grab bag also have some broken things, this grab bag sometimes will affect the request, everyone notice, at that time we used in the development process of a 7 bull picture server, open this grab package upload image is going to explode a response head error caused the program crashes, also found 7 of the technical staff asked a half a day, They insisted that their servers would not return like this. Finally depressed debug long time only found is this grab bag caused. Thousands grass mud horse in the heart bolted and past. So when you use it, note that it doesn't have to be a program problem, because the capture tool also causes some unknown errors.


V. New generation of development tools Android Studio

This new development tool, Soga also can't say new, this new development of Google developed specifically for the development of Android integrated development environment is based on IntelliJ idea-the best Java and Polyglot IDE, the most useful Java development environment Ah, So Google from last year launched Android studio 0.1 version to try a fresh, of course, there are a lot of problems, now updated to 0.8 is a lot more, just I because no one in the company to use it, so did not completely run to studio up, now found if not to go to Android I'm going to lag behind in studio, and Android Studio is much better at smart lookups than eclipse, and there's almost no change in ADT on Eclipse, with new tools to keep the freshness of the moment. Of course, Android Studio in the celestial installation is often unsuccessful, because the first time you create a project will download a gradle, and this is on the Google server, once the back wall will not be down, so in the manual download one, and then set up a bit like. The habit of using eclipse to turn over the default shortcut keys will be very unaccustomed, to Keymap to eclipse. Android Studio use time is not much, feel has not come out, so there is nothing to pull, just think this is the direction of development, maybe after everyone to the Android studio transfer, so use this can not be wrong.



Vi. Summary

There are a lot of tools in development, like APT, mat, lint similar to these code optimization monitoring tools, these advanced tools we have the opportunity to in-depth understanding, I also in the introductory stage, so these tools are less use, understand very little, nothing can be torn, so learn slowly.

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.