• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Difference between minCompileSdk and compileSdk

Resolved: Difference between minCompileSdk and compileSdk

0
By Isaac Tonny on 16/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

Looking at this release note for AppCompat, there is now a minCompileSdk I wonder what is the difference of this from compileSdk

Answer:

As per the Gradle API’s AAR documentation:

minCompileSdk: Minimum compileSdkVersion needed to consume this library. This is the minimum sdk version a module must use in order to import this library.


So a library can embed what SDK version it requires in order to work. For example, if AppCompat depends on API 33 APIs, your app must also compile with API 33 to work (otherwise those APIs that AppCompat is attempting to use don’t exist when compiling your app, which would cause AGP and ProGuard to fail).
Therefore there aren’t just differences – they’re two entirely different sides of the same coin. minCompileSdk is something a library enforces on apps, while compileSdkVersion is something your app sets itself.

If you have better answer, please add a comment about this, thank you!

android android-appcompat android-gradle-plugin androidx
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: PostgreSQL resample 1 minute OHLCV candle data into 5 minute OHLCV candle data

27/03/2023

Resolved: How do I navigate a table without any easily accessible distinctions?

27/03/2023

Resolved: Can a pod make itself unavailable temporarily in kubernetes?

27/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.