You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/08/04 16:32:32 UTC

[GitHub] [cordova-android] breautek commented on issue #1310: Unable to set targetSdk != compileSdk, fail to compile with targetSdk < 30

breautek commented on issue #1310:
URL: https://github.com/apache/cordova-android/issues/1310#issuecomment-892802205


   This change introduced in cordova-android@10 was intentional in effort to uniform and simplify the API that Cordova provides.
   
   The rationale behind this change is that we didn't see any **good** reason to keep the two settings as two independent fields and they were often a source of confusion or errors when they are misconfigured.
   
   Having a Target SDK that is > than the Compile SDK is simply invalid. You cannot target something that you're not compiling against.
   
   On the other hand, having a Target SDK that is less than the Compile SDK is valid, but we saw no reason why someone would want to have a mismatch Target/Compile SDK. If they wanted to test against a newer API, then it's best to set the both the target and compile SDK.
   
   Having said that, this decision is by no means final. The stance that we took is "We'll make the change, release it, and if it becomes a problem, then we'll bring back the independent settings". So I'd like to understand your use case better. Perhaps expand on
   
   > ...you may need to use newer compile SDK due to the use of support libraries (e.g. appcompat)...
   
   Isn't these libraries independent of the compile SDK? Looking at the [android docs](https://developer.android.com/jetpack/androidx/versions) at a variety of different androidx packages, I don't ever recall (nor can I find anything that states you need a specific compileSdk) to use them.
   
   Kind regards,
   Norman


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org