颤振错误:颤振医生 --android-licenses

时间:2021-04-21 00:53:56

标签: java android windows flutter

我在 Windows 上设置 Flutter

Result of running flutter doctor command

运行命令时:flutter doctor --android-licenses 我有下一个问题:

 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/message/BasicHeader
        at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openCachedUrl(DownloadCache.java:446)
        at com.android.sdklib.repository.legacy.LegacyDownloader.downloadAndStream(LegacyDownloader.java:61)
        at com.android.repository.impl.sources.RemoteListSourceProviderImpl.getSources(RemoteListSourceProviderImpl.java:137)
        at com.android.repository.impl.manager.RemoteRepoLoaderImpl.fetchPackages(RemoteRepoLoaderImpl.java:103)
        at com.android.repository.impl.manager.RepoManagerImpl$LoadTask.run(RepoManagerImpl.java:565)
        at com.android.repository.api.RepoManager$DummyProgressRunner.runSyncWithProgress(RepoManager.java:407)
        at com.android.repository.impl.manager.RepoManagerImpl.load(RepoManagerImpl.java:366)
        at com.android.repository.api.RepoManager.loadSynchronously(RepoManager.java:290)
        at com.android.sdklib.tool.sdkmanager.LicensesAction.execute(LicensesAction.java:45)
        at com.android.sdklib.tool.sdkmanager.SdkManagerCli.run(SdkManagerCli.java:109)
        at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:86)
        at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
Caused by: java.lang.ClassNotFoundException: org.apache.http.message.BasicHeader
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
        ... 12 more
bash: Loading: command not found

我该如何解决这个问题?

0 个答案:

没有答案