I would argue this is one of if not THE most powerful set of tutorials for Android 2019. Kotlin, Coroutines, Retrofit, caching data from the web, etc etc. Everything most Android apps need is here.
I solved the problem with the method 'bottom_nav.setupWithNavController(navController)'. Steps: 1) You have to update your Android Studio version to the last one in the dev channel, I'm using Canary 3.3 RC 2. 2) Import the exact version dependencies like Reso Coder did in build.grade (app) and build.grade (forecastapp) 3) Do the same steps indicated in the video. Good Luck and Happy coding! oh and thanks you Reso Coder, amazing channel!
If anyone is having trouble with onSupportNavigateUp in MainActivity, this is how you write the return statement without using the deprecated NavigationUI.navigateUp method: // The navigateUp method takes parameters differently now // return NavigationUI.navigateUp(NavController, drawerLayout) return NavigationUI.navigateUp(Navigation.findNavController(this, R.id.nav_host_fragment), null)
Good tutorial! If you have a problem with - setTitle(java.lang.CharSequence)' on a null object reference (I am using ext.navigation_version = '1.0.0-rc02') Just setup action bar. setContentView(R.layout.activity_main) setSupportActionBar(toolbar) navController = Navigation.findNavController(this, R.id.nav_host_fragment) ...
very nice that you use android studio 3.3 but like most users i am at 3.2 and dont have androidX EDIT: i installed the android studio 3.3 beta and i still dont see the enable navigation editor button
Hi, nice video! What's that desktop wallpaper & gadget? btw, you can click the settings icon near the files menu, and untick 'Hide Middle Empty Packages' , in order to see the real root instead of a grouped one
These tutorials are very good, but sometimes I wish you included a small drawing (paint is good enough) to understand the general idea of why are we doing things.
Hi Matej, you did awesome job. The best tutorials I've found so far. I have quick question. How would you pass an argument withing clicking on nawdrawer item? For Example, I'm showing multiple lists inside one fragment, depending on role of the argument(a,b,c). When I choose an action it's easy to do it with safe args, but is there some more elegant solution to do it beside overriding onOptionItemSelected. Cos if I do that I lost the beauty and clean code of setupWithNavController. Big thanks for everything
Those who are using Kotlin 1.3.31 or higher make a little change on your onSupportNavigate app - override fun onSupportNavigateUp(): Boolean { return NavigationUI.navigateUp(navController,null) }
this might be a stupid question but when you start the new project with an empty activity, I don't see the option of including Navigation Controller. Is that just a dependency that gets imported?
A question unrelated to the tutorial, how did you get your desktop to display the icons in such a hexagonal way, with your pc hardware stats on the right?
There is no recommended way, but Kodein is built for Kotlin. It's idiomatic and takes much fewer lines of code. You can go with Dagger if you really want to.
Hi! Great videos, thanks. Please explain me how i can use this structure with firestore or parse server database ? Where should i write database querys and as you know Firestore queries works different thread, is it a problem? And also how can i use local sqlite and firestore together with this MVVM structure? I just learned this concepts and i want to make it clear, thanks for your help:)
I cant add the New Destination with the button because it is not displaying anything, I was able to add the destinations by code but my question is Why is not displaying anything? PD: After I wrote the fragments manually in mobile_navigation.xml the app runs correctly but continue not displaying anything with the button "New Destination" in Design
You're probably not using the same version of Android Studio that he is. I'm using 3.4 Canary 5 which is more recent than what he's using I don't have the option either. You'll have to add it manually.
The setupWithNavController does not work unless I use the support version of BottomNavigationView. Also, setupActionbarWithNavController won't accept my Activity unless it's from the support lib. Any ideas? Androidx is not being accepted by Androidx lol
I've had the same problem when replaced alpha09 with alpha06 at classpath 'android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0-alpha06' . setupWithNavController method works with alpha06
@@beyazidyargici2382 Unfortunately its not working for me either witth alpha06 or aplha09. The project from GitHub works, but with my own project, it doesn't.
@@Mradmin901 You can try delete .idea and .gradle folders then clean and rebuild gradle. And you should add android.useAndroidX=true to gradle.properties
Hello @resocoder I started following this course in the past week and I am getting an error "ava.lang.RuntimeException: Unable to start activity ComponentInfo{mna.mumbere.forecastmvvm/mna.mumbere.forecastmvvm.ui.MainActivity}: android.view.InflateException: Binary XML file line #18: Binary XML file line #18: Error inflating class fragment" how can I fix it please?
Actual error is line next to that line. For me, It was missing starting fragment for mobile_navigations which was removed once I loaded the fragment in mobile_navigation, and corrected the names of the classes.
had the same error. Fixed it by copy and paste the code on github for mobile_navigation.xml not sure what was causing it as I have checked the file many times before doing that. Only thing I didn't have was the action tags.
Hello, Reso Cover, remember Android Kotlin: Forecast App. I repeated your project, but I've been racking my brain for a long time, if you enter the wrong name of the city, the application crashes. I ask you very much to help, because only you can help, I will be very grateful
Hi everyone, If Anyone has difficults with "android.room:room-compiler:2.1.0-alpha01". Because that don't let me run the app, it show me the next warning: Could not find android.room:room-compiler:2.1.0-alpha01. Searched in the following locations: - dl.google.com/dl/android/maven2/android/room/room-compiler/2.1.0-alpha01/room-compiler-2.1.0-alpha01.pom - jcenter.bintray.com/android/room/room-compiler/2.1.0-alpha01/room-compiler-2.1.0-alpha01.pom - dl.bintray.com/kodein-framework/Kodein-DI/android/room/room-compiler/2.1.0-alpha01/room-compiler-2.1.0-alpha01.pom Required by: project :app And i think is about kapt plugin, but i don't know where the problem is.
3.5 doesn't have it as an option. You'll need to create a navigation package and then it's own navigation file, naming it mobile_navigation like he has in the video
I would argue this is one of if not THE most powerful set of tutorials for Android 2019.
Kotlin, Coroutines, Retrofit, caching data from the web, etc etc. Everything most Android apps need is here.
I solved the problem with the method 'bottom_nav.setupWithNavController(navController)'. Steps:
1) You have to update your Android Studio version to the last one in the dev channel, I'm using Canary 3.3 RC 2.
2) Import the exact version dependencies like Reso Coder did in build.grade (app) and build.grade (forecastapp)
3) Do the same steps indicated in the video.
Good Luck and Happy coding! oh and thanks you Reso Coder, amazing channel!
If anyone is having trouble with onSupportNavigateUp in MainActivity, this is how you write the return statement without using the deprecated NavigationUI.navigateUp method:
// The navigateUp method takes parameters differently now
// return NavigationUI.navigateUp(NavController, drawerLayout)
return NavigationUI.navigateUp(Navigation.findNavController(this, R.id.nav_host_fragment), null)
Thank you very much!
thanks man for saving my life
Thank you for your videos. You have a nice accent, so clear pronunciation) I'm from Russia and it really helps me to understand every word you said.
помоги мне запустить?
Definitely. Your voice quality, video quality and also the content that you are covering.
Good tutorial!
If you have a problem with - setTitle(java.lang.CharSequence)' on a null object reference
(I am using ext.navigation_version = '1.0.0-rc02')
Just setup action bar.
setContentView(R.layout.activity_main)
setSupportActionBar(toolbar)
navController = Navigation.findNavController(this, R.id.nav_host_fragment)
...
Best tutorial about MVVM so far
The best channel i found to learn architecture component, good job man👍👍
very nice that you use android studio 3.3 but like most users i am at 3.2 and dont have androidX
EDIT: i installed the android studio 3.3 beta and i still dont see the enable navigation editor button
This is what I've been looking for! Thank you for this. I'm not as good at Kotlin as I am Java, but this does the trick.
really like the quality of your tutorial and appreciate all the effort u have done.
Great topic. Great channel and great tutorial 👍👍
Hi, nice video!
What's that desktop wallpaper & gadget?
btw, you can click the settings icon near the files menu, and untick 'Hide Middle Empty Packages' , in order to see the real root instead of a grouped one
You are the MAN!. I love clean code!
What color scheme are you using. I like how the brackets are different colors so that you can know where it begins and ends easily.
Could you share your android studio editor settings? I like your color text theme :)
Waiting for more Kotlin tutorial like this. Thank you.
These tutorials are very good, but sometimes I wish you included a small drawing (paint is good enough) to understand the general idea of why are we doing things.
the end points used are shut down now but the tutorial is very amazing
Followed this tutorial today!
Hi Matej, you did awesome job. The best tutorials I've found so far.
I have quick question. How would you pass an argument withing clicking on nawdrawer item? For Example, I'm showing multiple lists inside one fragment, depending on role of the argument(a,b,c). When I choose an action it's easy to do it with safe args, but is there some more elegant solution to do it beside overriding onOptionItemSelected. Cos if I do that I lost the beauty and clean code of setupWithNavController.
Big thanks for everything
Those who are using Kotlin 1.3.31 or higher make a little change on your onSupportNavigate app -
override fun onSupportNavigateUp(): Boolean {
return NavigationUI.navigateUp(navController,null)
}
Thank you very much for your tutorials. I am learning a lot!
Great video! Keep up the good work.
In this course there will be lessons about testing?
I literally love you so muchhh, you saved my day.
Your wallpaper is really cool.Please give me a link to download it
navigation arch component is same as jetpack navigation components?which one is better?
I am starting it reso coder .. tnx so much
Thank you for such a great tutorial!
I do not have the option for Navigation Controller, any help ? I'm using Android Studio 3.4
How did you customize your Android Studio?
this might be a stupid question but when you start the new project with an empty activity, I don't see the option of including Navigation Controller. Is that just a dependency that gets imported?
A question unrelated to the tutorial, how did you get your desktop to display the icons in such a hexagonal way, with your pc hardware stats on the right?
Check out Rainmeter for Windows. You can make all kinds of beautiful desktop layouts with it.
@@ResoCoder thank you! edit: there used to be a question here however it resolved itself....
Great course by the way
Thank you for your videos
Does anybody know which color theme he is using? I loved it so much but I can't find it
Awesome tutorial learned a lot!!!!
I did everything as you show, but switching between fragments doesn't work
can you create video on UI and unit testing in android
clean and clear
Very useful tutorial wiil be! Thx a lot!!
Quick question, why Kodein instead of Dagger? Is this the recommended way to do DI?
There is no recommended way, but Kodein is built for Kotlin. It's idiomatic and takes much fewer lines of code. You can go with Dagger if you really want to.
My guess would be - Since we are using Kotlin, and much other good stuff about "Kodein"
Hi, everything is working perfectly, just the "Up" button is not working.
Hi! Great videos, thanks. Please explain me how i can use this structure with firestore or parse server database ? Where should i write database querys and as you know Firestore queries works different thread, is it a problem? And also how can i use local sqlite and firestore together with this MVVM structure?
I just learned this concepts and i want to make it clear, thanks for your help:)
I cant add the New Destination with the button because it is not displaying anything, I was able to add the destinations by code but my question is Why is not displaying anything? PD: After I wrote the fragments manually in mobile_navigation.xml the app runs correctly but continue not displaying anything with the button "New Destination" in Design
how can I switch it to fahrenheit?
Thank you.
I really appreciate you
LOVE IT!
Awesome sir useful
wow
is this course still relevant now ? (2020) i wanna start this course but i afraid the some part is outdated
still relevant , just some method different way but the concept is still relevant
Anyone has an updated version of fetching data on server ? I know the await method is kinda deprecated now.
i have No option for
navigation controller in android studio?
You're probably not using the same version of Android Studio that he is. I'm using 3.4 Canary 5 which is more recent than what he's using I don't have the option either. You'll have to add it manually.
Your website is down. I can not get the source code
good.
Awesome
Great tutorial! Thank you very much.
Only thing I would say, as for me too much libraries for beginning.
The setupWithNavController does not work unless I use the support version of BottomNavigationView. Also, setupActionbarWithNavController won't accept my Activity unless it's from the support lib. Any ideas? Androidx is not being accepted by Androidx lol
ext.navigation_version = '1.0.0-alpha06' worked for me
bottom_nav.setupWithNavController(navController) doesn't work.. It can't recognize 'setupWithNavController()'
Hm, then try NavigationUI.setupWithNavController(bottom_nav)
I just downloaded your code from github and, unsurprisingly, it works :D thanks
I've had the same problem when replaced alpha09 with alpha06 at
classpath 'android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0-alpha06' . setupWithNavController method works with alpha06
@@beyazidyargici2382 Unfortunately its not working for me either witth alpha06 or aplha09. The project from GitHub works, but with my own project, it doesn't.
@@Mradmin901 You can try delete .idea and .gradle folders then clean and rebuild gradle. And you should add android.useAndroidX=true to gradle.properties
I don't have include navigation editor, can someone help me
Hello @resocoder I started following this course in the past week and I am getting an error "ava.lang.RuntimeException: Unable to start activity ComponentInfo{mna.mumbere.forecastmvvm/mna.mumbere.forecastmvvm.ui.MainActivity}: android.view.InflateException: Binary XML file line #18: Binary XML file line #18: Error inflating class fragment" how can I fix it please?
Actual error is line next to that line. For me, It was missing starting fragment for mobile_navigations which was removed once I loaded the fragment in mobile_navigation, and corrected the names of the classes.
had the same error. Fixed it by copy and paste the code on github for mobile_navigation.xml not sure what was causing it as I have checked the file many times before doing that. Only thing I didn't have was the action tags.
Hello, Reso Cover, remember Android Kotlin: Forecast App. I repeated your project, but I've been racking my brain for a long time, if you enter the wrong name of the city, the application crashes. I ask you very much to help, because only you can help, I will be very grateful
how to remove back icon form fragment
hi, unfortunately api is disabled.
What color scheme are you using?
Material Theme UI
The to code is broken
Hi everyone,
If Anyone has difficults with "android.room:room-compiler:2.1.0-alpha01". Because that don't let me run the app, it show me the next warning:
Could not find android.room:room-compiler:2.1.0-alpha01.
Searched in the following locations:
- dl.google.com/dl/android/maven2/android/room/room-compiler/2.1.0-alpha01/room-compiler-2.1.0-alpha01.pom
- jcenter.bintray.com/android/room/room-compiler/2.1.0-alpha01/room-compiler-2.1.0-alpha01.pom
- dl.bintray.com/kodein-framework/Kodein-DI/android/room/room-compiler/2.1.0-alpha01/room-compiler-2.1.0-alpha01.pom
Required by:
project :app
And i think is about kapt plugin, but i don't know where the problem is.
Nevermind, it was a my keyboard mistake
waiting for your Flutter series!!!!!
Your api does not work
liar there is no link for code or assets in description
How in earth I switch to Kotlin When i Know more about Java :( and nothing about Kotlin.
best tutorial on mvvm so far
i dont see include navigation controller option when i create a new project
My android studio version - 3.5
3.5 doesn't have it as an option. You'll need to create a navigation package and then it's own navigation file, naming it mobile_navigation like he has in the video
Awesome