简体   繁体   中英

Flutter Java Error when runing command for Android license status unknown

I am facing some errors while setting up flutter on my Windows machine.

After running the flutter doctor flutter doctor command I got an error asking me to accept the license. [Android license status unknown.]

After running the command to update license, ie flutter doctor --android-licenses I get below errors

! Doctor found issues in 1 category.
PS C:\Users\Osas Divine> flutter doctor --android-licenses
Error: Could not find or load main class Divine\Android\Sdk\cmdline-tools\latest\bin\\..

I have installed Android SDK tools (obselete) and Android command-line tools

I have also set the JAVA_HOME and /bin on my environment variables

I think the problem is: having a space in your android skd path: PS C:\Users\Osas Divine

You should install Android sdk in another folder or rename user profile

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM