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

   There is
   
   ```xml
   <preference name="android-targetSdkVersion" value="28" />
   ```
   
   in your android's `<platform>` block. That's what's overriding the 
SDK_VERSION in the gradle config and causing the app to target & compile using 
SDK 28.
   
   I'd recommend removing it to let it default to cordova-android default, 
which on version 11.x is API 32.
   
   If there is a need to target API 31 for whatever reason, then I'd suggest 
doing:
   
   ```xml
   <preference name="android-targetSdkVersion" value="31" />
   <preference name="android-compileSdkVersion" value="32" />
   ```
   
   This is so that the code will still compile using API 32, but your app will 
target API 31.
   
   Note that targeting API 33 is not supported on cordova-android@11 (may or 
may not work, API 33 support is coming in our next release)


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to