运行 来自 Android Studio 在 Ubuntu 17.04 的 AVD
Running an AVD from Android Studio on Ubuntu 17.04
我正在尝试 运行 来自 Android Studio 的应用程序,但 AVD 无法启动。尽管模拟器加载部分完成(模拟器未打开但进度条完成),它挂在 'Waiting for target device to come online'。
终端输出:
brian@brian-desktop:~/Downloads/android-studio/bin$ ./studio.sh
Looking in classpath from com.intellij.util.lang.UrlClassLoader@6d5380c2 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's 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
我 运行正在 Ubuntu 17.04 和 Android Studio 2.3.3
我搜索了类似的问题并尝试按照建议启用 adb 集成,但没有成功。
遇到了同样的问题,ubuntu 和 android studio 2.3.3 上的版本,我做的 1 种方法对我有帮助,我搜索并最终在 Whosebug 上找到了解决方案
方法是找到 lib64 文件夹,因为我是 运行ning ubuntu 64 位。在我的例子中,它位于 ~/Android/Sdk/emulator/lib64 和 运行 命令终端下:
//先在终端写入如下命令
$ sudo apt-get install lib64stdc++6:i386
$ sudo apt-get install mesa-utils
//导航到 ~/Android/Sdk/emulator/lib64 文件夹
$ mv libstdc++/ libstdc++.bak
$ ln -s /usr/lib64/libstdc++.so.6 libstdc++
参考:-
我正在尝试 运行 来自 Android Studio 的应用程序,但 AVD 无法启动。尽管模拟器加载部分完成(模拟器未打开但进度条完成),它挂在 'Waiting for target device to come online'。
终端输出:
brian@brian-desktop:~/Downloads/android-studio/bin$ ./studio.sh
Looking in classpath from com.intellij.util.lang.UrlClassLoader@6d5380c2 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's 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
我 运行正在 Ubuntu 17.04 和 Android Studio 2.3.3
我搜索了类似的问题并尝试按照建议启用 adb 集成,但没有成功。
遇到了同样的问题,ubuntu 和 android studio 2.3.3 上的版本,我做的 1 种方法对我有帮助,我搜索并最终在 Whosebug 上找到了解决方案 方法是找到 lib64 文件夹,因为我是 运行ning ubuntu 64 位。在我的例子中,它位于 ~/Android/Sdk/emulator/lib64 和 运行 命令终端下:
//先在终端写入如下命令
$ sudo apt-get install lib64stdc++6:i386
$ sudo apt-get install mesa-utils
//导航到 ~/Android/Sdk/emulator/lib64 文件夹
$ mv libstdc++/ libstdc++.bak
$ ln -s /usr/lib64/libstdc++.so.6 libstdc++
参考:-