Eclipse, It's time to say Goodbye.--android studio most fully resolved

Source: Internet
Author: User
<span id="Label3"></p><p><p>Transferred from: http://blog.jobbole.com/77635/</p></p><p><p></p></p><p><p>Last year's Google conference, Google brought us a small toy--android Studio, said it is a toy, because it does compare dishes, the interface is outdated, the operation is not smooth, not high efficiency, but now, Although the version is still 0.6, not even to 1.0, but we can find that the son is a pro son, now the Android studio has not changed, with a period of time, simply put it down, i think, It ' s time to say goodbye eclipse!</p></p><p><p>This article will lead you to a thorough understanding of Android Studio, Note: because of the reasons of the celestial, our understanding of the process will be more tortuous, but eventually everyone will see the dawn, and then you do not want to go back to the dark!</p></p><p><p>first, download, website address:: https://developer.android.com/sdk/installing/studio.html#download</p></p><p><p>Think about it or not, and so you can open more than a few lines of code, we can go to some of the domestic diversion site download, Everyone enjoy baidu, this is not Difficult.</p></p><p><p>This is the goods!</p></p><p><p>Installation I will not say, are programmers, nothing difficult, but some people install error:</p></p><p><p>Most of the startup failure is due to the JDK environment variable problem, when setting up the JDK note that the environment variable added OK.</p></p><p><p>Then it is the startup process:</p></p><p><p></p></p><p><p>And Eclipse is still more like.</p></p><p><p></p></p><p><p>Choose New or import to start our project, the first time you create, to download some things gradle, it will be a bit slow.</p></p><p><p>If the project is inside eclipse, we can export it to Android studio format and it is easy to import Android Studio Development.</p></p><p><p></p></p><p><p>Select Export as Gradle build file is Ok.</p></p><p><p>When you import, Android Studio will automatically recognize it.</p></p><p><p>This gradle is very big, is the Google used for intelligent building Project building integration tools, specific use can baidu, in short, he can put a large string of compile command with a line of code to Complete.</p></p><p><p>Since it's so cool, slow Down.</p></p><p><p></p></p><p><p>As you can see, memory usage is still excellent, not as much as Eclipse does on G.</p></p><p><p>Once configured for the first time, we are ready to go to the start-up interface, where I am importing an Eclipse project to Demonstrate:</p></p><p><p>Let's Shake It all down:</p></p><p><p></p></p><p><p>is not very good bright!</p></p><p><p>But this is still hard to come by, first of all we have to solve the problem of face:</p></p><p><p>In fact, the default interface is not this way, a bit like eclipse, anyway, is white bottom first we face:</p></p><p><p>Click Settings:</p></p><p><p></p></p><p><p>That's the little wrench, and then choose Appearance.</p></p><p><p></p></p><p><p>Choose theme for darcula, This is the programmer to install force or eye care. The breakfast was Perfect.</p></p><p><p>Then in order to solve the problem of Chinese display, we need to set the next font, the proposed Microsoft jas, the size of their own settings.</p></p><p><p></p></p><p><p>Then set the font for the following edit Area:</p></p><p><p></p></p><p><p>Just take a name and save as a bit to edit it.</p></p><p><p>To meet the voice of the vast number of programmers, we also want to set up something, such as automatic prompt, have to say, Android Studio automatic prompt function is very powerful, but, if you want to enter "string", you enter "string", This is not prompt, that is, case-sensitive, Isn't that right? Very simple:</p></p><p><p></p></p><p><p>Choose the case is not sensitive, ok! This way you want to tip how to prompt!</p></p><p><p>Then there is a little uncomfortable, used to eclipse the people will find that the mouse hover on the program when, nothing! well, right, Android Studio default is no mouse hover hint, want to use shortcut key ctrl+q, This also has the advantage, the comparison configuration is too poor computer will not die. But some of the more nostalgic refused, OK, we change:</p></p><p><p></p></p><p><p>See no, according to the check on the picture ok, familiar hints come Out.</p></p><p><p>There are some other settings such as line number ah, tab number ah, what format ah, everyone in the editor can find settings, relatively simple, we are self-reliance it.</p></p><p><p>ok, our face is getting better, let's give him the soul Below.</p></p><p><p>Currently the latest version is 0.6, if the previous version of the upgrade to 0.6, we will be surprised to find that the new PJ is wrong! well, yes, compared to the pit dad is not, I just started when also depressed, and even unloaded n times. The final summary of how to fix this problem:</p></p><p><p>In a word, this problem is sensitive words, we all understand, the rich please use a vpn, money, no money, Please modify the host file, specifically, you can refer to my previous article:</p></p><p><p>A sigh of a celestial Programmer--change the hosts bar</p></p><p><p>Then we open the SDK Manager, no accident, we can not see the following things, unless changed the host, with a vpn, I have been here for nearly 2 hours,</p></p><p><p>finally, with the help of various resources, happened to have the right, in this share, I hope not to be the wall again!</p></p><p><p></p></p><p><p>of course, to tick force, This is what everyone knows.</p></p><p><p>first, we're going to upgrade the build tool, which is the source of the error!</p></p><p><p>Various errors, such as:</p></p><p><p>Error:1 0 plugin with id ' Android ' not found.</p></p><p><p>What else:</p></p><p><p>Error:2 0 .......</p></p><p><p></p></p><p><p>We will first upgrade down to 19.1.0.</p></p><p><p>Then we need to modify the following in the project</p></p><p><p></p></p><p><p>Change the default 19.0.3 to 19.1.0 and try aging Ok.</p></p><p><p>So far, basically no more mistakes, if wrong please wash your face, find a lucky day and try Again.</p></p><p><p>Let's take a look at some of the places where it's awesome:</p></p><p><p></p></p><p><p></p></p><p><p>It can be seen that, compared to eclipse, it is post-modern, Google engineers spend a lot of time, analysis of various code writing specifications, and in Android studio to achieve, a piece of code how to write better, a little know, code folding function, but also let everyone see more pleasing.</p></p><p><p>The Code hints function is more and more perfect, This is eclipse cannot compare.</p></p><p><p>Below we want to see its most dazzling place, real-time UI design features, We all know this time Apple came a playground, can be programmed to preview the effect, it feels really good, we Android programmers have to scare urine, in fact, the urine was found, It is really a playground, the current function is just let you play, not to the level we want to, but do want to praise one, if you can really do this programming, estimated that every is a coder.</p></p><p><p>This version, UI design more and more awesome, can be programmed to preview the effect, of course, just xml, not the real-time compilation run preview, alas, I hope this day early arrival.</p></p><p><p>A casual interface, do not spray me, thank you:</p></p><p><p></p></p><p><p>Design interface, and then look at the text interface:</p></p><p><p></p></p><p><p>really, now do the UI is not much more convenient, no longer like a fool to keep cutting tab to see the Effect.</p></p><p><p>And then look at some common features:</p></p><p><p>New:</p></p><p><p>Why is it so awesome, because he can determine the type you want to create, whether it's a Java file or a resource file, depending on where you choose, as well as a variety of templates:</p></p><p><p>Http://ww1.sinaimg.cn/mw690/6941baebjw1ekojd1cf4hj20at06iq3c.jpg</p></p><p><p></p></p><p><p>Very convenient to have wood there.</p></p><p><p>Look again at the new project:</p></p><p><p></p></p><p><p>Automatic integration of a variety of templates, convenient +1 Wood Has.</p></p><p><p>Then look at the new templates:</p></p><p><p></p></p><p><p>Go back to use eclipse, can you, anyway, I'm Not.</p></p><p><p></p></p><p><p></p></p><p><p>well, You're not mistaken, This is not visual studio,android Studio also has such a small hint, very smart and very effective, integrated Google Gods sweat Ah.</p></p><p><p>What we see above is an Android ide, in fact, Google's ambition is not limited to this, his purpose is to make it into a beyond visual Studio, beyond Xcode's integrated development environment, where it is easy to use git, Use SVN or other project management tools, and Google also provides cloud services:</p></p><p><p></p></p><p><p>forget, This will not say, said more are tears, celestial look on the LINE.</p></p><p><p>Since it is an integrated environment, a variety of plugins are essential:</p></p><p><p></p></p><p><p>Everyone can see, basically eclipse on some plugins, here are all!</p></p><p><p></p></p><p><p>These are some of the things I've seen with Android studio this time, and I want to share with you the support of Google's pro-son, although he is only 0.6, but he can foresee that his future is limitless.</p></p><p><p>Finally attached some Android studio shortcut keys, of course, accustomed to eclipse can be set directly in the Keymap set shortcut key style for Eclipse can, see, She is like a girl, not only long good-looking, learning and good, but also sensible, gentle and kind, aged Respected. How can people not be tempted!</p></p><p><p>--common shortcut keys</p></p><p><p>1.ctrl+e, You can display a list of recently edited files</p></p><p><p>2.shift+click can close files</p></p><p><p>3.ctrl+[or] can jump to the beginning of the curly brace</p></p><p><p>4.ctrl+shift+backspace can jump to the last edited place</p></p><p><p>5.ctrl+f12, the structure of the current file can be displayed</p></p><p><p>6.ctrl+f7 can query the current Element's reference in the current file, and then press F3 to select</p></p><p><p>7.ctrl+n, you can quickly open the class</p></p><p><p>8.ctrl+shift+n, you can quickly open files</p></p><p><p>9.alt+q can see the declaration of the current method</p></p><p><p>10.ctrl+w can select words followed by statements followed by Functions.</p></p><p><p>11.ALT+F1 you can position the element you are editing in each panel</p></p><p><p>12.ctrl+p, can display parameter information</p></p><p><p>13.ctrl+shift+insert can select Clipboard contents and insert</p></p><p><p>14.alt+insert can generate constructors/getter/setter, etc.</p></p><p><p>15.ctrl+alt+v can introduce Variables. For example, to assign a variable to a SQL in parentheses</p></p><p><p>16.ctrl+alt+t can wrap code inside a piece, such as Try/catch</p></p><p><p>17.alt+up and Alt+down can be moved quickly between methods</p></p><p><p>--infrequently used shortcut keys</p></p><p><p>18. in some places, press Alt+enter to get some intention Action, for example, change "= =" to "equals ()"</p></p><p><p>19.ctrl+shift+alt+n to quickly open symbols</p></p><p><p>20.ctrl+shift+space can give smart hints in many cases</p></p><p><p>21.ALT+F3 can quickly find</p></p><p><p>22.ctrl+/and Ctrl+shift+/can Annotate code</p></p><p><p>23.ctrl+alt+b can jump to the implementation of an abstract method</p></p><p><p>24.ctrl+o can choose a method of the parent class to override</p></p><p><p>25.ctrl+q can see Javadoc</p></p><p><p>26.ctrl+alt+space is the class name Auto-complete</p></p><p><p>27. when opening a class/file/symbol quickly, you can use wildcards or use abbreviations</p></p><p><p>28.Live templates! Ctrl+j</p></p><p><p>29.ctrl+shift+f7 can highlight the current Element's use in the current file</p></p><p><p>30.ctrl+alt+up/ctrl+alt+down can quickly jump to search results</p></p><p><p>31.ctrl+shift+j can integrate two lines</p></p><p><p>32.alt+f8 is the value of the calculated variable</p></p><p><p></p></p><p><p>Above.</p></p><p><p>Eclipse, It's time to say Goodbye.--android studio most fully resolved</p></p></span>
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.