Issue
I'm developing an android application and I've gotten pretty far already.
but recently I opened my eclipse again to continue my work, but there was a problem with my settings for the google play services. (I'm kinda sure it happened after I installed the new version (revision 7) from the android SDK manager.)
So I imported the google-play-services_lib and the google-play-services.jar again and the errors went away, so far so good I thought.
But now eclipse can't resolve R to a type and I can't run the app either...
I've searching the whole day to save my project from these errors and now I'm getting this one... btw the project ran perfectly for 4 months...
can anyone tell me wat to do?
EDIT: what I tried so far:
I've added all android build tools, google play services (libraries and projects),... Imported the google play services project into workspace and cleaned the project like 30 times. I Already checked private libraries, android dependencies etc. to export
Solution
Found it:
the SDK was already updated, but the device settings were changed somehow (now it was compiling for android 4.2.2 instead of 4.0.3) and when I cleaned the project, it updated some code I didn't notice, when setting the 4.0.3 build target again it wouldn't compile nor generate the R.java file (giving me loads of errors).
So what I did was change the project build target to 4.0.3 again, but I must have missed some lines of code that were updated to the 4.2.2 target... (leading to the R file not being generated, leading to more errors that were leading to more errors... just a vicious circle)
I didn't exactly remember what line caused the error, I was too happy it was solved I guess :)
Answered By - Hans Vn
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.