Flutter.io Android License Status Unknown

前端 未结 30 1175
情歌与酒
情歌与酒 2020-11-27 12:29

[!] Android toolchain - develop for Android devices (Android SDK 27.0.3) >>• Android SDK a ..\\Android\\sdk • Android NDK location not configured (optiona

30条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 13:17

    For someone who is still facing the issue:
    As answered below by Tommie C, Aba and few other people, but may not be clear enough as I found it.
    Try installing java 1.8 manually as described here on windows/linux: [https://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_Howto.html]
    and setting $JAVA_HOME variable(jdk path).
    On windows set jdk path($JAVA_HOME) : [How to set java_home on Windows 7?.
    On linux: [https://askubuntu.com/questions/175514/how-to-set-java-home-for-java].
    Then run flutter doctor --android-licenses and accept all the licenses. Hope it helps.

提交回复
热议问题