Describe the bug
Error building android app bundle. Missing classes
To Reproduce
Steps to reproduce the behavior:
- Go to example app
- Add stripe publishable key
- run
flutter build appbundle
Expected behavior
The appbundle should build with no missing class errors
Smartphone / tablet
- Device: N/A
- OS: Android 13
- Package version: 9.6.0
- Flutter version 3.16.3
Additional context
Before adding to android/app/build.gradle I get the following error
implementation 'com.stripe:stripe-android-issuing-push-provisioning:1.1.0'
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in .../build/app/outputs/mapping/devRelease/missing_rules.txt.
ERROR: R8: Missing class com.stripe.android.pushProvisioning.PushProvisioningActivity$g (referenced from: void com.reactnativestripesdk.pushprovisioning.PushProvisioningProxy$createActivityEventListener$listener$1.onActivityResult(android.app.Activity, int, int, android.content.Intent))
Missing class com.stripe.android.pushProvisioning.PushProvisioningActivityStarter$Args (referenced from: void com.reactnativestripesdk.pushprovisioning.DefaultPushProvisioningProxy.beginPushProvisioning(android.app.Activity, java.lang.String, com.reactnativestripesdk.pushprovisioning.EphemeralKeyProvider))
Missing class com.stripe.android.pushProvisioning.PushProvisioningActivityStarter$Error (referenced from: void com.reactnativestripesdk.pushprovisioning.PushProvisioningProxy$createActivityEventListener$listener$1.onActivityResult(android.app.Activity, int, int, android.content.Intent))
Missing class com.stripe.android.pushProvisioning.PushProvisioningActivityStarter (referenced from: void com.reactnativestripesdk.pushprovisioning.DefaultPushProvisioningProxy.beginPushProvisioning(android.app.Activity, java.lang.String, com.reactnativestripesdk.pushprovisioning.EphemeralKeyProvider))
Missing class com.stripe.android.pushProvisioning.PushProvisioningEphemeralKeyProvider (referenced from: void com.reactnativestripesdk.pushprovisioning.DefaultPushProvisioningProxy.beginPushProvisioning(android.app.Activity, java.lang.String, com.reactnativestripesdk.pushprovisioning.EphemeralKeyProvider) and 1 other context)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:minifyDevReleaseWithR8'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
> Compilation failed to complete
* 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 2m 29s
and then I get another error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkReleaseDuplicateClasses'.
> Could not resolve all files for configuration ':app:releaseRuntimeClasspath'.
> Could not find com.google.android.gms:play-services-tapandpay:17.1.2.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-tapandpay/17.1.2/play-services-tapandpay-17.1.2.pom
- https://repo.maven.apache.org/maven2/com/google/android/gms/play-services-tapandpay/17.1.2/play-services-tapandpay-17.1.2.pom
- https://storage.googleapis.com/download.flutter.io/com/google/android/gms/play-services-tapandpay/17.1.2/play-services-tapandpay-17.1.2.pom
Required by:
project :app > com.stripe:stripe-android-issuing-push-provisioning:1.1.0
* 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 7s
Describe the bug
Error building android app bundle. Missing classes
To Reproduce
Steps to reproduce the behavior:
flutter build appbundleExpected behavior
The appbundle should build with no missing class errors
Smartphone / tablet
Additional context
Before adding to
android/app/build.gradleI get the following errorand then I get another error