I am developing an application for the company I work for and I am running into an issue with Eclipse. I've been looking online all over and I cannot seem to find a fix for this specific issue. I have changed import android.R;
to import com.company.projectname.R;
however I get the error "The import com.company.projectname.R cannot be resolved" obviously I replaced company and projectname with the appropriate values.
Asked
Active
Viewed 628 times
0

JohnHoulderUK
- 639
- 2
- 8
- 27
2 Answers
1
Try to clean the project, sometimes clean my projects have solved my problems on Eclipse/Android.
If it doesn't work, you can see there if it corresponds with what you did: Question like yours
-
Edited my post to add a link, verify the answer with your demarch – Nic007 Jun 04 '13 at 21:04
1
Here is an example of what the imports should look like:
import android.os.Bundle;
import android.util.Log;
import android.app.ActionBar.Tab;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.app.ActionBar;
Notice I don't import com.company.projectname.R; Make sure your sdk is updated... After you have done that clean the project.. And rebuild it. You should be fine :D
-Monkey

M0NKEYRASH
- 894
- 1
- 8
- 13
-
Thanks, it turns out that the SDK didn't install all the packages that I selected. :S – JohnHoulderUK Jun 07 '13 at 18:21