2016-08-25 98 views
0

當在Android Studio中安裝模擬器我收到以下錯誤安裝過程中出現的Android工作室AVD amanger無法安裝谷歌API的英特爾x86的Atom_64系統映像

錯誤:文件太大。 無法安裝Google API Intel x86 Atom_64系統映像!

堆棧跟蹤在控制檯同樣是如下

[ 577974] WARN - ectedPackagesStep$CustomLogger - An error occurred during installation: File too large. 
java.io.IOException: File too large 
    at java.io.FileOutputStream.writeBytes(Native Method) 
    at java.io.FileOutputStream.write(FileOutputStream.java:326) 
    at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122) 
    at com.android.repository.util.InstallerUtil.unzip(InstallerUtil.java:122) 
    at com.android.repository.impl.installer.BasicInstaller.install(BasicInstaller.java:96) 
    at com.android.tools.idea.sdk.wizard.InstallSelectedPackagesStep$InstallTask.run(InstallSelectedPackagesStep.java:242) 
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563) 
    at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142) 
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446) 
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392) 
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54) 
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127) 
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:126) 
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366) 
    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) 
    at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55) 

系統配置:

  • O的:Centos7
  • Android Studio中:2.1.3
  • Java:JDK 1.8

回答

0

得到了修復,實際的問題是文件大小的ulimit是1G,文件被解壓縮爲2G大小,因此它被扔文件大小過大(核心轉儲)

- RW-RW-R--。 1 shubhendu shubhendu 2.0G 8月27日17:28 userdata.img

將ulimit增加到4G解決了問題。

對於Centos7爲用戶的ulimit可以在下面的文件必須增加:

sudo vim /etc/security/limits.conf 
shubhendu hard fsize 4096000 
+0

所以你只留給未來的問題;) –

相關問題