I suddenly have an error in my Android eclipse project. This is after a hard shutdown while running eclipse, so that may have something to do with it. I clean the project and then do a build. I get the following error on the BuildConfig.class file that is autogenerated in the /gen dir:
The type android.content.Context cannot be resolved. It is indirectly referenced from required .class files
I did notice that in my build configuration the JRE was stated to be missing. I have since fixed this problem, but still get the error. Help!
解决方案
I was able to fix the problem by going to "Fix project properties". Right click project-->android tools.
Do not know what caused this error.