Visual Studio 2015開發Android App啟動調試始終無法完成應用部署的解決方案

來源:互聯網
上載者:User

標籤:

建立一個Android App項目後,直接啟動調試發現Visual Studio Emulator for Android已成功運行,但應用始終處於Build中(等待時間超過1小時),並未如預期通過adb部署到模擬器中。將應用直接匯出apk,拖拽至模擬器直接部署,提示:

File transfer failed. Error: Unable to install the file through Adb. Adb.exe not found. Make sure you have Android SDK Tools installed.

查看進程列表發現adb.exe已經啟動,並且和Visual Studio有通訊,但XDE和adb.exe沒有通訊。應該是XDE無法定位Android SDK路徑所致。於是運行Process Monitor,再次嘗試拖拽apk,終於發現XDE尋找名為"HKCU\Software\Microsoft\VisualStudioEmulator\Android\AdbPath"的註冊表索引值,添加對應的索引值問題解決。懷疑和我並沒有通過Visual Studio直接安裝Android SDK有關係,導致一些設定無法生效。

Visual Studio 2015開發Android App啟動調試始終無法完成應用部署的解決方案

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.