Original: Android Development learning---using INTELIJ idea 13.1 for Android development
1. Why give up eclipse?
I can't stand the eclipse card anymore, but Android development is too slow, too slow! Often get stuck, the CPU is often full!
See online A lot of people say better than Intelij idea, try, at present in the test stage, in short, are all kinds of not accustomed to, a lot of shortcut keys and the like eclipse completely different. More familiar!
In addition, Android Studio also compare cards , and it is quite uncomfortable to use, is completely intelij of the abridged version, very bad use.
A comparison of concepts related to eclipse and Intelij:
eclipse |
idea |
workspace |
project |
project |
M Odule |
project-specific JRE |
module jdk< /td> |
user library |
global library |
classpath variable |
path variable |
project dependency |
module dependency |
library |
module Library |
Specific common comparison can be consulted: http://www.jetbrains.com/idea/documentation/migration_faq.html
2. Install download Intelij idea
Official website: http://www.jetbrains.com/idea/download/
Baidu Cloud:Http://pan.baidu.com/s/1nt3AOYH
Decompression command:
TAR-ZXVF ideaiu-13.1.tar.gz
Start command:
./bin/idea.sh
Here is the flagship version, not the community version, can only use 30 days, so need to activate, online random search has a registration code, or better crack.
3.hello World
File---> New moudle (or project) ...
Created, to select the path of the SDK, here to select the project, press F4, and then have a path selection, first of all, select the JDK path, then the SDK path, choose just a bit. Then press the shortcut key SHIFT+F10 run the project. (Shift + F9 is debug mode)
4. Problems at run time
Android dex: [TESTAPP2] Unable to execute dxandroid dex: [TESTAPP2] java.nio.BufferOverflowExceptionAndroid Dex: [tes TAPP2] at Java.nio.Buffer.nextPutIndex (Buffer.java:519) Android Dex: [TESTAPP2] at Java.nio.HeapByteBuffer.putShort (Heapbytebuffer.java:315) Android Dex: [TESTAPP2] at com.android.dex.dex$ Section.writeshort (Dex.java:818) Android Dex: [TestApp2] at Com.android.dex.dex$section.writetypelist ( Dex.java:870) ...
Reference from: http://stackoverflow.com/questions/20675842/intelij-idea-13-error-during-android-project-building
upgrade Android build tools and Android platform tools. I use the SDK in Android Studio, and the latest SDK tools are 22.6.3.
Previously downloaded plat-forms can still be used, but the Android Build-tools version is not the same.
5. Shortcut keys Daquan
A quick way to master Intelij:
Method One: You can download the shortcut key Daquan: http://www.jetbrains.com/idea/docs/IntelliJIDEA_ReferenceCard.pdf
Method Two: You want to quickly understand the more commonly used shortcut keys, you can also view tips at startup.
Method Three: Official Android step-by-step Tutorial