android - Visual studio 2015 cordova: deploy failed -


i have problem while i'm trying run cordova project on android device , android emulators.

i'm using visual studio @ time.

the strange thing works ripple emulators.

please me!

all packages installed , there nothing restore. nuget package restore finished. 1>------ build started: project: test mobile, configuration: debug android ------ 1>  environment has been set using node.js 0.10.28 (x64) , npm. 1>  ------ ensuring correct global installation of package source package directory: c:\program files (x86)\microsoft visual studio 14.0\common7\ide\extensions\apachecordovatools\packages\vs-tac 1> 1>  c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile>"c:\users\test\appdata\roaming\npm\\node_modules\vs-tac\vs-tac-cli.cmd"   build --platform android --configuration debug --projectdir . --projectname "test mobile" --npminstalldir c:\users\test\appdata\roaming\npm --language en-us --buildtarget androiddevice 1>  ------ cordova tools 4.3.0 installed. 1>  ------ build settings: 1>  ------ build settings: 1>  ------    platformconfigurationblddir: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\bld\android\debug 1>  ------    platformconfigurationbindir: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\bin\android\debug 1>  ------    buildcommand: build 1>  ------    platform: android 1>  ------    cordovaplatform: android 1>  ------    configuration: debug 1>  ------    cordovaconfiguration: debug 1>  ------    projectname: test mobile 1>  ------    projectsourcedir: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile 1>  ------    npminstalldir: c:\users\test\appdata\roaming\npm 1>  ------    buildtarget: androiddevice 1>  ------    language: en-us 1>  ------ platform android exists 1>  ------ copying native files c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\native\android platforms\android 1>  ------ done copying native files platforms\android 1>  ------ updating plugins 1>  ------ installed plugins: org.apache.cordova.device@0.3.0,org.apache.cordova.device-motion@0.2.11,org.apache.cordova.device-orientation@0.3.11 1>  ------ installed dependent plugins: 1>  ------ configured plugins: org.apache.cordova.device@0.3.0,org.apache.cordova.device-motion@0.2.11,org.apache.cordova.device-orientation@0.3.11 1>  ------ preparing platform: android 1>  generating config.xml defaults platform "android" 1>  calling plugman.prepare platform "android" 1>  preparing android project 1>  processing configuration changes plugins. 1>  iterating on installed plugins: [ 'org.apache.cordova.device', 1>    'org.apache.cordova.device-motion', 1>    'org.apache.cordova.device-orientation' ] 1>  writing out cordova_plugins.js... 1>  wrote out android application name "test mobile" 1>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-hdpi\screen.png 1>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-ldpi\screen.png 1>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-mdpi\screen.png 1>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-xhdpi\screen.png 1>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-hdpi\screen.png 1>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-ldpi\screen.png 1>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-mdpi\screen.png 1>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-xhdpi\screen.png 1>  splash screens: [{"src":"res/screens/android/screen-hdpi-landscape.png","density":"land-hdpi","platform":"android"},{"src":"res/screens/android/screen-ldpi-landscape.png","density":"land-ldpi","platform":"android"},{"src":"res/screens/android/screen-mdpi-landscape.png","density":"land-mdpi","platform":"android"},{"src":"res/screens/android/screen-xhdpi-landscape.png","density":"land-xhdpi","platform":"android"},{"src":"res/screens/android/screen-hdpi-portrait.png","density":"port-hdpi","platform":"android"},{"src":"res/screens/android/screen-ldpi-portrait.png","density":"port-ldpi","platform":"android"},{"src":"res/screens/android/screen-mdpi-portrait.png","density":"port-mdpi","platform":"android"},{"src":"res/screens/android/screen-xhdpi-portrait.png","density":"port-xhdpi","platform":"android"}] 1>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-hdpi-landscape.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-hdpi\screen.png 1>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-ldpi-landscape.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-ldpi\screen.png 1>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-mdpi-landscape.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-mdpi\screen.png 1>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-xhdpi-landscape.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-xhdpi\screen.png 1>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-hdpi-portrait.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-hdpi\screen.png 1>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-ldpi-portrait.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-ldpi\screen.png 1>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-mdpi-portrait.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-mdpi\screen.png 1>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-xhdpi-portrait.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-xhdpi\screen.png 1>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-hdpi\icon.png 1>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-ldpi\icon.png 1>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-mdpi\icon.png 1>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-xhdpi\icon.png 1>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\icons\android\icon-36-ldpi.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-ldpi\icon.png 1>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\icons\android\icon-48-mdpi.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-mdpi\icon.png 1>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\icons\android\icon-72-hdpi.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-hdpi\icon.png 1>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\icons\android\icon-96-xhdpi.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-xhdpi\icon.png 1>  wrote out android package name "io.cordova.myapp76d7077ea38e4cd99a5883be4864bce5" 1>  ------ copied c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\bin\android\debug\vsbuildinfo.xml platforms\android\assets\www\vsbuildinfo.xml 1>  ------ building platform: android 1>  debug 1>  ------ build configuration options: --debug 1>  running command: cmd "/s /c ""c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\cordova\build.bat" --debug --ant "" 1>  ant_home set incorrectly or ant not located. please set ant_home. 1>  built following apk(s): 1> 1>  command finished error code 0: cmd /s /c ""c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\cordova\build.bat" --debug --ant " 1>  ------ copying project: android 1>  ------ done copying compiled files: android 2>------ deploy started: project: test mobile, configuration: debug android ------ 2>starting launch process c:\program files\nodejs\node.exe "c:\users\test\appdata\roaming\npm\node_modules\vs-tac\emulator.js" --platform android --path "c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile" --deploytarget "device" --language nl-nl --configuration debug  --cliversion 4.3.0 2>  ------ cordova tools 4.3.0 installed. 2>  generating config.xml defaults platform "android" 2>  calling plugman.prepare platform "android" 2>  preparing android project 2>  processing configuration changes plugins. 2>  iterating on installed plugins: [ 'org.apache.cordova.device', 2>    'org.apache.cordova.device-motion', 2>    'org.apache.cordova.device-orientation' ] 2>  writing out cordova_plugins.js... 2>  wrote out android application name "test mobile" 2>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-hdpi\screen.png 2>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-ldpi\screen.png 2>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-mdpi\screen.png 2>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-xhdpi\screen.png 2>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-hdpi\screen.png 2>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-ldpi\screen.png 2>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-mdpi\screen.png 2>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-xhdpi\screen.png 2>  splash screens: [{"src":"res/screens/android/screen-hdpi-landscape.png","density":"land-hdpi","platform":"android"},{"src":"res/screens/android/screen-ldpi-landscape.png","density":"land-ldpi","platform":"android"},{"src":"res/screens/android/screen-mdpi-landscape.png","density":"land-mdpi","platform":"android"},{"src":"res/screens/android/screen-xhdpi-landscape.png","density":"land-xhdpi","platform":"android"},{"src":"res/screens/android/screen-hdpi-portrait.png","density":"port-hdpi","platform":"android"},{"src":"res/screens/android/screen-ldpi-portrait.png","density":"port-ldpi","platform":"android"},{"src":"res/screens/android/screen-mdpi-portrait.png","density":"port-mdpi","platform":"android"},{"src":"res/screens/android/screen-xhdpi-portrait.png","density":"port-xhdpi","platform":"android"}] 2>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-hdpi-landscape.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-hdpi\screen.png 2>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-ldpi-landscape.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-ldpi\screen.png 2>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-mdpi-landscape.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-mdpi\screen.png 2>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-xhdpi-landscape.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-land-xhdpi\screen.png 2>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-hdpi-portrait.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-hdpi\screen.png 2>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-ldpi-portrait.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-ldpi\screen.png 2>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-mdpi-portrait.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-mdpi\screen.png 2>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\screens\android\screen-xhdpi-portrait.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-port-xhdpi\screen.png 2>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-hdpi\icon.png 2>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-ldpi\icon.png 2>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-mdpi\icon.png 2>  deleted: c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-xhdpi\icon.png 2>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\icons\android\icon-36-ldpi.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-ldpi\icon.png 2>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\icons\android\icon-48-mdpi.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-mdpi\icon.png 2>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\icons\android\icon-72-hdpi.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-hdpi\icon.png 2>  copying image c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\res\icons\android\icon-96-xhdpi.png c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\res\drawable-xhdpi\icon.png 2>  wrote out android package name "io.cordova.myapp76d7077ea38e4cd99a5883be4864bce5" 2>  running command: cmd "/s /c ""c:\users\test\documents\visual studio 2015\projects\test mobile\test mobile\platforms\android\cordova\run.bat" --nobuild --device --debug"" 

after in build solution error: deployment error.

i hope can me.

solution:

after updated android sdk worked fine. answer given below, solution. many thanks!!

since occurs when targeting device , android emulator, should known issue android sdk 24.3.2 used, has been mentioned in known issues.

if case, please follow instruction mentioned in link downgrade android sdk tools 24.2.

if not case, go visual studio menu tools->options-> project , solutions -> select "diagnostics" in msbuild project build output verbosity. share log furthur investigation.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -