Android build fails with AndroidManifest error

Build fails after applovin-max-sdk update (with previous version 11.11.2.4 of applovin sdk works just fine)

SEVERE: /tmp/job15312669569038257061/upload/AndroidManifest.xml Error:
	uses-sdk:targetSdkVersion 33 cannot be different than version android-TiramisuPrivacySandbox declared in library /tmp/.gradle/unpacked/com.applovin-applovin-sdk-12.0.0.aar/AndroidManifest.xml

Full log log.txt (21.6 KB)

bob version 1.4.7

Updated sdk dependency - https://github.com/HGPoint/defold-maxsdk/archive/refs/heads/feature/maxsdk-update.zip

Previous version - https://github.com/HGPoint/defold-maxsdk/archive/refs/tags/11.11.2.4.zip

What if you try with the latest version of bob?

I tried the new Bob, and it seems that the issue is not with Bob but with the server, judging by this log:

SEVERE: /tmp/job2203051106589191560/upload/AndroidManifest.xml Error:
        uses-sdk:targetSdkVersion 33 cannot be different than version android-TiramisuPrivacySandbox declared in library /tmp/.gradle/unpacked/com.applovin-applovin-sdk-12.0.0.aar/AndroidManifest.xml

Yes, same error with latest bob

In your game.project / Android, you likely have something like:
Screenshot 2023-11-24 at 11.05.44

What does app loving dictate for version?
The message you posted suggests that they differ:

targetSdkVersion 33 cannot be different than version android-TiramisuPrivacySandbox
declared in library
/tmp/.gradle/unpacked/com.applovin-applovin-sdk-12.0.0.aar/AndroidManifest.xml

We use these settings in our project
Screenshot 2023-11-24 153931

applovin sdk uses “android-TiramisuPrivacySandbox” as targetSdkVersion

Yes, but the question is, what is the value of the android-TiramisuPrivacySandbox. Because it seems to differ with your 33.

Devs from applovin confirm that there is a problem with this strange “android-TiramisuPrivacySandbox” variable, fix will be in next release. As a temporary solution they suggested to use overrideLibrary attribute in our manifest:

<uses-sdk
        android:minSdkVersion="{{android.minimum_sdk_version}}"
        android:targetSdkVersion="{{android.target_sdk_version}}"
        tools:overrideLibrary="com.applovin" />

however its not helping and build fails with the same error

Link to github issue

Applovin updated sdk to version 12.1.0, which has no longer target_sdk_version and it seems like problem has solved for now

2 Likes