Error DEP10402: Could not locate the start page. You may need to build your project

One of my Visual Studio 2015 Cordova projects has recently started exhibiting this error when trying to debug with IOS / Ripple - iPhone (any):

Error DEP10402: Could not locate the start page. You may need to build your project.

Oddly it only occurs in this one project and it works fine with Android / Ripple. I can also deploy and debug to local / remote devices just fine.

I've tried rebuilding of course as well as clearing the Cordova cache as well as rebooting.

Any ideas?

Both the above solutions didn't work for me. I did this steps:

1. Locate the start page in config.xml. Usually, it is index.html.
2. Make a copy the index.html and paste it back. The filename is like "index - Copy.html".
3. Delete the original index.html
4. Rename "index - Copy.html" back to index.html
5. Start Debug.

It worked for me.

Error DEP10402: Could not locate the start page, You may need to build your project." I saw some weird solution (rename index.​html file) but didn't work for me. Link for the problem: https  Developer Community for Visual Studio Product family. This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use.

Had the same problem, and the posted solutions didn't solve it for me.

I found that when I changed platforms from Android to iOS and Visual Studio was able to deploy the Cordova project...

So to fix the issue for Android, I did the following:

 1. I opened the project folder in Explorer
 2. Entered the "platforms" sub-folder
 3. Deleted the subfolder "android". 
 4. Back to Visual Studio => changed platform back to android
 5. Rebuild.

Now the android ripple worked for me.

Another thing to try is to create a new solution configuration:

 1. Set your project as Startup project
 2. Build => Configuration Manager...
 3. Choose <New...>
 4. Name your config. Don't copy settings.
 5. Click OK.
 6. Set checkmarks in Build and Deploy for your startup project only.

Choosing the new configuration now allows me to debug in ripple.

Edit: This happens from time to time in my solutions. In addition to the steps above, I have also had to reinstall the platform using the cordova CLI and also (from Visual Studio) removing and adding cordova plugins again. I would advise to try the listed answers until one fixes your problem.

Visual Studio Ionic 2, One of my Visual Studio 2015 Cordova projects has recently started exhibiting this error when trying to debug with IOS / Ripple - iPhone (any): Error DEP10402: Could not locate the start page. You may need to build your project. I've tried rebuilding of course as well as clearing the Cordova cache as well as rebooting. You may need to build your project. Oddly it only occurs in this one project and it works fine with Android / Ripple. I can also deploy and debug to local / remote devices just fine.</p> <p>I&#39;ve tried rebuilding of course as well as clearing the Cordova cache as well as rebooting.</p> <p>Any ideas?</p>

I used to get the same error while debugging my Cordova project. Every time I get this, I just follow some simple steps:

  1. Restart Visual studio and re-open your project,
  2. Go to Solution Explorer and try to open your project's start page manually,
  3. Clean and Deploy your solution.

Hopefully, this will work out.

Common Apache Cordova build errors with Android, On creating new Ionic 2 project templates with Visual Studio 2015, build is failing with the Error (DEP10402) : Could not locate the start page. You may need to build your project. Reason - There is no files in www folder by the build. Update your ionic app scripts to the latest version. You may need to build your project. Saturday, February 11, 2017 Cordova , Ionic , Mobile No comments

I tried various suggestions provided in the above answers, but what worked for me was moving index.html from:

Project_Folder to Project_Folder /src

and in package.json I added:

"main": "src/index.html" as a property(added a version 

property as well, as it was complaining about that as well).

I also changed Start page in config.xml to src/index.html as mentioned above.

Hope this helps!

Cordova Android Debug Error DEP10402 Could not locate the start , Cannot find module 'android-versions'. Run the following Error DEP10402: Could not locate a deployable apk. You may need to build your project Add # at the beginning to comment the previous line. You Please contribute with the author if you find this content useful and help keep this page ad-free. VS has nodejs in web\external tools dir, which is older version than the one you would see on nodejs.org. Solution: fix the versions for your dependencies in package.json, and make sure you are using app-scripts 1.0.0 in your devDependencies

Simply remove your platform and re-add it. This worked for me

  1. open cmd
  2. goto your project
  3. type: cordova platform rm android
  4. after removing, type: cordova platform add android
  5. then run your project

Super template with Visual Studio 2017 - ionic-v3, Error DEP10402: Could not locate the start page. You may need to build your project. Oddly it only occurs in this one project and it works fine  Previous Post Previous post: Server 2008 R2 ve Server 2012 yedek alma ve kurma

Ionic2 Visual studio 2015 deploy error : ionic, Error DEP10402: Could not locate the start page. You may need to build your project. Oddly it only occurs in this one project and it works fine  1. Set your project as Startup project 2. Build => Configuration Manager 3. Choose <New> 4. Name your config. Don't copy settings. 5. Click OK. 6. Set checkmarks in Build and Deploy for your startup project only. Choosing the new configuration now allows me to debug in ripple. Edit: This happens from time to time in my solutions. In addition to the steps above, I have also had to reinstall the platform using the cordova CLI and also (from Visual Studio) removing and adding cordova

I saw this post but non of answers are helpful. Error DEP10402: Could not locate the start page. You may need to build your project Any ideas about which way  Severity Code Description Project File Line Suppression State Error: Http 404: Can not find the attached devices; whether it was connected and unlocked? Severity Code Description Project File Line Suppression State Error: You can not deploy a remote iOS for compiling C: \

After importing the project to VS and building, I constantly get error 'DEP10402: Could not locate the start page. You may need to build your  When I restarted my computer, it opened to the start page. The start page was full screen like it was in Windows 8.1. I can't find a way to return back to my desktop. I can only find the desktop file - it shows what apps are on my desktop but does not return to my desktop. I really hope Windows 10 didn't get rid of the desktop option

Comments
  • Along with Clearing the Cordova cache i also tried from the CLI removed the platform android and then added the platform and ran from the VS by selecting F5 . I was facing the issue when i try to run with the ripple emulator for android .
  • Can you share the source of your config.xml file? Unfortunately, I haven't seen this error before...
  • I am getting the same thing. I also noticed that I am not seeing any configurations under the Task Runner Explorer. However, taco.visualstudio.com/en-US/docs/tutorial-ionic2/ clearly has a section discussing Task Runner Explorer as a requirement, to get the Ionic2 templates working :(
  • Thank you! Very messed up bug.
  • Works for me as well. That VS :P
  • Yet another miracle and weird workaround for VS 2015
  • VS & cordova are working fine with fallacies? this solution is not work for me. and also "very specific" for programming...
  • It work for me. thanks, it saved my another day, already wasted a day to find solution.
  • this is how i solve the problem, this should be the answer
  • I tried restarting Visual Studio but that had no effect. However, Clean and Deploy helped, so thanks for suggesting that.