You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/08/25 16:51:12 UTC

[GitHub] [cordova-serve] seamlink-aalves opened a new issue #43: Error when trying to simulate with cordova-android 10

seamlink-aalves opened a new issue #43:
URL: https://github.com/apache/cordova-serve/issues/43


   # Bug Report
   
   ## Problem
   Cannot simulate Android in browser. I get error `Error: Project does not include the specified platform: android` although it's added
   
   ### What is expected to happen?
   Launch browser with app
   
   
   
   ### What does actually happen?
   I get error `Error: Project does not include the specified platform: android` 
   
   
   ## Information
   util.js file that calls Api class from each platform with no parameters (line 82). In cordova-android the root definition was changed from this.root = path.resolve(__dirname, '..'); (v.9.1.0) to this.root = platformRootDir; (v.10).
   
   When trying to set the app main path (line 66) const appMain = path.join(this.root, 'app', 'src', 'main'); because the first parameter is undefined.
   
   To make it work I have to change line 82 and 83 of util.js to:
   `
   	const platformRootFolder = path.join(cordovaProjectRoot, 'platforms', platformName);
           const Api = require(path.join(platformRootFolder, 'cordova/Api'));
           return new Api(platformName, platformRootFolder).locations.www;`
   
   ### Environment, Platform, Device
   Cordova: 10.0.0
   Cordova-android: 10.0.1
   SO: Windows 10 PRO
   
   
   ## Checklist
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-serve] raphinesse closed issue #43: Error when trying to simulate with cordova-android 10

Posted by GitBox <gi...@apache.org>.
raphinesse closed issue #43:
URL: https://github.com/apache/cordova-serve/issues/43


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-serve] RedMickey commented on issue #43: Error when trying to simulate with cordova-android 10

Posted by GitBox <gi...@apache.org>.
RedMickey commented on issue #43:
URL: https://github.com/apache/cordova-serve/issues/43#issuecomment-975206410


   Hi @erisu @raphinesse, do you have plans to release a new stable version of the `cordova-serve` package with the fix for this issue? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-serve] seamlink-aalves commented on issue #43: Error when trying to simulate with cordova-android 10

Posted by GitBox <gi...@apache.org>.
seamlink-aalves commented on issue #43:
URL: https://github.com/apache/cordova-serve/issues/43#issuecomment-906569259


   I've added a PR to fix this issue


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-serve] raphinesse commented on issue #43: Error when trying to simulate with cordova-android 10

Posted by GitBox <gi...@apache.org>.
raphinesse commented on issue #43:
URL: https://github.com/apache/cordova-serve/issues/43#issuecomment-906500789


   Thanks for reporting this! We should probably fix this from both ways:
   
   1. Apply the patch you provided above to `cordova-serve`
   2. Make `cordova-android` throw an error when the required platform root argument is missing
   
   For both, a PR would be welcome!
   
   @erisu agreed?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-serve] erisu commented on issue #43: Error when trying to simulate with cordova-android 10

Posted by GitBox <gi...@apache.org>.
erisu commented on issue #43:
URL: https://github.com/apache/cordova-serve/issues/43#issuecomment-906576226


   @raphinesse yes, I think that sounds good.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org