cyril23 opened a new issue, #1729: URL: https://github.com/apache/cordova-android/issues/1729
# Bug Report ## Problem ### What is expected to happen? - Google Play Console recognizes apps built via `<preference name="android-targetSdkVersion" value="34" />` as target SDK 34 (Android 14) ### What does actually happen? - Google Play Console recognizes my app which includes `<preference name="android-targetSdkVersion" value="34" />` within the config.xml as target SDK 33 instead of 34. I've build version 18.26.0 today, see full config.xml and build log below.  - I already saw the same problem in my older release 18.25.4 from a week ago, too, which already included the same config.xml: [image](https://github.com/user-attachments/assets/d3dac490-430d-46ac-bc88-d4c7b5ecbad0) - so it is not a thing which just goes away after waiting a few days. - The problem I have is that I need to use SDK 34 starting 31. August 2024 to publish any app updates, see https://support.google.com/googleplay/android-developer/answer/11926878 ## Information - config.xml: [config.xml.txt](https://github.com/user-attachments/files/16456693/config.xml.txt) - I hope my `minSdkVersion` is not set too low? ``` <preference name="android-minSdkVersion" value="22" /> <preference name="android-targetSdkVersion" value="34" /> ``` - I've checked https://github.com/apache/cordova-android/issues/1178 and am not sure what else I can do. I also do `cordova platform remove android` before doing `cordova platform add android@13.0.0` in my build script. Full build script see below - according to my Cordova build log, SDK 34 is used apparently: > Using cordova-fetch for cordova-android@13.0.0 > Adding android project... > Creating Cordova project for the Android platform: > Path: platforms/android > Package: de.yyy.XXX.myapp > Name: my-app > Activity: MainActivity > Android Target SDK: android-34 > Android Compile SDK: 34 > Subproject Path: CordovaLib > Subproject Path: app > Android project created with cordova-android@13.0.0 - see full build log, resulting from cordova build script (see below): [buildlog.native.release.20240801-142136.log](https://github.com/user-attachments/files/16457005/buildlog.native.release.20240801-142136.log) ### Command or Code - cordova build script: [cordova-buildscript.txt](https://github.com/user-attachments/files/16456747/cordova-buildscript.txt) - full log see above ### Environment, Platform, Device - building on Mac mini 2018, macOS Sonoma 14.1.2, see [image](https://github.com/user-attachments/assets/16860df7-f842-4ba8-b442-dc054164fc16) ### Version information - Cordova CLI: > cordova --version > 12.0.0 (cordova-lib@12.0.1) - Platform: `cordova platform add android@13.0.0` - Plugins: see config.xml above - Operating System: see above - Android Studio: Android Studio Dolphin, 2021.3.1 Patch 1, see [image](https://github.com/user-attachments/assets/49f9c19e-c89b-48e1-af25-3a25a7ced2f5). My Android SDK settings within Android Studio: see [image](https://github.com/user-attachments/assets/bbda8697-eacb-47ec-9c35-e053c7f3004e) and [image](https://github.com/user-attachments/assets/974acf1a-f7ef-434f-908c-7adb47a2371f) - Xcode: 15.2 (15C500b), see [image](https://github.com/user-attachments/assets/ae8c3c29-da49-4192-9f93-399393eff356) ## Checklist - [x] I searched for existing GitHub issues - [x] I updated all Cordova tooling to most recent version - [x] I included all the necessary information above ## Hints - in file `platforms\android\app\build\outputs\logs\manifest-merger-debug-report.txt` I can see this: ``` MERGED from [com.huawei.hms:ucs-common:1.0.3.323] /Users/xx/.gradle/caches/transforms-4/fca4ef79003ed3d48602d89c9c27e186/transformed/jetified-ucs-common-1.0.3.323/AndroidManifest.xml:5:5-7:41 tools:overrideLibrary ADDED from [com.huawei.hms:device:6.5.0.300] /Users/xx/.gradle/caches/transforms-4/0b74e76dedf911529828956725343c5f/transformed/jetified-device-6.5.0.300/AndroidManifest.xml:9:9-58 android:targetSdkVersion INJECTED from /Users/xx/Desktop/cordova/myapp.native.20240801-154436/platforms/android/app/src/main/AndroidManifest.xml android:minSdkVersion INJECTED from /Users/xx/Desktop/cordova/myapp.native.20240801-154436/platforms/android/app/src/main/AndroidManifest.xml uses-permission#android.permission.WAKE_LOCK ADDED from [com.transistorsoft:tslocationmanager:3.5.4] /Users/xx/.gradle/caches/transforms-4/d18416e1d05ee88a7c27b8d8f1508082/transformed/jetified-tslocationmanager-3.5.4/AndroidManifest.xml:7:5-68 ``` - in `platforms\android\CordovaLib\build\outputs\logs\manifest-merger-debug-report.txt` I see something similar: [manifest-merger-blame-debug-report.txt](https://github.com/user-attachments/files/16457746/manifest-merger-blame-debug-report.txt) - but in `platforms\android\app\src\main\AndroidManifest.xml` I cannot find any `targetSdkVersion`, see [AndroidManifext.xml.txt](https://github.com/user-attachments/files/16457701/AndroidManifext.xml.txt) - strangely in `platforms\android\app\build\intermediates\merged_manifest\debug\processDebugMainManifest\AndroidManifest.xml` it looks like something was overriding or "injecting" another targetSdkVersion, and therefore I get a 33 instead of 34 here (see [processDebugMainManifest_AndroidManifest.xml.txt](https://github.com/user-attachments/files/16457852/processDebugMainManifest_AndroidManifest.xml.txt)): ``` android:versionCode="1182600" android:versionName="18.26.0" > <uses-sdk android:minSdkVersion="22" android:targetSdkVersion="33" /> ``` -- 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-unsubscr...@cordova.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org