简体   繁体   English

Android Studio无法在模拟器中启动AVD。 / opt / sdk / tools / emulator:语法错误:单词意外(期待“)”)

[英]Android Studio Cannot launch AVD in emulator. /opt/sdk/tools/emulator: Syntax error: word unexpected (expecting “)”)

Not be able to launch emulator in Android Studio . 无法在Android Studio启动emulator

I have updated my SDK some days ago. 我几天前更新了我的SDK

Here is my current SDK details. 这是我当前的SDK详细信息。

在此输入图像描述

在此输入图像描述

My current system is Ubuntu 12.04 LTS with 32 Bit . 我目前的系统是Ubuntu 12.04 LTS 32 Bit

I am having Android Studio v1.3.2 . 我有Android Studio v1.3.2

My problem is when I try to launch any AVD from Android Studio I get following error. 我的问题是当我尝试从Android Studio启动任何AVD以下错误。

在此输入图像描述

I am not able to find out what is the problem ! 我无法找出问题所在! For your reference I can able to run the Application on real device . 供您参考,我可以Application on real device运行Application on real device

The problem is only related to emulator . 该问题仅与emulator有关。

Any help will be appreciated. 任何帮助将不胜感激。

Please help me if anyone knows about this i am still facing same problem. 请帮助我,如果有人知道这一点,我仍然面临同样的问题。 Not be able to solve it anyhow.I have tried some of the solutions of SO but it didn't solved for me. 无论如何都无法解决它。我已经尝试了SO的一些解决方案,但它并没有为我解决。

It's because of Linux 32 bit os. 这是因为Linux 32位操作系统。 I solved this issue replacing old platform tool instead of updated. 我解决了这个问题,取代旧平台工具而不是更新。 following steps you need to perform: 1) download and take old platform tool 2) remove existing platform tool. 您需要执行以下步骤:1)下载并使用旧平台工具2)删除现有平台工具。 3) add old platform tool 4) restart android studio. 3)添加旧平台工具4)重启android studio。

now it work fine and you can open emulator without error. 现在它工作正常,你可以毫无错误地打开模拟器。

Also if you replace os to 64bit then good for future updates. 此外,如果您将操作系统替换为64位,那么将来的更新很有用。

Its is because the android emulator doesn't like linux 32 bits. 这是因为android模拟器不喜欢linux 32位。 try to create a new Os 64bits. 尝试创建一个新的Os 64bits。

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

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