Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure version of Android SDK is consistent when compiling kotlin targets #746

Merged
merged 1 commit into from
May 13, 2022

Conversation

oliviernotteghem
Copy link
Contributor

It's possible Kotlin targets within a project can depend on other libraries that depend themselves (as provided deps) on different version on Android SDK library. It's certainly not a good practice, but can happen.
In this case, because project android SDK appears later in the list of classpathes used for compilation when compiling kotlin targets, this different version of the Android SDK can take precedence and cause target failed to compile. An example is with android.os.BuildConfig.VERSION_CODE that might not contain latest entries in case different version of the SDK is older.

@restingbull restingbull merged commit 9050ac9 into bazelbuild:master May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants