Also change minSdkVersion to 28 and enable WRITE_EXTERNAL_STORAGE permission in AndroidManifest.xml, so the build works for Android 9.