TheCloudMediaGroup
Aspiring developer
Profile
Posts: 33
Reg: Nov 23, 2012
Spokane
3,380
02/23/13 02:36 AM (12 years ago)

443 cannot be resolved or is not a field errors

Hey Everyone, I started to work on my first Android app with my new self hosted server. This has been very difficult to say the least. First of all I had to rename all of my .java files to not have any capital letters to remove about 200 or so errors. For instance BT_screen_HTMLdoc.java to bt_screen_htmldoc.java, so I am not sure if that has anything to do with this. I think I have read 30 topics on this site and others but could not find out the issue. To my knowledge I have the correct Google API 2.2 setting SDK and everything and no longer have the R.Java issue like many people have. I have done the Clean, Fix Properties, Restarted, Delete the project and reimport everything. Now all of my errors all end in "cannot be resolved or is not a field" for example menuOptions cannot be resolved or is not a field browserback cannot be resolved or is not a field cannotEmailDocument cannot be resolved or is not a field One thing I have noticed is that when I go to where the error is. . the offending error is right after a R.XXXXX String. (ie R.String, R.Drawable, R.anim) I am pulling out my hair trying to get this to work. Any ideas? https://www.dropbox.com/s/nrszz43i16c1iqe/Screen%20Shot%202013-02-23%20at%201.02.09%20AM.png https://www.dropbox.com/s/fd53zkvsgabunmr/Screen%20Shot%202013-02-23%20at%201.02.22%20AM.png https://www.dropbox.com/s/sjnapy0x2rcoe8v/Screen%20Shot%202013-02-23%20at%201.02.37%20AM.png https://www.dropbox.com/s/tlhfmjilsrve09v/Screen%20Shot%202013-02-23%20at%201.31.15%20AM.png https://www.dropbox.com/s/qyud4z0uqso4rtk/Screen%20Shot%202013-02-23%20at%201.31.26%20AM.png https://www.dropbox.com/s/4xt2rzpkqn40vpk/Screen%20Shot%202013-02-23%20at%201.31.32%20AM.png https://www.dropbox.com/s/hkibhp3wd8kw9yj/Screen%20Shot%202013-02-23%20at%201.31.40%20AM.png
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/23/13 03:32 AM (12 years ago)
I won't be the one who can fix your problem, but I can weigh in on a couple of 'knowns'. 1) You shouldn't have had to rename your files. I know it might have cleared up some errors, but there is something else fundamentally wrong. I know this because, you shouldn't have had to rename your files. 2) With that many errors, I can't help but wonder if something is missing. I'm no Android guru. So to play it safe, I downloaded and installed every single SDK available. Don't know if it will help, but it certainly can't hurt. 3) do you have any 'non standard' plugins in use? did you remove anything or add anything outside of the package? 4) Have you renamed something recently? 5) do you still have the original zip file you received? Try it again? 6) Try a new build? I'm just throwing ideas out... I'm not entirely sure what to say, other than document your action so we'll have a solutions guide, and good luck! Cheers! -- Smug
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
02/23/13 06:38 AM (12 years ago)
Start by removing the BT_screen_menulistSimpleAdvanced plugin - it's a 3rd party plugin that causes problems. When you've done that, do a Project > Clean and report back any errors you still have. *edit* I see you've done a bunch of renaming - you shouldn't need to. I'd suggest deleting the project from eclipse, removing the simpleadvanced menu from your self-hosted control panel and re-downloading the project.
 
Jcommander
Aspiring developer
Profile
Posts: 42
Reg: Feb 04, 2013
Colorado Spring...
11,320
like
02/23/13 06:44 AM (12 years ago)
Hey raveyd. Your alive? :-) I sent you a message on the topic of -- Disable source code downloads & disable delete app Plugin --- Can you please reply when you get a chance? I assume you had something to do with making the mod since you have most of the plugins as apps in your profile... Let me know if that is true?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
02/23/13 06:46 AM (12 years ago)
@Jcommander - strange, I didn't get an email alert. I'll take a look now. *edit* pm sent.
 
Jcommander
Aspiring developer
Profile
Posts: 42
Reg: Feb 04, 2013
Colorado Spring...
11,320
like
02/23/13 07:02 AM (12 years ago)
Thank you raveyd for the response..
 
TheCloudMediaGroup
Aspiring developer
Profile
Posts: 33
Reg: Nov 23, 2012
Spokane
3,380
like
02/23/13 12:16 PM (12 years ago)
I just reimported the project and deleted the menusimpleadvanced and menusimpleadvancedbackup and this is what I get. Still 637 Errors and it says that 4 or so of my xml files are invalid name (because of the capital letters) Do I need to make them lower case or should I have to do that? Also Do I need to do that replace of the com.sparrokortenandroid with the com.foothillsonline ? https://www.dropbox.com/s/8qxizkwjfejozc0/Screen%20Shot%202013-02-23%20at%2011.12.44%20AM.png https://www.dropbox.com/s/lnsojrmt9v0m7ud/Screen%20Shot%202013-02-23%20at%2011.13.35%20AM.png https://www.dropbox.com/s/vzdo8heg6j87olj/Screen%20Shot%202013-02-23%20at%2011.15.56%20AM.png Is it supposed to be this hard? haha
 
TheCloudMediaGroup
Aspiring developer
Profile
Posts: 33
Reg: Nov 23, 2012
Spokane
3,380
like
02/23/13 12:16 PM (12 years ago)
I also did the clean BTW
 
TheCloudMediaGroup
Aspiring developer
Profile
Posts: 33
Reg: Nov 23, 2012
Spokane
3,380
like
02/23/13 12:18 PM (12 years ago)
It seems as though when I cleaned. . . the R.Java file went missing. . .
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
02/23/13 01:06 PM (12 years ago)
You've got a lot of plugins in there that are iOS only. Aurasma, bta blogger, thumbpicker, buzzcarousel, flashlight, in-app purchase etc etc. The com.sparrokortenandroid package name is a hangover from simpleadvanced menu plugin. I've got no idea why the plugin developers would be including Android java files in iOS only plugins... Perhaps plugin market management, or the plugin developers, can step in and explain?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
02/23/13 01:20 PM (12 years ago)
@TheCloudMediaGroup, I've contacted bt, hopefully they'll reply in this thread. It's not right that you've got all those iOS only plugins in there.
 
TheCloudMediaGroup
Aspiring developer
Profile
Posts: 33
Reg: Nov 23, 2012
Spokane
3,380
like
02/23/13 01:35 PM (12 years ago)
How do I know which ones are critical?
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
02/23/13 02:18 PM (12 years ago)
I think the problem could possibly be caused by some of the iOS only plugins, but when I have run into that I haven't had that many errors and the the errors were on the iOS only plugins. I am planning a clean up project to eliminate this problem, and I have been working with the plugin developer on new quality assurance activities to eliminate this problem with future plugins. If this is the problem, the solution is to delete the iOS only plugins (the java files) from your project. You can see which ones to delete because there are errors in them. BTA_Thumbviewer.java is one you should delete. However, I am not sure if your problem is caused just by that because of the sheer volume of errors. Do you by any chance have any images with capital letters? Also, make sure you clean the project: Project -> Clean Renaming the BT files would make the project not work at all, but it sounds like you have already redownloaded a new project to eliminate that problem. Because the files refer to each other, it isn't a good idea to rename the java files, especially the BT files. I will watch this post and see how this all works out. Thanks!
 

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.