2017-04-15 7 views
5

Bu biraz sorun olabilir, ancak sanal makinede sanal stüdyo kullanıyorum ve telefonumu elimde tutuyorum. Görsel stüdyoda "oynat" a bastığımda, bu benim cordova uygulamamı derlediğimde ve yanımdaki telefonuma iterken, bunları test edip hata ayıklayabileceğimi ayarlayacağım.Visual Studio'nun TCP/IP üzerinden android devresi için ADB'yi kullanmasına nasıl ikna olunur?

Telefonum 'rooted' ve ADB wifi kurdum. Visual Studio'nun adb sürümünden ona bağlanabiliyorum ve aynı zamanda aygıtları listeleyen adb.

(output from cmd.exe running as Admin in the solution folder) 

C:\Stuff\Code\svn\myapp\MyApp>adb connect 10.10.10.6 
already connected to 10.10.10.6:5555 

C:\Stuff\Code\svn\myapp\MyApp>adb devices 
List of devices attached 
10.10.10.6:5555 device 

Visual Studio Çal bastığınızda o derler ve o telefona dağıtmak gerekiyor konuya giriyor ve daha sonra aşağıdaki hata ile çıkageldi: sistem dosyası

belirtilen bulamıyor
(output from "output" tab in visual studio) 

C:/Stuff/Code/svn/myapp/myApp/platforms/android/build/outputs /apk/android-debug.apk 
No scripts found for hook "after_build". 
No scripts found for hook "after_compile". 
------ Copying back to project: android 
2>------ Deploy started: Project: MyApp, Configuration: Debug Android  ------ 
2> Querying ADB for attached devices... 
2>The system cannot find the file specified 
2>The system cannot find the file specified 
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== 
========== Deploy: 0 succeeded, 1 failed, 0 skipped ========== 
+0

neden downvote? şüphesiz aynı sorunu olan başka insanlar var mı? – user230910

cevap

4

ben benzer bir sorunu vardı ve bu ... benim için çalıştı


  1. adb kill-server

  2. adb tcpip 5555

  3. adb connect 10.10.10.6

  4. adb devices - Cihazınızı göstermelidir

  5. Open Visual Studio as Admin

  6. Type: ALT+B, R (ALT+B then R) to rebuild your solution

  7. Run your app

enter image description here

İlgili konular