Reference CSDN Blog: http://m.blog.csdn.net/article/details?id=50763592
Finally, learning Guo Lin the Great God "first line of code", encountered some problems. is when configuring the Android environment, the discovery executes
(Ctrl + F11) Helloworldactivity.java, there was a problem like this. Even if the source code is wrong, the simulator
Naturally, the Hello World program is not generated.
Even if the import ANDROID.R deleted, it is useless, where the tinkering for a long time, and then finally found to be the problem of Helloworld/gen,
Is that the directory does not generate R.java files, and then try a lot of methods. What Project-clean, then Project-build Project
No, but fortunately later found the answer in CSDN, in fact, this time every time you open eclipse, it will also indicate that the SDK needs
Updated, but I was cheating on my own, not to the management of it.
Above said, is missing the Android SDK build-tools This file, only cause the Hello World/gen directory does not appear R.java,
So we open the SDK Manager, Window-android SDK Manager, download an Android SDK Build-tools, because the SDK
is frequently updated, so we choose a current version that is currently up-to-date.
If you can't download it, just like the previous one said, set Google image, open tools-option, press fill ...
"Android Config" if your simulator does not generate the Hello World program