Skip to content

Instantly share code, notes, and snippets.

@rimian
Last active October 21, 2017 01:19
Show Gist options
  • Save rimian/8e38d1a9b5ba6986254eadd205f3defd to your computer and use it in GitHub Desktop.
Save rimian/8e38d1a9b5ba6986254eadd205f3defd to your computer and use it in GitHub Desktop.
Notes on upgrading cordova for Ununtu

I previously documented that we should ignore changes to the cordova/config.xml file. This is incorrect. Run this in root:

git update-index --no-assume-unchanged cordova/config.xml

Cordova 7.0.1 had a bug in it. This has been resolved in 7.1.0. The emulator runs on Ubuntu now.

Check which version on cordova: cordova -v. If your version is less than 7.1, remove the corodova app directly and reinstall it with npm. Cordova is installed here: which cordova. Then run sudo npm imnstall -g corodva

I've told git to ingore all cordova plugin and platform files. You'll need to add these manually. Because they were in our repo, You'll need to clean out these directories rm -rf cordova/plugins/* cordova/platforms/*

Then install

cd cordova cordova platforms add <whatever>

If you receive errors about Android SDK license agreements, run this: $ANDROID_HOME/tools/bin/sdkmanager --licenses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment