2017-08-02 116 views
12

我試圖從Android Studio運行應用程序,但AVD未啓動。雖然模擬器加載部分完成(模擬器未打開但進度條完成),但它掛在'等待目標設備上線'。從終端在Ubuntu上運行Android Studio的AVD 17.04

輸出:

[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'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 

[Idea.Log]

我在Ubuntu 17.04和Android 2.3.3工作室

我搜索了類似的問題,並試圖使亞行整合的建議運行,沒有成功。

+0

你能添加idea.log尾巴?它位於'〜/ .AndroidStudioPreview3.0/system' –

+0

@MartinRevert https://pastebin.com/iD2gYD5p – Brian

+0

我的第一個猜測是你的項目的目標是API 19,並且該API級別不適用於Instant Run版本。我建議將你的'minSdkVersion'升級到21,並使用一個匹配的API模擬器。如果由於任何原因無法執行此操作,請從文件 - >設置 - > Buld,執行和部署 - >即時運行中禁用「即時運行」,然後重新啓動Android Studio並重試。 –

回答

8

有了這個在Ubuntu我搜索了,終於找到了關於計算器 的解決方案的方式是找到lib64的文件夾,因爲我同樣的問題,版本和android 2.3.3工作室,1個方面,我做這幫助了我,運行ubuntu 64位。以我爲例,其位於在〜/安卓/ SDK /模擬器/ lib64目錄,然後運行命令端子:

//首先在寫下面的命令終端

$ sudo易於得到安裝lib64stdC++ 6: I386

$ sudo易於得到安裝檯面-utils的

//導航到〜/安卓/ SDK /模擬器/ lib64的文件夾

$ MV的libstdC++/++的libstdc。窺知

$ LN -s /usr/lib64/libstdc++.so.6的libstdC++

Refrence: - How can I get more information about "Waiting for target device to come online" in Android Studio?