Skip to main content

Android SDK Version Compatibility Guide

This guide is designed to help you align versions of the Native Android Portals SDK with the Portals Web Plugin and Capacitor. Click here to jump straight to the version compatibility matrix.

Matching Dependency Versions

Ideally, the version of Capacitor used by the Web App from NPM should match the version of Capacitor used by Portals in the native SDK. The Compatible Capacitor Versions column shows versions of Capacitor that are generally compatible with that version of Portals and should not cause any issues. If you are trying to target a specific version of Capacitor that contains a fix or feature you need, make sure you use the appropriate version of Portals and the Portals Plugin that is compatible.

For example: referencing the matrix at the bottom of the page, if you are using Portals versions 0.7.1 to 0.7.3, the web plugin version should be 0.7.0 and ideally you would be using Capacitor version 4.6.1. However, Capacitor versions 4.6.3 to 4.7.0 would work.

How Gradle Resolves Dependency Versions

By default, Gradle will use the version of Capacitor that the Portals SDK depends on. If the app includes multiple dependencies that depend on different versions of Capacitor, Gradle will try to resolve the conflict by using the highest version in the dependency tree.

Reference: https://docs.gradle.org/current/userguide/dependency_resolution.html

Determining Capacitor Versions in Gradle

Gradle allows you to use a specific version of Capacitor that Portals or a Capacitor Plugin dependency will use.

warning

Use the version compatibility matrix at the bottom of the page when choosing a version of Capacitor to ensure it will be compatible. When balancing a version between Portals and a Capacitor plugin, reference the documentation or change log for the plugin to make sure the Capacitor version will be compatible.

The following example will use the version of the Capacitor dependency included via the Capacitor Camera plugin.

dependencies {
implementation('io.ionic:portals:0.10.0') {
exclude group: 'com.capacitorjs', module: 'core'
}

implementation 'com.capacitorjs:camera:6.0.0'
}

The following example will use the version of the Capacitor dependency specifified in the dependencies block. Neither of the Capacitor versions included with Portals or the Capacitor Camera plugin will be used.

dependencies {
implementation('io.ionic:portals:0.10.0') {
exclude group: 'com.capacitorjs', module: 'core'
}

implementation('com.capacitorjs:camera:6.0.0') {
exclude group: 'com.capacitorjs', module: 'core'
}

implementation 'com.capacitorjs:core:6.0.0'
}

For more information refer to the Gradle documentation pages:

SDK Version Compatibility Matrix

Android SDKWeb Plugin VersionCompiled Capacitor VersionCompatible Capacitor VersionsCompatible Live Updates VersionsPortals CLI
0.10.20.10.06.0.+6.0.+0.5.+0.3.+
0.10.10.10.06.0.+6.0.+0.5.+0.3.+
0.10.00.10.06.0.+6.0.+0.5.+0.3.+
0.9.00.9.05.7.+5.0.3 - 5.7.20.5.+0.3.+
0.8.40.9.05.7.+5.0.3 - 5.7.20.5.+-
0.8.30.8.15.5.+5.0.3 - 5.7.20.0.5 - 0.4.1-
0.8.20.8.15.4.25.0.3 - 5.7.20.0.5 - 0.4.1-
0.8.10.8.15.4.25.0.3 - 5.7.20.0.5 - 0.4.1-
0.8.00.8.15.0.35.0.3 - 5.7.20.0.5 - 0.4.1-
0.7.50.7.14.7.34.7.0 - 4.8.00.0.5 - 0.4.1-
0.7.40.7.14.7.04.7.0 - 4.8.00.0.5 - 0.4.1-
0.7.30.7.04.6.14.4.0 - 4.6.30.0.5 - 0.4.1-
0.7.20.7.04.6.14.4.0 - 4.6.30.0.5 - 0.4.1-
0.7.10.7.04.6.14.4.0 - 4.6.30.0.5 - 0.4.1-
0.7.00.7.04.5.04.4.0 - 4.6.30.0.5 - 0.4.1-
0.6.40.6.03.9.03.5.1 - 3.9.00.0.5 - 0.4.1-
0.6.30.6.03.7.03.5.1 - 3.9.00.0.5 - 0.4.1-
0.6.20.6.03.5.13.5.1 - 3.9.00.0.5 - 0.4.1-
0.6.10.6.03.5.13.5.1 - 3.9.00.0.5 - 0.4.1-
0.6.00.6.03.5.13.5.1 - 3.9.00.0.5 - 0.4.1-
0.5.10.5.03.5.13.5.1 - 3.9.00.0.5 - 0.4.1-
0.5.00.5.03.4.13.3.0 - 3.5.00.0.5 - 0.4.1-
0.4.10.4.13.4.03.3.0 - 3.5.00.0.5 - 0.4.1-
0.3.10.3.13.3.33.3.0 - 3.5.00.0.5 - 0.4.1-
0.3.00.3.03.3.23.3.0 - 3.5.00.0.5 - 0.4.1-
0.2.20.2.23.2.53.2.2 - 3.2.50.0.5 - 0.4.1-
0.2.10.2.13.2.43.2.2 - 3.2.50.0.5 - 0.4.1-
0.2.00.2.03.2.23.2.2 - 3.2.50.0.5 - 0.4.1-