Skip to content

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.

2 participants