SDL2.0.8 with Android Studio 3.0.1

That’s probably an issue with the 2.0.7 SDL. See SDL 2.0.7 Error Andriod Studio

So try a newer snapshot or the latest sources. There have been quite a lot of Android build braking changes lately so your mileage may vary.

Also if you update the gradle wrapper you probably need to change other things in the build.gradle also. See https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html

In practice you need to add the google repositories and update the plugin version to the build.gradle in the root folder and change “compile” -> “implementation” in the dependencies in the app/build.gradle file.