JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
08/14/13 06:56 PM (12 years ago)

ERROR: WebSettings cannot be resolved to a variable.

I have had this same error for a very long time. It is irritating me. I have no idea how to fix it. Can someone please help?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
08/14/13 07:13 PM (12 years ago)
Please show error in details or logcat so we can get a better picture. Most of these types of errors can be fixed by doing a project clean then a refresh. LA
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/14/13 07:17 PM (12 years ago)
Description Resource Path Location Type WebSettings cannot be resolved to a variable BT_viewUtilities.java /BT_activity_root/src/com/futuristicshred line 378 Java Problem There is the entire error. I can't get a logcat. I've tried doing a project clean and it hasn't worked.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
08/14/13 07:19 PM (12 years ago)
Hover over it with your mouse and click on import and that should solve it. LA
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/14/13 07:21 PM (12 years ago)
There is no import when I hover my mouse over it. Thank you for your replies
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
08/14/13 07:25 PM (12 years ago)
When you hover over the error there is no box for a quick fix? try adding this to your import: import android.webkit.WebSettings; LA
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/14/13 07:32 PM (12 years ago)
There is a box for a quick fix but nothing about an import comes up. How do I add that to my import?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
08/14/13 07:34 PM (12 years ago)
Do you have teamviewer so I can look at it? You using the custom url plugin? LA
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/14/13 07:40 PM (12 years ago)
I am not using the custom url plugin. How do I get teamviewer? I'm sorry. I am very new to all of this
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
08/14/13 07:43 PM (12 years ago)
Do a google search for TeamViewer then download the correct version..pc or mac..this will be free for personal use. After your done downloading shoot me an email here [email protected] LA
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/14/13 08:12 PM (12 years ago)
When I run the android app all I get is a screen that says android. I wait and the screen doesn't change. What's wrong?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
08/14/13 08:13 PM (12 years ago)
What are you wanting the screen to do? LA
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/14/13 08:14 PM (12 years ago)
Isn't it supposed to come up with my app?
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
08/14/13 08:15 PM (12 years ago)
Teamviewer? LA
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/14/13 08:20 PM (12 years ago)
yes. go ahead.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
08/14/13 08:45 PM (12 years ago)
ok first fix: The import fix for some reason was not showing up when hovering over the error, so I manually imported this: import android.webkit.WebSettings; Then save, clean and refresh and went away. Second fix: You have to unlock the virtual emulator the same way you do as a real Android device or if unlock it and wait too long on newer versions a screen saver like comes up where you just have to click on the dot. I had this problem when I first starting developing Apps because I never put my hands on an Android device before. Nobody never told me to unlock it so I was waiting and waiting..lol..it happens LA
 
JacobReedShred
I hate code!
Profile
Posts: 30
Reg: Aug 11, 2013
Lejeune
2,450
like
08/15/13 05:32 AM (12 years ago)
The problem is with it just saying android against a black screen. It stays there forever and my app never shows up.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
08/15/13 08:11 AM (12 years ago)
@JacobReedShred, You are getting a black screen now? I was getting your App to load last night. If this is a new problem, then go ahead and start a new post please. LA
 

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.