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/17 04:22:28 UTC

[GitHub] [cordova-android] erisu edited a comment on issue #1320: Cordova-android 10 does not find dependencies

erisu edited a comment on issue #1320:
URL: https://github.com/apache/cordova-android/issues/1320#issuecomment-899982289


   It appears that you upgrade the project incorrectly somehow.
   
   Even though you are saying, in the description, that you are using `cordova-android : 10.0.1`, the stack trace is telling me differently.
   
   ```
   - /Users/vagrant/git/platforms/android/cordova/node_modules/nopt/lib/nopt.js
   - /Users/vagrant/git/platforms/android/cordova/lib/prepare.js
   - /Users/vagrant/git/platforms/android/cordova/Api.js
   ```
   
   In the above snippet of your stack trace, the `prepare.js` file does not exist at that location anymore. Since the stack trace shows it calling this file, it means you still have this file somehow and calling an older version of Cordova-Android. Your project is not using Cordova-Android 10.x.
   
   You should clean your project and try again.
   
   1. Delete `platforms` directory
       * In this case, you might be able to delete specifically the `platforms/android` directory, but generally I delete it all.
   1. Delete `plugins` directory
       * If you have any custom plugins in this directory, then you probably should delete only the plugins that are not custom.
   1. Delete `node_modules` directory
   1. Delete `package-lock.json` file
   1. `npm install`
   1. `cordova prepare`
   
   If you have any custom modifications directly applied in the platforms directory, you will need to re-apply them after the clean install. 
   
   __note__: Applying any changes directly to the platforms directory or committing the directory to any version control system is not recommended.


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