Android app cannot access Internet

While making a new Android app, I kept receiving errors like UnknownHostException, null pointers, and unresolved hosts.

It turns out you need to add a permission to your app within the app’s manifest file:

uses-permission android:name=”android.permission.INTERNET” />

Massive props goes out to this site for helping me out: