我試圖從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
我在Ubuntu 17.04和Android 2.3.3工作室
我搜索了類似的問題,並試圖使亞行整合的建議運行,沒有成功。
你能添加idea.log尾巴?它位於'〜/ .AndroidStudioPreview3.0/system' –
@MartinRevert https://pastebin.com/iD2gYD5p – Brian
我的第一個猜測是你的項目的目標是API 19,並且該API級別不適用於Instant Run版本。我建議將你的'minSdkVersion'升級到21,並使用一個匹配的API模擬器。如果由於任何原因無法執行此操作,請從文件 - >設置 - > Buld,執行和部署 - >即時運行中禁用「即時運行」,然後重新啓動Android Studio並重試。 –