我是一个flutter初学者,在通过命令“flutter --android-licenses”安装android许可证时,我得到了如下异常:
Failed to create settings
Exception in thread "main" java.lang.IllegalArgumentException: port out of range:-1
at java.base/java.net.InetSocketAddress.checkPort(InetSocketAddress.java:153)
at java.base/java.net.InetSocketAddress.<init>(InetSocketAddress.java:198)
at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.createAddress(SdkManagerCliSettings.java:177)
at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.<init>(SdkManagerCliSettings.java:485)
at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.createSettings(SdkManagerCliSettings.java:152)
at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.createSettings(SdkManagerCliSettings.java:134)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:58)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:49)
我尝试搜索解决方案很多,但我没有结果。那么每个人都可以帮助我吗?非常感谢!