In the Android learning process, there will be a lot of pits, I will meet me, the one by one column down, convenient for later people to check!
1:android-support-v4.jar and Android-support-v7-appcompat.jar issues, in the new project is because the Novice select Targart sdk,compile SDK, when selecting the high version of the time, There will be no problem finding these two packages,
Solution: Appcompat_v7 Source As the new project LIB, import
2: Regular R files cannot be generated automatically, resulting in references to resources in the code are, hints cannot be found;
The common reason is that there is an error in Layout.xml, which prevents the R file from being generated automatically. When the R file does not exist, clean, if not yet check the layout file, troubleshoot errors, and then clean;
In this case, do not use CTL +shift + O, which is automatically imported into Android. R System Package, and then the name has been automatically generated by the R file, but you are still prompted not to find the resource.
Workaround: Build clean, Project->clean, because this action in the Android development too common, it is recommended to establish their own handy shortcut keys, such as Ctrl+shift+d; Setup method
Eclipse->windows->preference->general->keys interface in the right section find the build Clean command to add the binding (you want to use what combination key, you set the line)
The pits encountered during Android development