Write and run plain old Java code (console output via main(), not for Android) in Android Studio.
[SOLUTION] Getting java.util.NoSuchElementException from a Scanner on System.in?
1. Expand the "Gradle Scripts" in your project view
2. Edit settings.gradle
3. Comment out (two //) the include ':app' line
Click Sync Now to resync your Gradle files
(This will change your project view; that's expected)
4. Re-run your program.
Note: If you use System.out.print() to print to the screen (note no linefeed) then it won't show up until after any pending System.in.nextXYZ() is finished.
In questa pagina del sito puoi guardare il video online Plain Old Java in Android Studio: Android Programming della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Brian Fraser 17 maggio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 3,500 volte e gli è piaciuto 42 spettatori. Buona visione!