无法创建调试桥无法检测 adb 版本.语法错误:“)"将 Platform

编程入门 行业动态 更新时间:2024-10-11 13:22:43
本文介绍了无法创建调试桥无法检测 adb 版本.语法错误:“)"将 Platform-tools 23.0.1 升级到 23.1.0 Linux-32 位会导致问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我将 Platform-tools 从 23.0.1 更新到 23.1.0,发现一些 Android 集成中断了.

I updated Platform-tools from 23.0.1 to 23.1.0 and found some of the Android integration broke.

我正在使用 android-sdk_r24.4.1 运行 Ubuntu 14.04 32 位,同时安装了 android-studio (141.2456560).

I'm running Ubuntu 14.04 32-bit with android-sdk_r24.4.1, with both android-studio (141.2456560) installed.

在执行 adb 命令时,它一直在说以下消息:

While executing adb command it keeps on saying below message :

无法创建调试桥:无法启动 adb 服务器:无法启动检测亚行版本,亚行输出:/home/bhavesh/android-sdk-linux/platform-tools/adb: 1:/home/bhavesh/android-sdk-linux/platform-tools/adb:语法错误:)"意外

Unable to create Debug Bridge: Unable to start adb server: Unable to detect adb version, adb output: /home/bhavesh/android-sdk-linux/platform-tools/adb: 1: /home/bhavesh/android-sdk-linux/platform-tools/adb: Syntax error: ")" unexpected

任何帮助将不胜感激.

谢谢

推荐答案

好的.经过一番研究发现,这是因为

OK. after some research found that reason for this is because

android-sdk-linux/platform-tools 内容为 32 位23.0.1 中的 ELF 但 23.1_rc1 和 23.1.0 中的 64 位 ELF.于是,几android-studio 中的函数(我假设 eclipse+ADT 也是如此)失败因为尝试运行 64 位可执行文件.

android-sdk-linux/platform-tools content is 32-bit ELF in 23.0.1 but 64-bit ELF in 23.1_rc1 and 23.1.0. So, several functions in android-studio (and I assume eclipse+ADT as well) fail because of the attempt to run 64-bit executables.

这个问题已经被提出这里

此外,根据谷歌项目成员给出的官方评论部分平台工具将仅从 23.1.0 开始支持 64 位 Ubuntu 操作系统.

Also, as per the official comment given by google project member parts of the platform-tools will support 64 bit Ubuntu OS only from 23.1.0 onwards.

Platform-tools 23.1.0 或更高版本将无法在 Ubuntu 32 位操作系统上运行.开发者需要将 Ubuntu 操作系统升级到 64 位才能运行.

这最终意味着我们现在只有两种可能的解决方法:

That eventually means we only have possible two workarounds now :

1. 目前坚持使用 Platform-tool 23.0.1.并且不要将平台工具升级到 23.1.0 或更高版本

1. Stick with Platform-tool 23.0.1 as of now. and DO NOT UPGRADE platform-tools to 23.1.0 or above

2. 将您的 Ubuntu 操作系统更改为 64 位而不是 32 位.

2. Change your Ubuntu OS to 64-bit instead of 32-bit.

我希望这会对某人有所帮助.

I hope this would help someone.

从 这里下载 sdk 平台工具 23.0.1链接

这篇关于无法创建调试桥无法检测 adb 版本.语法错误:“)"将 Platform-tools 23.0.1 升级到 23.1.0 Linux-32 位会导致问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-15 04:54:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/857551.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:语法错误   版本   adb   quot   Platform

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!