无法获取adb版本; Ubuntu 11.10中的错误= 13 [英] Failed to get adb version; error = 13 in Ubuntu 11.10

查看:343
本文介绍了无法获取adb版本; Ubuntu 11.10中的错误= 13的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu 11.10中添加了32位android adk到eclipse(Classic,Indigo,Version:3.7.0
Build id:I20110613-1736)。我使用32位Ubuntu。当我启动Eclipse时,会出现以下错误。



无法获取adb版本:无法运行程序android-sdk-linux_x86 / platform-tools / adb:java。 io.IOException:error = 13,Permission denied



我已经尝试过

  1)为android-sdk-linux_x86,platform-tools和adb设置chmod -R 777。 

2)添加jdk 6如下
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin
sudo apt- get install sun-java6-bin
sudo apt-get install sun-java6-jdk

但这两个修补程序不起作用。
这将是什么问题?任何人都可以指导我解决这个问题?

解决方案

最后问题是修复的。我尝试的解决方案与@ cataxo的答案非常相似。除了添加平台工具,我不得不在bashrc中添加工具文件夹。



这是我如何在bashrc文件中添加android路径。 >

 #Android工具
export PATH = $ {PATH}:〜/ android-sdk-linux_x86 / tools
export PATH = $ {PATH}:〜/ android-sdk-linux_x86 / platform-tools

导出ANDROID_SDK_HOME =〜/ android-sdk-linux_x86 / tools
export PATH = $ PATH:$ ANDROID_SDK_HOME

对于那些在添加后遇到这个问题的人,如果还有这个问题,请确保添加了java路径。可能就像

  export JAVA_HOME = / usr / lib / jvm / java-6-sun-1.6.0.26 
export PATH = $ PATH:$ JAVA_HOME

java版本名称可能会根据安装的版本你的机器从终端查找版本名称类型java -version。



如果仍然存在问题,请检查avd文件夹,其内容和.android文件夹的权限。


I added 32-bit android adk to eclipse(Classic, Indigo, Version: 3.7.0 Build id: I20110613-1736) in Ubuntu 11.10. I use 32-bit Ubuntu. When I start Eclipse the following error occurs.

Failed to get the adb version: Cannot run program "android-sdk-linux_x86/platform-tools/adb":java.io.IOException:error=13, Permission denied

I had already tried

1)set chmod -R 777 for android-sdk-linux_x86, platform-tools and adb. 

2)added jdk 6 as follows
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin
sudo apt-get install sun-java6-bin 
sudo apt-get install sun-java6-jdk

But these two fixes doesn't work. What will be the issue? and can anyone guide me, to fix this issue?

解决方案

Finally the issue is fixed. The solution I tried is much similar to @cataxo's answer. In addition to adding the platform-tools I had to add the tools folder in the bashrc.

This is how I added the android paths in the bashrc file.

# Android tools
export PATH=${PATH}:~/android-sdk-linux_x86/tools
export PATH=${PATH}:~/android-sdk-linux_x86/platform-tools

export ANDROID_SDK_HOME=~/android-sdk-linux_x86/tools
export PATH=$PATH:$ANDROID_SDK_HOME

For those who have this problem after adding this, if you still have this issue then please make sure that the java path is added. It may be like

export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.26
export PATH=$PATH:$JAVA_HOME

The java version name may varry depending on the version installed on your machine. To find the version name type java -version from terminal.

If still the issue exists then please check the permissions of avd folder, its contents and .android folder.

这篇关于无法获取adb版本; Ubuntu 11.10中的错误= 13的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆