R cannot be resolved - G1 Android Development

Hi all,
I have followed diligently the instructions on how to install/configure Eclipse (latest version, I think 3.4) the ADP, then changed the path in windows env variables. All well and good but now as soon as I choose New ->Android project in the Problems tab there is an error message that says
R cannot be resolved.
I have tried searching but the couple of suggestions I found have not worked.
Can someone please give me a bit of help with this?
First the phone doesnt pick up calls, then this. Im starting to think it was a bad buy.
I would appreciate any help you can give please.
thanks
N

hm, worked without a problem.
R is a class that the SDK generates automatically out of your XML files.
maybe there is a syntax error in one of them. what does eclipses "problems" tab say?

problems tab
bommel0815 said:
hm, worked without a problem.
R is a class that the SDK generates automatically out of your XML files.
maybe there is a syntax error in one of them. what does eclipses "problems" tab say?
Click to expand...
Click to collapse
in the Problems tab there is the error message that says R cannot be resolved.
the error line refers to R.layout...
basically any line that refers to R is marked with the same error..

Can you check both the console and error views? See if more information is available from either of those.
Is the R class in your project showing any errors?
Failing that go into project properties => build path => libraries and tell us what you have listed there.

Related

-[Sticky] maybe - Flashing RUU Error/Solution & Explanation List-

I realize this information is on the HTC website but I have seen alot of questions lately regarding these errors. I decided that maybe, just maybe it might help someone with an error when flashing a rom, radio or splash and they can't quite figure out what the error is referring to. I also figured that this might lighten the load that GSLEON3 has been seeing lately with all of the "HELP, I think I BRICKED my phone" threads that keep popping up. Maybe it will help and maybe it won't but I thought it might be worth a try. I'd like to say thanks to OLI, Jocky, all of the rom cookers, GSLEON3 and XDA. You people make this fun.
I hope this helps someone.
? ERROR [202, 204] : CONNECTION
? This error message will appear when the device is not connected to ActiveSync correctly. Make sure
you properly connect the device to the PC through ActiveSync before running RUU.
? ERROR [206] : MEMORY ALLOCATION
? ERROR [280] : UPDATE ERROR
? When you see any of these error messages, close other running programs on the computer and run RUU again.
? ERROR [208] : FILE OPEN
? ERROR [210] : FILE READ
? These error messages indicate that RUU lacks certain important files and cannot continue with the update. Please get the complete RUU package again.
? ERROR [212] : FILE CREATE
? ERROR [214] : FILE WRITE
? ERROR [222, 224] : DEVICE NOT RESPONDING
? These error messages will appear when remote access control has failed. Check the ActiveSync connection and try running RUU again.
? ERROR [220] : MAIN BATTERY POWER
? This error message will appear when the device's battery power is not sufficient. Although RUU will instruct you to plug in the AC adapter, it still has to make sure that your device has enough power to upgrade the radio. (Even when you plug in the AC adapter, the device is unable to charge the battery
when it is upgrading the radio).
? ERROR [238] : FILE READ
? This error message may appear when, for some unknown reason, the ROM image on the Mobile Device is corrupt. Download the whole RUU and try again.
? ERROR [240] : FILE OPEN
? When this error message appears, check whether the downloaded image is placed in the directory of RUU. If, for some unknown reason, you find that the ROM image is not located in the RUU folder, you have to download the RUU and retry again. Check that the contents of the folder is a KaiserCustomRUU.exe file and an RUUSigned.nbh file. If you put the os-new.nb file in by mistake instead of the .nbh, this is the error that shows up. Thanks ConfusedSTU.
? ERROR [242] : INVALID LANGUAGE
? ERROR [244] : INVALID MODEL ID
? ERROR [294] : INVALID VENDER ID
? ERROR [296] : UPGRADE ONLY
? One of these error messages will appear when you use the wrong RUU to do the upgrade. RUU will check if the Model ID and Language ID are compatible with the device. Make sure you use the appropriate RUU tool to upgrade.
? ERROR [246] : DEVICE NOT RESPONDING
? This error message indicates that RUU cannot start the update process. Please contact your service provider for assistance.
? ERROR [260] : UPDATE ERROR
? This error occurs when there is an "open port error" before upgrading the CE ROM image. Solution: You can reset the device and run RUU again. If you still encounter an "OPEN PORT ERROR" again, reset your computer and try again.
? ERROR [262] : UPDATE ERROR
? This error occurs during the CE ROM code upgrade process.
Solution: If this happens, you can just soft-reset the device and run RUU again. The update process will then continue.
Note: At this stage, the Wince is destroyed; instead, it is in upgrade mode.
? ERROR [300] : INVALID UPDATE TOOL
? This error message will appear when you use the incorrect RUU version to upgrade.
? ERROR [330] : ROM IMAGE ERROR
? This error message will appear when you use the incorrect RUU to upgrade and the image file size is larger than the Flash ROM size. In this case, download the correct RUU version to upgrade.
Nice one mate, at leat this will give people who flash some idea what to do when or if they get errors flashing.
great find thanks for posting this will be useful for everyone.
Obligatory "thank you" post.
haha ok ok mistake now i see the solutions xD!
edit...............
Thanks P1T.
Just to put one in laymans terms from real life experience:
ERROR 240
Check that the contents of the folder is a KaiserCustomRUU.exe file and an RUUSigned.nbh file. If you put the os-new.nb file in by mistake instead of the .nbh, this is the error that shows up!!
I thought everyone knew that these error codes were included in the .doc files that come with shipped ROMs (and removed within custom_ruu.exe).
Guess not Great post P1tater!
Confused Stu said:
Thanks P1T.
Just to put one in laymans terms from real life experience:
ERROR 240
Check that the contents of the folder is a KaiserCustomRUU.exe file and an RUUSigned.nbh file. If you put the os-new.nb file in by mistake instead of the .nbh, this is the error that shows up!!
Click to expand...
Click to collapse
I'll add this to the post. Thanks Stu.
_Alex_ said:
I thought everyone knew that these error codes were included in the .doc files that come with shipped ROMs (and removed within custom_ruu.exe).
Guess not Great post P1tater!
Click to expand...
Click to collapse
I thought so to but I have had to answer a couple of these lately and was hoping that this might help to clear a few things up.
Bump (keeping it on the first page) & +1 for sticky
Oh, i would change the name to start with "Flash error codes" or at least include that in the title.
RPG0 said:
Bump (keeping it on the first page) & +1 for sticky
Oh, i would change the name to start with "Flash error codes" or at least include that in the title.
Click to expand...
Click to collapse
I can make that change.
Thanks for the info pal
helpful! thankx
Wiki
Ported to the Wiki
http://wiki.xda-developers.com/index.php?pagename=RUU_Errors
Ta
Dave
Thanks dude. Great work. You put a lot of effort in this kind of handy things.
Oh, by the way, do you have a social live?
iXiR said:
Thanks dude. Great work. You put a lot of effort in this kind of handy things.
Oh, by the way, do you have a social live?
Click to expand...
Click to collapse
I Can't speak for P1, but nope, I work, go home, play with my Son and either relax in front of the Telly or play on my PC.
Everynow and again on a weekend I'm forced into meeting something called friends by my better half
Dave
DaveShaw said:
I Can't speak for P1, but nope, I work, go home, play with my Son and either relax in front of the Telly or play on my PC.
Everynow and again on a weekend I'm forced into meeting something called friends by my better half
Dave
Click to expand...
Click to collapse
That's similar to my own schedule. P1 got to have a secret in finding time for this kind of things
ERROR 200
I got this error 200 "get newer update utility" I am using windows vista 32 bit.
where can i get a newer update utility? thanks
I-mate JasJam upgrade error
hey guys no matter what i do even if i do a reset on the phone and restart the computer i keep getting the 260 error when doing the rom upgrade. i am using windows 7 and have had no errors with anything ever with it.
Any ideas?
Josh
rumjar86 said:
hey guys no matter what i do even if i do a reset on the phone and restart the computer i keep getting the 260 error when doing the rom upgrade. i am using windows 7 and have had no errors with anything ever with it.
Any ideas?
Josh
Click to expand...
Click to collapse
Try resetting the phone and the computer to make sure that no other processes are running. Then try putting phone into bootloader, and when sync'd try flashing from there.

[Q] (Q) ThemeFactory_beta export error ! Need help please

Hello Devs , For the past few days I been Reading and learning new stuff about android and decided to start creating me own personal theme with the Gothemefactory_beta software. But Everytime I'm near the end and Decide to Export it there is always an Error it says "Export error , feedback the error info"
Does anyone else get this error , Or someone knows how to fix this. this would be apreciated to get an answer to fix this problem.
Thanks everybody
CuenNCU said:
Hello Devs , For the past few days I been Reading and learning new stuff about android and decided to start creating me own personal theme with the Gothemefactory_beta software. But Everytime I'm near the end and Decide to Export it there is always an Error it says "Export error , feedback the error info"
Does anyone else get this error , Or someone knows how to fix this. this would be apreciated to get an answer to fix this problem.
Thanks everybody
Click to expand...
Click to collapse
I have this error too with the latest update of the theme factory. I really don't know how to export my themes!
Anybody can help??
Thanks a lot!
You need to save the theme before you try exporting it.
Thanks alot. Thats Apreciated. Sorry for the time before I answer, I wasnt home and didnt take my laptop.

Eclipse Help

HI everyone ive just started to look up to a tutorial, that everybody suggest, so i dont want to jump some steps or change it cause of some errors/bug.
the tutorial im talkin about its this one http://www.youtube.com/watch?v=ma8aUC-Mf5M&feature=edu&list=PL2F07DBCDCC01493A.
The errors start when i type noe the Edittext in the .xml file and my R.java disapire (i restarted everything again from begin and same thing happened). ive read in the comments that the fault may be the old eclipse version that he is using and some solved with these:
-android:inputType="textNoSugge*stions"
- android:inputType="textPasswor*d"
but with me the second one it still gives me an error and even if i delete the row the error stay there and i cant run the apk.
I hope that somebody that have time to watch the video and try it on his own could help me. Thnk

[Q] Unable to unlock TF300T with JB, no PC to use, Help!

I read the extensive and well written guide, and posted this there to no avail. However whenever I get the Unlock_V8.rar from ASUS, and unrar it, I get an APK that appears to be invalid. It says "There was a problem parsing the package". I tried this using multiple browsers and apps to DL it and even tried installing it on a totally different device to see if the program's launch-- my smartphone. Didn't work there either, same error.
Does anyone have a coherent version of this APK?
I tried using the V7 unlocker and it keeps saying there was an unknown error, probably a network error, but there are NO network problems.... every other program connects fine. In addition I tried using multiple Internet connections to get the unlocker to work- nothing. I registered my device's SN on ASUS' web site weeks ago and still nothing.
If it is helpful I am running Android JB stock from Factory, version 4.11, TF300T, PAD-EC20T-0216, dock version DOCK-EC20N-0207,
JRO0C3.US_epad-10.4.2.1720121018 ... hope that is enough info. Thanks so much for any help!
EDIT: Also note I do not have access to any other computer at the moment. I had to sell mine and now all I have left is the tablet and the phone... therefore I can't try to use ADB and the SDK to do the unlock. I have to do it from the tablet... thank you!
Use zarchiver to unrar the Asus unlocker.
---------- Post added at 08:54 AM ---------- Previous post was at 08:43 AM ----------
I made a link here for you
Unlock_v8.apk - 629.65 KB
I had the same issue and was able to extract the file with unrar a free app I found in the store.
Thx for the link ... unfortunately I get the same error. The file DL'ed just fine and it seems to be the exact same size as what I get when trying to extract the RAR (I tried 4 or 5 different archiver programs on this machine and the phone). I've no idea what to do from here.
Inside the APK, I found a bunch of resource files like little icons and an XML file but I don't see an executable. Shouldn't there be one? Thanks.
Epicenter714 said:
Thx for the link ... unfortunately I get the same error. The file DL'ed just fine and it seems to be the exact same size as what I get when trying to extract the RAR (I tried 4 or 5 different archiver programs on this machine and the phone). I've no idea what to do from here.
Inside the APK, I found a bunch of resource files like little icons and an XML file but I don't see an executable. Shouldn't there be one? Thanks.
Click to expand...
Click to collapse
Just click on it in file explorer and it will do the rest You must have install from unknown sources enabled in security options.
That's what I'm doing. It immediately responds with "There was a problem parsing the package." Also, that option is on.
Epicenter714 said:
That's what I'm doing. It immediately responds with "There was a problem parsing the package." Also, that option is on.
Click to expand...
Click to collapse
Well that usually means the download is corrupt......
It doesn't appear to be, though. I even got it from 3 other mirrors and unrar'd those. I don't know the structure of an APK but there are coherent image files in there, just no executable at all. I am starting to think ASUS has a bad file on the server to begin with...

[Q] framaroot issue error #7

hi
Ok I've tried to find answers online myself and in this forum and getting more confused instead of getting my issues sorted. I've got a sony xperia e C1505 and I want to get rid of the bloatware on it. To do that i know it needs rooted. I've downloaded framaoot ( i know this will sound very clueless but not sure what version, the file name extends off the screen and i had a couple of versions at one point as i was having difficulty installing them via the pc, kept getting parsing errors)
The one I have has the option to install superSU which I've left and both Aragorn and Gandalfexploits. I keep getting error #7. I placed the apk file from my pc onto my phone in the sd card so not sure what the issue would be. I tried the oldest and newest apk files from the xda thread about rooting using framaroot but had parsing errors.
Can anyone give me a bit of advice? It seems like a really simple thing to do in theory just not in practice and it's getting really frustrating that I dont knw how to resolve the errors on framaroot..
thanks
eastybeasty said:
hi
Ok I've tried to find answers online myself and in this forum and getting more confused instead of getting my issues sorted. I've got a sony xperia e C1505 and I want to get rid of the bloatware on it. To do that i know it needs rooted. I've downloaded framaoot ( i know this will sound very clueless but not sure what version, the file name extends off the screen and i had a couple of versions at one point as i was having difficulty installing them via the pc, kept getting parsing errors)
The one I have has the option to install superSU which I've left and both Aragorn and Gandalfexploits. I keep getting error #7. I placed the apk file from my pc onto my phone in the sd card so not sure what the issue would be. I tried the oldest and newest apk files from the xda thread about rooting using framaroot but had parsing errors.
Can anyone give me a bit of advice? It seems like a really simple thing to do in theory just not in practice and it's getting really frustrating that I dont knw how to resolve the errors on framaroot..
thanks
Click to expand...
Click to collapse
first you must flash Stock Kernel Xperia E C1505_11.3.A.0.47 and then you will try
Flash stock 23 then flash the zeus kernel and last flash the supeuser through cwm your xperia e is rooted :thumbup:
Sent from my C1505 using XDA Premium 4 mobile app
I have also been getting error #7 on my Xperia E C1605.
Exploit --- CVE-2013-6282 --- from the following page worked for me:
http://forum.xda-developers.com/showthread.php?t=2559009
The file you want is called rootkitXperia_20131207.zip. Good luck!
Firmware and device:
Code:
ro.build.product=C1605
ro.build.id=11.3.A.3.1
...
Succeeded in getroot!
further sony xperia rooting help
thanks for all the help so far, sorry about the long delay in answering. ok i must be missing something again....elpato77 i followed the link you gave me so ive downloaded CVE-2013-628 from the link. I've also set up adb on the computer. I've extracted the CVE-2013-628 and put the folder in my phone. i i can see the file install.bat but cant run it. my phone is asking me what program to use to run it. when i select package installer it says "parse error" and "there was a problem while parsing the package." anyone know how this can be solved?
Thanks to the others for the suggestions but i wouldnt heve a clue how to flash stock 23 or even what it means
with every attempt i seem to find a new problem! Help would be appreciated
meant to say I used ES file explorer to navigate to the file if that makes any difference.
eastybeasty said:
thanks for all the help so far, sorry about the long delay in answering. ok i must be missing something again....elpato77 i followed the link you gave me so ive downloaded CVE-2013-628 from the link. I've also set up adb on the computer. I've extracted the CVE-2013-628 and put the folder in my phone. i i can see the file install.bat but cant run it. my phone is asking me what program to use to run it. when i select package installer it says "parse error" and "there was a problem while parsing the package." anyone know how this can be solved?
Thanks to the others for the suggestions but i wouldnt heve a clue how to flash stock 23 or even what it means
with every attempt i seem to find a new problem! Help would be appreciated
Click to expand...
Click to collapse
you have to run the bat file form your computer with you phone connected to it
make sure you have adb properly installed, then run the "install.bat" file

Categories

Resources