Android Studio를 통해 Flutter Demo App build중 발생한 Android SDK 라이선스 관련 에러
---------------------------------------
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Failed to install the following Android SDK packages as some licenses have not been accepted.
build-tools;28.0.3 Android SDK Build-Tools 28.0.3
platforms;android-28 Android SDK platform 28
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
=> Failed to install the following Android SDK packages as some licences have not been accepted.
Flutter doctor를 이용하면 굉장히 간단하게 해결할 수 있다.
flutter doctor --android-licenses
terminal에서 위 코드를 통해 flutter doctor를 이용하면 쉽게 라이센스 동의를 할 수 있다.
y를 통해 라이센스 조항에 모두 동의해주면, 정상적으로 bulid가 가능하다.