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 2022/07/04 04:41:55 UTC

[GitHub] [cordova-android] erisu commented on issue #1454: Error Messages: {Source and destination must not be the same} cannot build using cordova-android@11.0.0

erisu commented on issue #1454:
URL: https://github.com/apache/cordova-android/issues/1454#issuecomment-1173338038

   @AndrWeisR Could you try this in your project? as a test to confirm if this works for you...
   
   In `node_modules/cordova-android/lib/prepare.js`
   
   On line [306](https://github.com/apache/cordova-android/blob/11.0.0/lib/prepare.js#L306), you should see this:
   
   ```js
   const destFile = java_files[0];
   ```
   
   Change it to this:
   
   ```js
   const destFile = path.normalize(java_files[0]);
   ```
   
   This should correct the path segment separator to the platform-specific path segment separator...


-- 
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