up to this point, everything is underlined in red in my code ----------------------------------- Unresolved reference: wb_webView Variable expected Unresolved reference: wb_webView Unresolved reference: loadUrl Unresolved reference: settings Variable expected Unresolved reference: settings Variable expected
for anyone encountering this error now, add this inside the MainActivity class, but not inside any function: val wb_webView = findViewById(R.id.wb_webView)
I know this is 2 years old but I thougt i should leave this here for future generations. Adding this line: 'val myWebView: WebView = findViewById(R.id.webview)' To your code "imports" the View from the xml file to the kotlin code, which should resolve the reference. Hope this helps and is the thing that didn't wokr
@@mertmelihaytemur4968 hi sorry for the pop up but how do I do that? Do I include in a script or is it something you enable in the settings? Im very new to android studio development.
Mate: Really great tutorial - thanks for taking the time. I'm 54, been hacking on computers since 1979. Decided it's time to try android coding. Haven't got a clue, so your video was really useful. You can teach an old dog new tricks 😄 Now my simple web wrapper app works...
Really happy to hear! This video is quite old, but my friend Philipp Lackner has been making incredibly up to date Android tutorials, so if you haven't seen him yet, I definitely recommend checking his channel out!
wb_webView.webViewClient = WebViewClient() This line gets red underlined in android studio. When hovered it says unresolved reference: wb_webView and when hovered over webViewClient it says expected variable. I am using API 27 as target device. i have copied your code but not working and giving error. Any solution for this.
@@ivanmleh6033 val mWebView = findViewById(R.id.wb_webView) mWebView.webViewClient = WebViewClient() webViewClient is still have red underlined. Hovered over it then says unresolved reference: webViewClient. Do you want to rename the reference. What should I do.
FYI import kotlinx.android.synthetic.main.activity_main.* add this to import and "wb_webView.webViewClient = WebViewClient()" will work as no need to create variable .
@@ajit1009 When I copied your import line above, the text "kotlinx" was highlighted in red and a pop up statement said "unresolved reference: kotlinx". Therefore, could not import. Any reason why this is in red? Is there another solution? Thank you.
Hi I need a little help I'm loading a web page where you can upload a picture from gallery How can I access storage from web view to upload to the page?
@@Indently When I press the upload button of a website it doesn't open the file manager As far I've learned there is something file opening function in web view client Can you make a video about it?
up to this point, everything is underlined in red in my code
-----------------------------------
Unresolved reference: wb_webView
Variable expected
Unresolved reference: wb_webView
Unresolved reference: loadUrl
Unresolved reference: settings
Variable expected
Unresolved reference: settings
Variable expected
yes. i have the same problems
@indetity
for anyone encountering this error now, add this inside the MainActivity class, but not inside any function: val wb_webView = findViewById(R.id.wb_webView)
I know this is 2 years old but I thougt i should leave this here for future generations.
Adding this line: 'val myWebView: WebView = findViewById(R.id.webview)'
To your code "imports" the View from the xml file to the kotlin code, which should resolve the reference.
Hope this helps and is the thing that didn't wokr
"wb_webView" is not coming up automatically. would you help me out here?
add id 'kotlin-android-extensions' in build gradle -> plugins{ }
@@mertmelihaytemur4968 Where can I find build gradle?
@Aditya Kumar Below all the project files > look for Gradle Scripts
@@mertmelihaytemur4968 Thank you so much!This prevented me from making use of the tutorial!God bless ya!
@@mertmelihaytemur4968 hi sorry for the pop up but how do I do that? Do I include in a script or is it something you enable in the settings? Im very new to android studio development.
Mate: Really great tutorial - thanks for taking the time. I'm 54, been hacking on computers since 1979. Decided it's time to try android coding. Haven't got a clue, so your video was really useful. You can teach an old dog new tricks 😄 Now my simple web wrapper app works...
Really happy to hear! This video is quite old, but my friend Philipp Lackner has been making incredibly up to date Android tutorials, so if you haven't seen him yet, I definitely recommend checking his channel out!
wb_webView.webViewClient = WebViewClient()
This line gets red underlined in android studio. When hovered it says unresolved reference: wb_webView and when hovered over webViewClient it says expected variable. I am using API 27 as target device. i have copied your code but not working and giving error. Any solution for this.
do this
val mWebView = findViewById(R.id.wb_webView) as WebView
mWebView.webViewClient = WebViewClient() .....
@@ivanmleh6033 val mWebView = findViewById(R.id.wb_webView)
mWebView.webViewClient = WebViewClient()
webViewClient is still have red underlined. Hovered over it then says unresolved reference: webViewClient. Do you want to rename the reference. What should I do.
@@arjunshinde7 val mWebView = findViewById(R.id.wb_webView)
mWebView.webViewClient = WebViewClient()
This worked for me ^
FYI
import kotlinx.android.synthetic.main.activity_main.* add this to import and "wb_webView.webViewClient = WebViewClient()" will work as no need to create variable .
@@ajit1009 When I copied your import line above, the text "kotlinx" was highlighted in red and a pop up statement said "unresolved reference: kotlinx". Therefore, could not import. Any reason why this is in red? Is there another solution? Thank you.
This is SOOOOOOOO useful! Thaks a lot!
Thanks. God bless! I needed this for clarification.
How to disable the refresh from the webview? I am running into "too many requests coming from your IP" messages
Thanks for the video very useful 😀👍
oh my gah thanks man very very usefull
bro why don't working
Short and simple 👌🏻
Thanks it was very helpful ❤
Hello everyone, how to make sure that when he clicks on a phone number, he opens a call to the number?
Thank you so much man! Out of context question: are you Italian?
Half Italian 🇮🇹
mine is crashing when the cangoback feature is added
guide in super speed... well... lucky we can paus. :D
How to hide url when device is offline
Thank you so so much for making this video
thnx
Have you got an email to we can contact you to quote on a simple webview app?
so that the videos are put in full screen?
Nice video
Great 👍 tutorial, Can you please make one with buttons
This is really great, but how can we save cookies
this url can't using http link ? must be https ?
You should never use http in general
how to call permission webview app
message if there is no internet how is it added?
Thank man !
Hi I need a little help
I'm loading a web page where you can upload a picture from gallery
How can I access storage from web view to upload to the page?
Isn't it automatic?
@@Indently When I press the upload button of a website it doesn't open the file manager
As far I've learned there is something file opening function in web view client
Can you make a video about it?
Hey there! Unfortunately we don't make Android videos anymore, please check out Philipp Lackner or Coding in Flow instead. Have a nice day!
Great tut. Kindly add source code please
Nice
how to handle that onbackpressed in fragments?
www.google.com/
@@Indently wow thanx mam, should have done that before watching your video
www.google.com/
what emulator you use?
I don't use an emulator, just my phone
It is not clear, I am not able to see
idk
Please check your network
This shit is almost as tite as a slack line
not useful.. not proper info
Useful comment with proper info 💪
Haha