Kotlin

Add permissions

Declare permissions in Android Manifest

Add INTERNET permission into AndroidManifest.xml file:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.vonage.tutorial">

    <uses-permission android:name="android.permission.INTERNET" />
    ...

INTERNET permission is granted implicitly, so there is no need to request it at runtime.