i was facing this issue while building the app bun...
# community-support
p
i was facing this issue while building the app bundle
v
Is there a question hidden somewhere? :-)
p
i was trying to run
flutter build appbundle
but faung the above error
@Vampire FYI flutter build appbundle Building with Flutter multidex support enabled.
Copy code
You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: <https://flutter.dev/go/flutter-gradle-plugin-apply>
You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: <https://flutter.dev/go/flutter-gradle-plugin-apply>
Font asset "CupertinoIcons.ttf" was tree-shaken, reducing it from 283452 to 2188 bytes (99.2% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app. Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 5216 bytes (99.7% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':stripe_android:compileReleaseJavaWithJavac'.
> error: invalid source release: 17
* 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 6s Running Gradle task 'bundleRelease'... 7.6s Gradle task bundleRelease failed with exit code 1
v
That doesn't change my question ;-)
You are posting many many text, including a pretty obvious and clear error message. But you do not say what your question is, if you even have one. You could ask about the error, about the warning, about anything else in that output, ... It is hard to guess for someone what you want to know if you do not ask a question
p
ok how to fix this error
Execution failed for task ':stripe_android:compileReleaseJavaWithJavac'.
> error: invalid source release: 17
v
You aret compiling with Java <17, but telling it your source is written in Java 17 syntax. Either use JVM toolchains to decouple the Java version you run Gradle with from the Java version used to build your code, or run Gradle with at least Java 17