简体   繁体   English

Android SDK模拟器无法正常工作

[英]Android-sdk emulator doesn't work

My platform: debian 8 (sid) 我的平台:Debian 8(SID)

uname -a : Linux ... 3.2.0-4-686-pae #1 SMP Debian 3.2.78-1 i686 GNU/Linux uname -a:Linux ... 3.2.0-4-686-pae#1 SMP Debian 3.2.78-1 i686 GNU / Linux

I downloaded android-sdk_r24.4.1-linux.tgz from https://developer.android.com/ but emulator(*) executables don't run because I get : 我从https://developer.android.com/下载了android-sdk_r24.4.1-linux.tgz,但是模拟器(*)可执行文件无法运行,因为我得到了:

"bash: tools/emulator: cannot execute binary file: Exec format error. " “ bash:工具/模拟器:无法执行二进制文件:Exec格式错误。”

I guess this means these binaries can't run on my system. 我想这意味着这些二进制文件无法在我的系统上运行。 So does it mean , I can't run the emulator on my platform? 这意味着我不能在平台上运行仿真器吗?

I didn't find source of emulator in tgz. 我在tgz中找不到模拟器的来源。

Or where can I find the source of emulator? 或者在哪里可以找到仿真器的来源? thanks 谢谢

Hehe.... If I downloaded tgz file with wget (wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz ), binaries work! 呵呵。...如果我使用wget下载了tgz文件(wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz ),则二进制文件有效! I don't understand why.... ?.... :-| 我不明白为什么。

Didn't work ! 没工作! :( :(

This was very strange for me. 这对我来说很奇怪。

When I downloaded tgz and extracted, the binaries worked. 当我下载并提取tgz时,二进制文件有效。

I run SDK manager and downloaded some packages for example : some System Images, Android 6.0 SDK platform, build tools, etc, and after this, binaries didn't work. 我运行SDK管理器并下载了一些软件包,例如:一些系统映像,Android 6.0 SDK平台,构建工具等,然后,二进制文件不起作用。

I figured it out, the case of problem was I updated current SDK tools. 我知道了,问题所在是我更新了当前的SDK工具。 After update The binaries didn't work. 更新后,二进制文件不起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM