Reputation: 395
at work I have a PC with Slackware 14 installed and NO internet connection available. I need to install Eclipse with the latest android-sdk.
I tried to create an Eclipse & android-sdk tar.gz file from my home PC with Ubuntu installed.
On the work PC I've unpacked the tar.gz file, I've installed the lastest JRE, I've executed eclipse and, when asked, selected the android-sdk folder.
But, when I open an existing project (or create a new one), Eclipse shows me this error:
R cannot be resolved to a variable eclipse
The 'R' error is, for example, in the java source file in wich is called the name of the activity.
Eclipse suggest me to "import Android.R"... If I make what eclipse suggests me the error moves to the activity name that follows 'R.id.' in the souce file!!!
Where is the mistake? What have I forgot in the "transportation" phase?
Thanks
Upvotes: 0
Views: 77
Reputation: 395
[SOLVED] I don't know why and how, but the Ubuntu installation was corrupted!!! Probably during the compression phase something gone wrong. I've installed again and now I'm working at home and in my office!
Upvotes: 0
Reputation: 1050
Hii i also got same problem with my Ubuntu PC I Think your Ubuntu Version is 64-bit one so you need to install some libraries before you continue for that you need Internet Connection and after connecting type following command in teriminal
$sudo apt -get install ia32-libs
Upvotes: 1
Reputation: 1855
Android documentation says...
Eclipse sometimes likes to add an "import android.R" statement at the top of your files that use resources, especially when you ask Eclipse to sort or otherwise manage imports. This will cause your make to break. Look out for these erroneous import statements and delete them.
Press Ctrl + Shift + O
If it doesn't work, go to Project tab -> Clean
Tell us something ;)
Upvotes: 0