JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
08/13/13 07:04 AM (12 years ago)

Errors on Eclipse.

I finally was able to get on eclipse and everything was fine until i tried putting my app in. I have 16 errors. I don't know how to fix these. Here is a list of all 16. Sorry if it's annoying. Description Resource Path Location Type The method setPluginsEnabled(boolean) is undefined for the type WebSettings BT_viewUtilities.java /BT_activity_root/src/com/futuristicshred line 378 Java Problem listView cannot be resolved or is not a field BT_screen_menuListSimple.java /BT_activity_root/src/com/futuristicshred line 163 Java Problem screen_menulistsimple cannot be resolved or is not a field BT_screen_menuListSimple.java /BT_activity_root/src/com/futuristicshred line 160 Java Problem indicatorView cannot be resolved or is not a field BT_screen_menuListSimple.java /BT_activity_root/src/com/futuristicshred line 527 Java Problem menu_list_rowsimple cannot be resolved or is not a field BT_screen_menuListSimple.java /BT_activity_root/src/com/futuristicshred line 514 Java Problem screen_customhtml cannot be resolved or is not a field BT_screen_customHTML.java /BT_activity_root/src/com/futuristicshred line 105 Java Problem webView cannot be resolved or is not a field BT_screen_customHTML.java /BT_activity_root/src/com/futuristicshred line 111 Java Problem The method setPluginsEnabled(boolean) is undefined for the type WebSettings BT_screen_customHTML.java /BT_activity_root/src/com/futuristicshred line 117 Java Problem Unable to resolve target 'Google Inc.:Google APIs:11' BT_activity_root Unknown Android Target Problem screen_menubuttons cannot be resolved or is not a field BT_screen_menuButtons.java /BT_activity_root/src/com/futuristicshred line 180 Java Problem containerViewHorizontal cannot be resolved or is not a field BT_screen_menuButtons.java /BT_activity_root/src/com/futuristicshred line 184 Java Problem containerViewHorizontalBottom cannot be resolved or is not a field BT_screen_menuButtons.java /BT_activity_root/src/com/futuristicshred line 185 Java Problem tableLayout cannot be resolved or is not a field BT_screen_menuButtons.java /BT_activity_root/src/com/futuristicshred line 199 Java Problem containerHorizontalButtons cannot be resolved or is not a field BT_screen_menuButtons.java /BT_activity_root/src/com/futuristicshred line 186 Java Problem verticalScrollView cannot be resolved or is not a field BT_screen_menuButtons.java /BT_activity_root/src/com/futuristicshred line 189 Java Problem horizontalScrollView cannot be resolved or is not a field BT_screen_menuButtons.java /BT_activity_root/src/com/futuristicshred line 194 Java Problem I do not know what these mean or how to fix these problems. Can someone please assist me? I would be very grateful.
 
Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
like
08/13/13 07:09 AM (12 years ago)
try this rightclick your project>>select properties>>select android>>select google apis
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/13/13 07:18 AM (12 years ago)
I have done that. Since I made this post I redid some stuff with the screens on my app and now only have 2 errors. They are these: Description Resource Path Location Type The method setPluginsEnabled(boolean) is undefined for the type WebSettings BT_screen_customHTML.java /BT_activity_root/src/com/futuristicshred line 117 Java Problem Description Resource Path Location Type The method setPluginsEnabled(boolean) is undefined for the type WebSettings BT_viewUtilities.java /BT_activity_root/src/com/futuristicshred line 378 Java Problem Thank you so much for your help. Could you help me fix these? Idk what it means.
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/13/13 07:20 AM (12 years ago)
I have done that. Since I made this post I redid some stuff with the screens on my app and now only have 2 errors. They are these: Description Resource Path Location Type The method setPluginsEnabled(boolean) is undefined for the type WebSettings BT_screen_customHTML.java /BT_activity_root/src/com/futuristicshred line 117 Java Problem Description Resource Path Location Type The method setPluginsEnabled(boolean) is undefined for the type WebSettings BT_viewUtilities.java /BT_activity_root/src/com/futuristicshred line 378 Java Problem Thank you so much for your help. Could you help me fix these? Idk what it means.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/13/13 07:39 AM (12 years ago)
I think that method has been deprecated. In the BT_screen_customHTML.java file, on line 117, replace: webView.getSettings().setPluginsEnabled(true); with: webView.getSettings().setPluginState(WebSettings.PluginState.ON); and do the same on line 378 of the BT_viewUtilities.java file Save, do a Project > Clean and see if that helps.
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/13/13 08:00 AM (12 years ago)
Ok i've done that , but nowthe errors were both replaced with this: Description Resource Path Location Type WebSettings cannot be resolved to a variable BT_screen_customHTML.java /BT_activity_root/src/com/futuristicshred line 117 Java Problem WebSettings cannot be resolved to a variable BT_viewUtilities.java /BT_activity_root/src/com/futuristicshred line 378 Java Problem Thank you for all your help :)
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/13/13 08:13 AM (12 years ago)
ok, in those files, on those lines, is there a red squiggle line under any of the code? If there is hover your mouse over the squiggle and there will be a pop-up with a list of possible solutions. One of them should be to add an import. If there is, click on it and the import should get added. Now save and project > clean.
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/13/13 08:18 AM (12 years ago)
nothing comes up at all about adding import. There are red squiggles though. Thanks.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/13/13 08:26 AM (12 years ago)
hmmm... Are you using any custom javascript, css or html5 local storage? It would be useful if you could try and run the app and get a logcat report, if you post the report here it'll give us something to work with. btw, when you got the pop up box on the red line, what fixes did it suggest?
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/13/13 08:07 PM (12 years ago)
8 quick fixes available: create class 'websettings' Create interface 'websettings' Create constant 'websettings' Create enum 'websettings' Create local variable 'websettings' Create feild 'websettings' Create parameter 'websettings' Fix project setup please help. I am having a mini freakout. Thank you
 
Ckur3r
I hate code!
Profile
Posts: 1
Reg: Aug 12, 2013
Turin
2,410
like
08/14/13 06:24 AM (12 years ago)
For me changing the 2 lines with webView.getSettings().setPluginState(WebSettings.PluginState.ON); has solved the problem.
 

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.