-
-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error building example android app bundle #1546
Comments
+1 |
@VictorUvarov Can you confirm if the build successful after including this? |
The build is not successful after adding the dependency as an implementation |
Ok. Any other solution you found regarding this? |
I'm using previously it was working fine. I don't know What happened to its not working since last week getting below error. FAILURE: Build failed with an exception.
BUILD FAILED in 1m 55s |
@computerfriendlog2 You need to migrate to JDK 17. |
I'm running into the same issue as well |
You can try adding
to your release buildtype in gradle. Not smart for production builds since it'll disable obfuscation, but good enough for just the example app. |
It does get the build to work, but like you said, not very ideal for a production build... |
Don't know if this good practice, but I add this on android/app/build.gradle:
and add android/app/proguard-rules.pro with this :
|
@remonh87 Any ideas? |
add the following to your proguard files solves the issue. will document this in the troubleshoot settings of the app + readme -dontwarn com.stripe.android.pushProvisioning.PushProvisioningActivity$g
-dontwarn com.stripe.android.pushProvisioning.PushProvisioningActivityStarter$Args
-dontwarn com.stripe.android.pushProvisioning.PushProvisioningActivityStarter$Error
-dontwarn com.stripe.android.pushProvisioning.PushProvisioningActivityStarter
-dontwarn com.stripe.android.pushProvisioning.PushProvisioningEphemeralKeyProvider |
See: fb10f16 for how to implement |
* doc: fix #1532 broken link in readme * chore(release): publish packages - [email protected] * fix: #1512 add latest charge field to payment intent (Web only) * doc: fix #1488 add nscamerausagedescription to readme * BREAKING: rename ApplePayShippingContact to Platformpayshipping contact * doc: #1546 add proguard rules for push provisioning * fix: #1465 unknow result * doc: add klarna as return url for paymentsheet * fix #1560 * adjust github android workflow * chore(release): publish packages - [email protected] * chore(release): publish packages - [email protected] * chore(release): publish packages - [email protected] * chore(release): publish packages - [email protected] * chore(release): publish packages - [email protected] * chore: update changelogs --------- Co-authored-by: Remon <[email protected]> Co-authored-by: Jonas Bark <[email protected]>
I created the proguard-rules.pro file and it still has the same error
Error: FAILURE: Build failed with an exception.
|
@remonh87 should using the proguard-rules file solve this? My build.gradle:
|
use |
Describe the bug
Error building android app bundle. Missing classes
To Reproduce
Steps to reproduce the behavior:
flutter build appbundle
Expected behavior
The appbundle should build with no missing class errors
Smartphone / tablet
Additional context
Before adding to
android/app/build.gradle
I get the following errorand then I get another error
The text was updated successfully, but these errors were encountered: