This issue is because of version compatibility between your Android Studio and the SDK versions you're using to fix your problem you can try->
2)Update Android studio.
3)Check Gradle Version->gradle/wrapper/gradle-wrapper.properties.