if you have errors with my tutorials, Please follow the next steps in android studio.
1- Open logCat in bottom left side of android studio.
2- Open logCat in bottom left side of android studio.
3- Run your app on android studio to crash again.
4- in search bar (beside the drop list) search for Exception.
5- Copy all lines of exception and past it message box below with your data.