Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 Cordova error: Could not locate a deployable apk

I use Visual Studio 2015 to create Cordova project, but when I debug the solution, the VS told me:

Error DEP10402: Could not locate a deployable apk. You may need to build your project.

and I couldn't get any project apk.

like image 433
Kimi Avatar asked Nov 12 '15 09:11

Kimi


3 Answers

Use Cordova CLI version 5.4.1 in config.xml platform tab.

look here

like image 134
mustafatorun Avatar answered Nov 16 '22 17:11

mustafatorun


This Error may occurred because of the incompatibility of cordova version, check your installed cordova version bye entrig following

cordova -v

and make sure same version added to visual studio project, in config.xml -> platform -> cordova cli

like image 42
Thilanka Ishara Gunathilake Avatar answered Nov 16 '22 17:11

Thilanka Ishara Gunathilake


I had the same issue with Visual Studio 2017 and Ionic 3. The cordova-cli 8 (if you use a global cordova-cli) copies the apk into another folder and hence VS doesn't find it. I added a copyapk script which is run after the build is completed.

https://github.com/hamburml/ionic3-vs2017-blank-template

like image 2
Hamburml Avatar answered Nov 16 '22 16:11

Hamburml