我一直在尝试从Android Studio的SDK Manager安装/更新我的SDK和系统映像,但是我收到了以下可以从日志中找到的错误。要标记的是Android Studio正在寻找一些不在我的系统中的路径,即我的系统有路径C:\Users\vidit\
而在错误日志中android记录的路径是C:\Users\IDSAlpha~1\
2018-05-04 17:14:05,713 [e-1024-b02] INFO - ectedPackagesStep$CustomLogger - To install:
2018-05-04 17:14:05,713 [e-1024-b02] INFO - ectedPackagesStep$CustomLogger - - Google APIs Intel x86 Atom System Image (system-images;android-24;google_apis;x86)
2018-05-04 17:14:05,713 [e-1024-b02] INFO - ectedPackagesStep$CustomLogger - - Google APIs Intel x86 Atom_64 System Image (system-images;android-25;google_apis;x86_64)
2018-05-04 17:14:05,713 [e-1024-b02] INFO - ectedPackagesStep$CustomLogger -
C:\ Users \ IDSALP~1 \ AppData \ Local \ Temp \ PackageOperation07 \ x86-24_r22.zip(系统找不到指定的路径)
,回复:200 OK。
java.io.IOException:无法下载“https://dl.google.com/android/repository/sys-img/google_apis/x86-24_r22.zip”: C:\ Users \ IDSALP~1 \ AppData \ Local \ Temp \ PackageOperation07 \ x86-24_r22.zip(系统找不到指定的路径) ,响应:200 OK
2018-05-04 17:14:05,713 [ thread 19] INFO - ectedPackagesStep$CustomLogger - Preparing "Install Google APIs Intel x86 Atom System Image (revision: 22)".
2018-05-04 17:14:05,732 [ thread 19] INFO - ectedPackagesStep$CustomLogger - Downloading https://dl.google.com/android/repository/sys-img/google_apis/x86-24_r22.zip
2018-05-04 17:14:06,043 [ thread 19] WARN - ectedPackagesStep$CustomLogger - An error occurred while preparing SDK package Google APIs Intel x86 Atom System Image: Cannot download 'https://dl.google.com/android/repository/sys-img/google_apis/x86-24_r22.zip':
at com.intellij.util.io.HttpRequests$RequestImpl.saveToFile(HttpRequests.java:366)
at com.intellij.util.io.RequestBuilder.lambda$saveToFile$1(RequestBuilder.java:67)
at com.intellij.util.io.HttpRequests.lambda$doProcess$0(HttpRequests.java:418)
at com.intellij.util.net.ssl.CertificateManager.runWithUntrustedCertificateStrategy(CertificateManager.java:349)
at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:418)
at com.intellij.util.io.HttpRequests.process(HttpRequests.java:398)
at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:63)
at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:266)
at com.intellij.util.io.RequestBuilder.saveToFile(RequestBuilder.java:67)
at com.android.tools.idea.sdk.StudioDownloader.downloadFully(StudioDownloader.java:65)
at com.android.repository.impl.installer.BasicInstaller.doPrepare(BasicInstaller.java:70)
at com.android.repository.impl.installer.AbstractPackageOperation.prepare(AbstractPackageOperation.java:306)
at com.android.tools.idea.sdk.wizard.InstallTask.preparePackages(InstallTask.java:217)
at com.android.tools.idea.sdk.wizard.InstallTask.run(InstallTask.java:102)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:713)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:543)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:165)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: C:\Users\IDSALP~1\AppData\Local\Temp\PackageOperation07\x86-24_r22.zip (The system cannot find the path specified)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at com.intellij.util.io.HttpRequests$RequestImpl.saveToFile(HttpRequests.java:361)
... 26 more
2018-05-04 17:14:06,043 [ thread 19] INFO - ectedPackagesStep$CustomLogger - "Install Google APIs Intel x86 Atom System Image (revision: 22)" failed.
2018-05-04 17:14:06,043 [ thread 19] INFO - ectedPackagesStep$CustomLogger - Preparing "Install Google APIs Intel x86 Atom_64 System Image (revision: 13)".
2018-05-04 17:14:06,059 [ thread 19] INFO - ectedPackagesStep$CustomLogger - Downloading https://dl.google.com/android/repository/sys-img/google_apis/x86_64-25_r13.zip
2018-05-04 17:14:06,391 [ thread 19] WARN - ectedPackagesStep$CustomLogger - An error occurred while preparing SDK package Google APIs Intel x86 Atom_64 System Image: Cannot download 'https://dl.google.com/android/repository/sys-img/google_apis/x86_64-25_r13.zip': C:\Users\IDSALP~1\AppData\Local\Temp\PackageOperation01\x86_64-25_r13.zip (The system cannot find the path specified)
, response: 200 OK.
java.io.IOException: Cannot download 'https://dl.google.com/android/repository/sys-img/google_apis/x86_64-25_r13.zip': C:\Users\IDSALP~1\AppData\Local\Temp\PackageOperation01\x86_64-25_r13.zip (The system cannot find the path specified)
, response: 200 OK
at com.intellij.util.io.HttpRequests$RequestImpl.saveToFile(HttpRequests.java:366)
at com.intellij.util.io.RequestBuilder.lambda$saveToFile$1(RequestBuilder.java:67)
at com.intellij.util.io.HttpRequests.lambda$doProcess$0(HttpRequests.java:418)
at com.intellij.util.net.ssl.CertificateManager.runWithUntrustedCertificateStrategy(CertificateManager.java:349)
at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:418)
at com.intellij.util.io.HttpRequests.process(HttpRequests.java:398)
at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:63)
at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:266)
at com.intellij.util.io.RequestBuilder.saveToFile(RequestBuilder.java:67)
at com.android.tools.idea.sdk.StudioDownloader.downloadFully(StudioDownloader.java:65)
at com.android.repository.impl.installer.BasicInstaller.doPrepare(BasicInstaller.java:70)
at com.android.repository.impl.installer.AbstractPackageOperation.prepare(AbstractPackageOperation.java:306)
at com.android.tools.idea.sdk.wizard.InstallTask.preparePackages(InstallTask.java:217)
at com.android.tools.idea.sdk.wizard.InstallTask.run(InstallTask.java:102)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:713)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:543)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:165)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: C:\Users\IDSALP~1\AppData\Local\Temp\PackageOperation01\x86_64-25_r13.zip (The system cannot find the path specified)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at com.intellij.util.io.HttpRequests$RequestImpl.saveToFile(HttpRequests.java:361)
... 26 more
2018-05-04 17:14:06,391 [ thread 19] INFO - ectedPackagesStep$CustomLogger - "Install Google APIs Intel x86 Atom_64 System Image (revision: 13)" failed.
2018-05-04 17:14:06,391 [ thread 19] INFO - ectedPackagesStep$CustomLogger - Preparing "Uninstall Intel x86 Atom_64 System Image (revision: 7)".
2018-05-04 17:14:06,422 [ thread 19] INFO - ectedPackagesStep$CustomLogger - "Uninstall Intel x86 Atom_64 System Image (revision: 7)" failed.
2018-05-04 17:14:06,422 [ thread 19] INFO - ectedPackagesStep$CustomLogger - Failed packages:
2018-05-04 17:14:06,422 [ thread 19] INFO - ectedPackagesStep$CustomLogger - - Google APIs Intel x86 Atom System Image (system-images;android-24;google_apis;x86)
2018-05-04 17:14:06,422 [ thread 19] INFO - ectedPackagesStep$CustomLogger - - Google APIs Intel x86 Atom_64 System Image (system-images;android-25;google_apis;x86_64)
2018-05-04 17:14:06,422 [ thread 19] INFO - ectedPackagesStep$CustomLogger - - Intel x86 Atom_64 System Image (system-images;android-24;default;x86_64)