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 06:34:59 UTC

[GitHub] [cordova-android] QuentinFarizon commented on issue #1320: Cordova-android 10 does not find dependencies

QuentinFarizon commented on issue #1320:
URL: https://github.com/apache/cordova-android/issues/1320#issuecomment-900033084


   Hello,
   Indeed I was hit by this bug :
   https://github.com/apache/cordova-fetch/issues/92#issuecomment-898506948
   
   So it was indeed forcing cordova-android 9.1.0, yet not completely since it
   was not building as well as being plainly on 9.1.0.
   
   
   
   Le mar. 17 août 2021, 06:21, エリス ***@***.***> a écrit :
   
   > 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
   >    2. Delete package-lock.json file
   >    3. npm install
   >    4. 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.
   >
   > —
   > You are receiving this because you authored the thread.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/cordova-android/issues/1320#issuecomment-899982289>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AIATUIARPIEZGXOLVPU7VJTT5HPVLANCNFSM5B7UXDHA>
   > .
   > Triage notifications on the go with GitHub Mobile for iOS
   > <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
   > or Android
   > <https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
   > .
   >
   


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