cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Set SAP MDK android build targetSDKVersion to meet Google Play's target API level requirement.

Girish_KR
Participant
0 Kudos
523

Hi,

We are facing an issue while trying to meet a Google Play deadline, which mandates to set the targetSDKVersion to 35. More details at https://developer.android.com/google/play/requirements/target-sdk.

MDK SDK Used: 25.6.0-002

Observation: 

Even though the below values are set in gradle.properties, the target SDK version in generated build is getting set to 34.

NS_DEFAULT_BUILD_TOOLS_VERSION=35.0.0
NS_DEFAULT_COMPILE_SDK_VERSION=35

After inspecting the android build, in the generated build below observation was found. Attached screenshot for reference.

<uses-sdk
android:minSdkVersion="26"
android:targetSdkVersion="34" />

Please help to implement this policy change.

Regards,

Girish

View Entire Topic
bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Try creating an app.gradle file in your mdkproject/App_Resources_Merge/Android folder and include the following in it

android {
    defaultConfig {
        targetSdkVersion 35
    }
}

This should override the MDK default.  Please be sure to fully test as this is not a combination we have tested at this time.

Girish_KR
Participant
0 Kudos

Hi Bill,

Thanks for the response.

The issue is resolved, we are further analyzing the application behaviour.

Girish_KR
Participant
0 Kudos

This is implemented.