본문 바로가기
컴퓨터/Flutter

android studio flutter 처음 run 오류 : Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' 해결

by 우유식빵 2020. 5. 10.

사용자 환경: MacOs catalina 

플러터 깔고, 애뮬레이터 설치하고 실행시켰는데 

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'

라는 오류가 뜨면서 실행이 안됐다 라이센스가 없다는 것 같기도 했음. 그래서 구글링해본거로 따라하니까 해결됐다.

 

Tools -> SDK Manager 들어가서 System Settings -> Android SDK 들어가면

우측 하단에 Hide Obsolete Packages 체크박스가 있는데

이거 해제하고 보면 Android SDK Tools(Obsolete) 가 보이고

이걸 체크한후 Apply 하라고한다. 근데 이미 되어있었다...

 

넘어가고,

 

안드로이드스튜디오 터미널 창에다가

flutter doctor --android-licenses

입력하니까 동의 안한 라이센스가 있는데 볼거냐고 물어본다 

Review licenses that have not been accepted (y/N)? y

 

그래서 y 치고  모든 라이센스에 동의 질문에 연달아 y 쳐주고서 실행하니

 

깔끔하게 실행 잘된다. 해결

 

참고링크:

https://stackoverflow.com/questions/60467477/android-sdk-tools-option-is-missing-from-sdk-manager-in-android-studio-3-6-1

 

Android SDK Tools option is missing from SDK Manager in Android Studio 3.6.1

On a freshly installed macOS Catalina, I installed Android Studio 3.6.1. I've got the following error when I ran flutter doctor in the course of setting up flutter SDK on my Mac. [!] Android too...

stackoverflow.com

 

댓글