Запуск AVD от Android Studio на Ubuntu 17.04

Я пытаюсь запустить приложение из Android Studio, но AVD не запускается. Он зависает на "Ожидание запуска целевого устройства", хотя загрузочная часть эмулятора заканчивается (эмулятор не открывается, но индикатор выполнения завершается).

Выход из терминала:

    [email protected]:~/Downloads/android-studio/bin$ ./studio.sh
Looking in classpath from [email protected] for /com/sun/jna/linux-x86-64/libjnidispatch.so
Found library resource at jar:file:/home/brian/Downloads/android-studio/lib/jna.jar!/com/sun/jna/linux-x86-64/libjnidispatch.so
Trying /home/brian/.AndroidStudio2.3/system/tmp/jna3898264938984980367.tmp
Found jnidispatch at /home/brian/.AndroidStudio2.3/system/tmp/jna3898264938984980367.tmp
[   6896]   WARN - dea.updater.SdkComponentSource - File /home/brian/.android/repositories.cfg could not be loaded. 
Downloading https://services.gradle.org/distributions/gradle-3.3-all.zip
.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Unzipping /home/brian/.gradle/wrapper/dists/gradle-3.3-all/55gk2rcmfc6p2dg9u9ohc3hw9/gradle-3.3-all.zip to /home/brian/.gradle/wrapper/dists/gradle-3.3-all/55gk2rcmfc6p2dg9u9ohc3hw9
Set executable permissions for: /home/brian/.gradle/wrapper/dists/gradle-3.3-all/55gk2rcmfc6p2dg9u9ohc3hw9/gradle-3.3/bin/gradle
[ 349239]   WARN - .workspace.NdkWorkspaceManager - NDK support for project 'Kryptomate' is disabled because it not a valid Android project 
Looking for library 'libnotify.so.4'
Adding paths from jna.library.path: null
Trying libnotify.so.4
Found library 'libnotify.so.4' at libnotify.so.4
[ 403253]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: ExampleUnitTest.java 
[ 403254]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: gradle.properties 
[ 403254]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: activity_item_detail.xml 
[ 403254]   WARN - tectAndAdjustIndentOptionsTask - Indent detection is too long for: item_list.xml 
[ 645318]   WARN -                    #InstantRun - Instant Run enabled, but not doing an instant run build since: API_TOO_LOW_FOR_INSTANT_RUN 
[ 945340]   WARN - run.EmulatorConnectionListener - Timed out after 300seconds waiting for emulator to come online. 
[ 965742]   WARN -                    #InstantRun - Instant Run enabled, but not doing an instant run build since: API_TOO_LOW_FOR_INSTANT_RUN 

[Idea.Log]

Я работаю на Ubuntu 17.04 и Android Studio 2.3.3

Я искал похожие проблемы и пытался включить интеграцию adb, как было предложено, без успеха.

Ответ 1

У той же проблемы это, версия на ubuntu и android studio 2.3.3, 1 способ, который я сделал, который помог мне, я искал и, наконец, нашел решения в stackoverflow Путь заключается в том, чтобы найти папку lib64, так как я запускаю 64-разрядный ubuntu. В моем случае он находится под ~/Android/Sdk/emulator/lib64 и запускает терминал команд:

//Сначала напишите следующую команду в терминале

$sudo apt-get install lib64stdС++ 6: i386

$sudo apt-get install mesa-utils

//Перейдите в папку ~/Android/Sdk/emulator/lib64

$mv libstdС++/libstdС++. bak

$ln -s/usr/lib64/libstdc++.so.6 libstdС++

Refrence: - Как получить дополнительную информацию о "Ожидание запуска целевого устройства в сети" в Android Studio?