作者:恒如初见_193 | 来源:互联网 | 2023-05-19 19:19
我正在尝试在64位版本的Ubuntu 14.04上安装Android Studio.但是我的安装在此时停止:
怎么解决这个问题?任何建议或解决方案本身都将非常受欢迎.非常感谢您的宝贵时间.
编辑:当我认为这与64位版本的Ubuntu上缺少32位二进制文件有关时,我是否在正确的轨道上?我尝试以root身份登录重复安装过程,但问题仍然存在.我究竟做错了什么 ?是否有另一种安装平台工具的方法?另外,这是我的终端告诉我的:
[ 26263] ERROR - tRunWizard$SetupProgressStep$1 - platform-tools, tools and 7 more SDK components were not installed
com.android.tools.idea.welcome.WizardException: platform-tools, tools and 7 more SDK components were not installed
at com.android.tools.idea.welcome.InstallOperation.promptToRetry(InstallOperation.java:109)
at com.android.tools.idea.welcome.InstallComponentsOperation.perform(InstallComponentsOperation.java:80)
at com.android.tools.idea.welcome.InstallComponentsOperation.perform(InstallComponentsOperation.java:38)
at com.android.tools.idea.welcome.InstallOperation$1.compute(InstallOperation.java:80)
at com.android.tools.idea.welcome.InstallContext$Wrapper.run(InstallContext.java:127)
at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
at com.android.tools.idea.welcome.ProgressStep.run(ProgressStep.java:167)
at com.android.tools.idea.welcome.InstallContext.run(InstallContext.java:77)
at com.android.tools.idea.welcome.InstallOperation.execute(InstallOperation.java:72)
at com.android.tools.idea.welcome.InstallOperation$OperationChain.perform(InstallOperation.java:151)
at com.android.tools.idea.welcome.InstallOperation.execute(InstallOperation.java:68)
at com.android.tools.idea.welcome.InstallOperation$OperationChain.perform(InstallOperation.java:149)
at com.android.tools.idea.welcome.InstallOperation.execute(InstallOperation.java:68)
at com.android.tools.idea.welcome.InstallOperation$OperationChain.perform(InstallOperation.java:149)
at com.android.tools.idea.welcome.InstallOperation.execute(InstallOperation.java:68)
at com.android.tools.idea.welcome.InstallComponentsPath.runLongOperation(InstallComponentsPath.java:301)
at com.android.tools.idea.welcome.FirstRunWizard.doLongRunningOperation(FirstRunWizard.java:126)
at com.android.tools.idea.welcome.FirstRunWizard.access$000(FirstRunWizard.java:41)
at com.android.tools.idea.welcome.FirstRunWizard$SetupProgressStep$1.run(FirstRunWizard.java:160)
at com.android.tools.idea.welcome.FirstRunWizardHost$LongRunningOperationWrapper.run(FirstRunWizardHost.java:432)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:471)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:380)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:419)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)
[ 26271] ERROR - tRunWizard$SetupProgressStep$1 - Android Studio 1.1.0 Build #AI-135.1740770
[ 26277] ERROR - tRunWizard$SetupProgressStep$1 - JDK: 1.7.0_75
[ 26277] ERROR - tRunWizard$SetupProgressStep$1 - VM: Java HotSpot(TM) 64-Bit Server VM
[ 26277] ERROR - tRunWizard$SetupProgressStep$1 - Vendor: Oracle Corporation
[ 26277] ERROR - tRunWizard$SetupProgressStep$1 - OS: Linux
[ 26277] ERROR - tRunWizard$SetupProgressStep$1 - Last Action:
[ 31892] WARN - api.vfs.impl.local.FileWatcher - Watcher terminated with exit code 0
小智..
13
这是因为Android Studio需要32位库,而在你的64位版本linux中,它没有.您可以通过键入以下命令来安装32位版本的lib:
sudo apt-get install libc6-i386 libncurses5:i386 libstdc++6:i386
然后重试你正在做的事情.
1> 小智..:
这是因为Android Studio需要32位库,而在你的64位版本linux中,它没有.您可以通过键入以下命令来安装32位版本的lib:
sudo apt-get install libc6-i386 libncurses5:i386 libstdc++6:i386
然后重试你正在做的事情.
2> user1841702..:
好的,回答我的问题.我仍然真的不知道为什么Android Studio的安装程序没有为我完成安装,但是一种解决方法是手动下载所需的所有组件(或者更确切地说是Android Studio无法安装的组件),方法是:
/home//Android/Sdk/tools
然后运行Android shell脚本文件.
使用
sh Android
并从SDK管理器下载所需的所有组件.完成后,从以下位置运行studio.sh脚本文件:
/home//Documents/android-studio/bin/
或从您提取Android Studio的地方.
请注意,Android Studio可能仍会告诉您某些其他组件无法安装,您只需重复此过程,即手动下载Android Studio所需的组件,然后运行studio.sh.
还要确保您拥有64位版本的Oracle Java和必要的32位可执行文件(如@Archer Riley的答案所示)才能完成安装.