작성
·
917
·
수정됨
0
아래와 같은 오류가 뜨고 실행이 되지 않습니다.
어떻게 해야할까요? 참고로 ^4.0.6 버전으로 따라해봤습니다.
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
Warning: The plugin webview_flutter_android requires Android SDK version 33.
For more information about build configuration, see https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
One or more plugins require a higher Android SDK version.
Fix this issue by adding the following to C:\Users\haK\StudioProjects\Netflix_flutter\android\app\build.gradle:
android {
compileSdkVersion 33
...
}
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> One or more issues found when checking AAR metadata values:
Dependency 'androidx.webkit:webkit:1.6.0' requires 'compileSdkVersion' to be set to 33 or higher.
Compilation target for module ':app' is 'android-32'
* 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 https://help.gradle.org
BUILD FAILED in 15s
Exception: Gradle task assembleDebug failed with exit code 1
답변 1
0
안녕하세요!
C:\Users\haK\StudioProjects\Netflix_flutter\android\app\build.gradle: 이 위치의 파일 (프로젝트의 android/app/build.gradle)
compileSdkVersion을 33으로 바꾸시면 됩니다!
감사합니다!