DaveMudra
Lost but trying
Profile
Posts: 40
Reg: Feb 10, 2014
West Covina
6,750
04/08/14 04:01 PM (10 years ago)

ERROR: R cannot be resolved to a variable

Anyone know what this error code means and where I should look
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/08/14 04:19 PM (10 years ago)
This can mean a ton of things. But, in the context of BT, it usually means something like: * You don't have the Google Play Services library linked to your app in Eclipse * You have a plugin that's not supported on Android * A simple Project > Clean of both the project files and the play services files will take care of it Check those three out to start. Mark
 
DaveMudra
Lost but trying
Profile
Posts: 40
Reg: Feb 10, 2014
West Covina
6,750
like
04/08/14 06:20 PM (10 years ago)
I believe that Google Play Services library is linked. It says that it is installed if I look under Extras within Android SDK Manager. What other Google Play files should also be installed? As far as plugins are concerned I do not believe I have any plugins installed at all. I created the barest app just to learn Eclipse. What do I look to determine if this is the case? Dave
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/08/14 06:27 PM (10 years ago)
Hi Dave, Did you check out the video? It shows you exactly what needs to be linked up. Mark
 
DaveMudra
Lost but trying
Profile
Posts: 40
Reg: Feb 10, 2014
West Covina
6,750
like
04/08/14 06:34 PM (10 years ago)
Yes, that is how I thought I got Google Play Services linked up to start with. However, let me go back and watch it again and double check everything and then will let you know. Thank you for your feedback.
 
DaveMudra
Lost but trying
Profile
Posts: 40
Reg: Feb 10, 2014
West Covina
6,750
like
04/09/14 09:45 AM (10 years ago)
Mark, I just listened to the first 10 minutes of the 15 minute video. I get to #3 (google play) and installed it but error message is [2014-04-09 09:30:49 - google-play-services_lib] Unable to resolve target 'android-9'. It looks like I need to resolve this error before moving on to the next step
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/09/14 09:46 AM (10 years ago)
Do you have the Android 9 API installed via the Android SDK Manager? Have you tried a Project > Clean against the play services? Mark
 
DaveMudra
Lost but trying
Profile
Posts: 40
Reg: Feb 10, 2014
West Covina
6,750
like
04/09/14 10:49 AM (10 years ago)
Yes I have tried Project > Clean. As far as installing Android 9 API I do not see that as an option within m Android SDK Manager.
 
DaveMudra
Lost but trying
Profile
Posts: 40
Reg: Feb 10, 2014
West Covina
6,750
like
04/14/14 10:50 AM (10 years ago)
So I have the Eclipse installed with the Android SDK and imported my project from Buzztouch. What is the best way to research and eliminate each of the different error messages that I have now?
 
Moto110
Aspiring developer
Profile
Posts: 205
Reg: Jul 26, 2011
Orlando, FL
8,700
like
05/14/14 07:26 AM (10 years ago)
@DaveMudra - I think I figured out how to resolved the error [2014-04-09 09:30:49 - google-play-services_lib] Unable to resolve target 'android-9'. If you "right click" on the "google-play-services_lib" in Project Explorer and go to "Properties" > "Android" > then select "Google APIs - Platform 4.0 API - level 14" click "OK". The error goes away.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.