Android build failed (256) plugin.google.iap.billing.v2 Build: 2025.3721

When using the plugin.google.iap.billing.v2 plugin, this error occurs during assembly:

/private/var/folders/33/7kp6042n0f5d6j9gxxf8mkjr0000gn/T/CLtmpsN90uE/template/app/src/main/AndroidManifest.xml Error:
uses-sdk:minSdkVersion 15 cannot be smaller than version 21 declared in library [com.android.billingclient:billing:8.0.0] /Users/user/.gradle/caches/8.10.2/transforms/64a18c4f658a3ae9bdb87454b844df8f/transformed/jetified-billing-8.0.0/AndroidManifest.xml as the library might be using APIs not available in 15
Suggestion: use a compatible library with a minSdk of at most 15,
or increase this project’s minSdk version to at least 21,
or use tools:overrideLibrary=“com.android.billingclient” to force usage (may lead to runtime failures)

                FAILURE: Build failed with an exception.
                
                * What went wrong:
                Execution failed for task ':App:processReleaseMainManifest'.
                > Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 21 declared in library [com.android.billingclient:billing:8.0.0] /Users/user/.gradle/caches/8.10.2/transforms/64a18c4f658a3ae9bdb87454b844df8f/transformed/jetified-billing-8.0.0/AndroidManifest.xml as the library might be using APIs not available in 15
                  	Suggestion: use a compatible library with a minSdk of at most 15,
                  		or increase this project's minSdk version to at least 21,
                  		or use tools:overrideLibrary="com.android.billingclient" to force usage (may lead to runtime failures)
                
                * Try:
                > Run with --stacktrace option to get the stack trace.
                > Run with --info or --debug option to get more log output.
                > Run with --scan to get full insights.
                > Get more help at https://help.gradle.org.
                
                BUILD FAILED in 24s

Jul 23 10:37:13.673 Android build failed (256) after 28 seconds
Jul 23 10:37:14.096 ERROR: Build Failed: Error code: 256

Without it, everything is assembled ok.
I searched the forum, but I did not find a solution with this plugin, please help.

I just pushed an update to bump up min to 21 for billing for v2 for 2025.3721

3 Likes

Thank you very much, everything worked!