Updating Your Capacitor Android Project
Occasionally, you'll need to make Capacitor updates to your Android app, including updating the version of Capacitor used in your app, or using new ways of interfacing with Capacitor inside of your Android codebase.
Updating Capacitor Library
To update the version of Capacitor used in your app, open the
build.gradle file for your
Module: app (available in
android/app/build.gradle), and update the line:
To use the version of Capacitor Android you'd like.
Updating Android Project
To update the base structure of your Android project, view the android-template project in the Capacitor repo, under the tag corresponding to the latest stable release of Capacitor. The core project is kept simple on purpose: it shouldn't take much time to see what is different from the core project and your project.