我试图从Android Studio的sdkmanager安装GPU调试工具。但是出现了以下错误:
Packages to install:
- GPU Debugging tools (extras;android;gapid;3)
Preparing "Install GPU Debugging tools (revision: 3.1.0)".
Downloading https://dl.google.com/android/repository/gapid_2994895_linux.zip
This download could not be finalized from the interim state. Retrying without caching.
Downloading https://dl.google.com/android/repository/gapid_2994895_linux.zip
Failed packages:
- GPU Debugging tools (extras;android;gapid;3)
这是日志。
2020-05-04 15:26:06,959 [ 35766] WARN - ls.idea.sdk.wizard.InstallTask - Checksum of the downloaded result didn't match the expected value.
java.lang.IllegalStateException: Checksum of the downloaded result didn't match the expected value.
at com.android.tools.idea.sdk.StudioDownloader.lambda$doDownloadFully$2(StudioDownloader.java:216)
at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:537)
at com.intellij.util.io.HttpRequests.process(HttpRequests.java:513)
at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:61)
at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:363)
at com.android.tools.idea.sdk.StudioDownloader.doDownloadFully(StudioDownloader.java:193)
at com.android.tools.idea.sdk.StudioDownloader.lambda$doDownloadFully$2(StudioDownloader.java:223)
at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:537)
at com.intellij.util.io.HttpRequests.process(HttpRequests.java:513)
at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:61)
at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:363)
at com.android.tools.idea.sdk.StudioDownloader.doDownloadFully(StudioDownloader.java:193)
at com.android.tools.idea.sdk.StudioDownloader.downloadFullyWithCaching(StudioDownloader.java:140)
at com.android.repository.impl.installer.BasicInstaller.doPrepare(BasicInstaller.java:71)
at com.android.repository.impl.installer.AbstractPackageOperation.prepare(AbstractPackageOperation.java:337)
at com.android.tools.idea.sdk.wizard.InstallTask.preparePackages(InstallTask.java:253)
at com.android.tools.idea.sdk.wizard.InstallTask.run(InstallTask.java:120)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:894)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:169)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:591)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:537)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:156)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:408)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2020-05-04 15:26:06,960 [ 35767] INFO - ectedPackagesStep$CustomLogger - Failed packages:
2020-05-04 15:26:06,960 [ 35767] INFO - ectedPackagesStep$CustomLogger - - GPU Debugging tools (extras;android;gapid;3)
在搜索互联网时,我遇到了这个question。但是sdkmanager窗口中没有工具选项。
我的系统: Android Studio 3.6.3 许本图20.04 JDK版本11
答案 0 :(得分:1)
我能够手动下载zip文件并将其解压缩到SDK目录中,因此生成的路径如下所示:
android-sdk/system-images/android-28/google_apis/x86
AVD随后检测到图像。
另一个示例路径:
android-sdk/system-images/android-30/google_apis_playstore/x86_64