[Android] cdvCompileSdkVersion=35 too low for current androidx transitive deps, blocks hybrid_remote generation - #3003
Merged
Conversation
…e dependency floor (Update gradle.properties cdvCompileSdkVersion from 35 to 36; SDK libraries already build against compileSdk 36 for these androidx versions)
brandonpage
approved these changes
Aug 24, 2026
JohnsonEricAtSalesforce
merged commit Aug 24, 2026
e1cdd0f
into
forcedotcom:dev
9 of 10 checks passed
JohnsonEricAtSalesforce
deleted the
bugfix/android-cdvcompilesdkversion-too-low-for-current-androidx-transitive-deps
branch
August 24, 2026 21:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Generating a hybrid_remote Android app via
SalesforceMobileSDK-Package'stest_force.jsandbuilding it with Gradle fails with an
AAR metadatacompileSdk mismatch. The generated app endsup compiled against
cdvCompileSdkVersion=35, while several transitive androidx dependenciespulled in by the SDK (
androidx.biometric,androidx.browser,androidx.activity,androidx.core,androidx.navigationevent) requirecompileSdk 36+. This blocks Androidhybrid_remote app generation entirely.
Root cause
This repository's own
gradle.propertiesstill declaredcdvCompileSdkVersion=35, out of stepwith the
compileSdk = 36already pinned across this repo's own SDK library modules(
SalesforceSDK,SalesforceHybrid,SmartStore,MobileSync,SalesforceAnalytics) for thesesame androidx dependency versions. During Cordova plugin generation, the plugin's
update.shcopies this repo's
gradle.propertiesinto the generated app project — so the stale35alwayswins regardless of the Cordova plugin repo's own (already-correct) copy of this setting.
Fix
Bump
cdvCompileSdkVersionfrom35to36ingradle.properties, matching the floor alreadyrequired by and verified against the current androidx dependency versions elsewhere in this repo.
Test plan
androidx-core(1.18.0),androidx-activity(1.13.0),androidx-browser(1.10.0), and
androidx-biometric(1.4.0-alpha07) match the versions already builtsuccessfully against
compileSdk = 36in this repo's own library modules.:libs:SalesforceHybrid:assembleDebugbefore and after this change —succeeds both times.
SalesforceMobileSDK-Package'stest_force.jspointed at this branch and confirm theGradle build succeeds (pending a separate verification pass).
This response was generated by an AI agent on behalf of @JohnsonEricAtSalesforce.