MLP Steel
Lost but trying
Profile
Posts: 32
Reg: Mar 14, 2013
Scottdale
5,670
04/09/13 06:13 AM (12 years ago)

Type R cannot be resolved to a variable

Received the following error when trying to run Android app on Emulator Type R cannot be resolved to a variable BT_act_controller.java /MLP Steel/src/com/mlpsteel line 116 Java Problem There were 342 instances of this error in the console. Any suggestions? I've already checked the properties to make sure I am using Google API 2.2 and cleaned the project several times. Thank you, Judy
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
04/09/13 07:35 AM (12 years ago)
This is usually some broken plug-ins that don't work on Android you have to remove. Back-up your project. Now open up your src/com folder and look at the .java file with X's. These are the offending files. Remove all the .java/classes you are not using. You'll see the errors dissipate as you remove the offending files. Then remove the layout files too since they will be useless..
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
04/10/13 04:25 AM (12 years ago)
@Atrain is usually right on such matters! But if you have regular BT plugins, also take a look at your file names and make sure they are all lowercase and don't contain special characters. Android filenames should only contain characters from a to z, 0-9 and underscores _ Sometimes it's the simple things ...
 

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.