Describe the bug
Hi! I am having a bug trying to build an appbundle.
I ran flutter clean && flutter build appbundle..
Before we had a different version of the package (flutter_stripe: ^3.2.0), but when I tried uploading an appbundle for production in play console I got the error that the package was outdated.
I keep getting errors. The one I am stuck on at the moment is:
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
* Where:
Script '/Users/victorkennedy/Developer/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1151
* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command '/Users/victorkennedy/Developer/flutter/bin/flutter'' finished with non-zero exit value 1
* 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 35s
This is my pubspec.yaml (stripe packages at the end):
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
I have also fixed the theme things stated in the package docs.
values-night/styles.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="Theme.MaterialComponents">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
values/styles.xml :
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="Theme.MaterialComponents">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
I do not know what is wrong. I have been trying multiple ways to reproduce:
Describe the bug Hi! I am having a bug trying to build an appbundle.
I ran
flutter clean && flutter build appbundle.
.Before we had a different version of the package (flutter_stripe: ^3.2.0), but when I tried uploading an appbundle for production in play console I got the error that the package was outdated.
I keep getting errors. The one I am stuck on at the moment is:
This is my pubspec.yaml (stripe packages at the end):
build.gradle (android folder level):
build.gradle (app level):
gradle-wrapper.properties:
I have also fixed the theme things stated in the package docs.
values-night/styles.xml:
values/styles.xml :
I do not know what is wrong. I have been trying multiple ways to reproduce:
To Reproduce Steps to reproduce the behavior: