This problem arises because you upgraded ADT to version 22, but you also need to upgrade the SDK Tools,platform Tools,build Tools, which eclipse does not generate automatically if the latter is not installed. R file.
specific operation: 1, when you upgrade to 22 ADT, you also need to upgrade or install the above SDK Tools,platform Tools,build Tools;
2. Open Eclipse, click on the Android SDK Manager, then select the four items below tools to install or upgrade directly;
3, wait a few minutes after installation. Add your SDK directory \android-sdk\build-tools\ to the path (environment variable);
4, let path modify the effective: Restart the computer or Baidu search "How to make paht modification immediately effective", according to the operation can;
5, the final restart Eclipse,project->clean project, will be automatically generated. R file, no error.
Http://www.cnblogs.com/hfzsjz/p/4097698.html
Eclipse creates an Android project and it will get an error android.support.v7.app.ActionBarActivity