Após consulta o fórum e a parte escrita das aulas, não conseguir resolver o problema. Está gerando um FATAL EXCEPTION: AsyncTask. Subir o código no drive pra ver se alguém pode da uma olhada e me ajudar. https://drive.google.com/file/d/1US-I75_A-PUl09j5SfyVKA0R-YUjf145/view?usp=sharing .Segue o erro:
E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
Process: br.com.italo.agenda, PID: 6976
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:309)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.util.NoSuchElementException
at java.util.Scanner.next(Scanner.java:968)
at java.util.Scanner.next(Scanner.java:941)
at br.com.italo.agenda.WebClient.post(WebClient.java:36)
at br.com.italo.agenda.EnviaAlunostask.doInBackground(EnviaAlunostask.java:43)
at br.com.italo.agenda.EnviaAlunostask.doInBackground(EnviaAlunostask.java:17)
E/WindowManager: android.view.WindowLeaked: Activity br.com.italo.agenda.ListaAlunosActivity has leaked window com.android.internal.policy.PhoneWindow$DecorView{58ef122 V.E...... R......D 0,0-668,322} that was originally added here
at android.view.ViewRootImpl.<init>(ViewRootImpl.java:570)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:326)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:109)
at android.app.Dialog.show(Dialog.java:491)
at android.app.ProgressDialog.show(ProgressDialog.java:151)
at android.app.ProgressDialog.show(ProgressDialog.java:139)
at br.com.italo.agenda.EnviaAlunostask.onPreExecute(EnviaAlunostask.java:28)
at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:604)
at android.os.AsyncTask.execute(AsyncTask.java:551)
at br.com.italo.agenda.ListaAlunosActivity.onOptionsItemSelected(ListaAlunosActivity.java:78)