Could not extract native JNI library in Android Studio

I am trying to create a simple flutter app in Android Studio. When I run my main.dart file, I get the following output.

Launching lib\main.dart on SM J730F in debug mode…
Running Gradle task ‘assembleDebug’…

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not extract native JNI library.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at
    Exception: Gradle task assembleDebug failed with exit code 1

Also my Flutter Doctor gives the following output on console.

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.17.4, on Microsoft Windows [Version 10.0.18362.900], locale en-IN)

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
X Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See or visit visit for detailed instructions.
[√] Android Studio (version 4.0)
[√] Connected device (1 available)

! Doctor found issues in 1 category.

This text will be blurred