# Getting error while flutter build appbundle

**URL:** <https://discuss.gradle.org/t/getting-error-while-flutter-build-appbundle/45460>\
**Category:** Help/Discuss\
**Created:** [April 24, 2023, 11:55am UTC](https://discuss.gradle.org/t/getting-error-while-flutter-build-appbundle/45460 "2023-04-24T11:55:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![iammanish1](https://avatars.discourse-cdn.com/v4/letter/i/e8c25b/32.png) [@iammanish1](https://discuss.gradle.org/u/iammanish1)\
**Post date:** [April 24, 2023, 11:55am UTC](https://discuss.gradle.org/t/getting-error-while-flutter-build-appbundle/45460/1 "2023-04-24T11:55:40Z")

</div>

```gradle
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':google_sign_in_android:compileDebugJavaWithJavac'.
> warning: source release 1.8 requires target release 1.8

* 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

```

Java version we use : jdk-11.0.17  
google\_sign\_in: ^5.4.0

Flutter version 3.7.4  
Dart version 2.19.2  
• DevTools version 2.20.1

getting error while running cmd flutter build appbundle

please help here

---

<div class="post-metadata">

**Author:** ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)\
**Post date:** [April 24, 2023, 9:20pm UTC](https://discuss.gradle.org/t/getting-error-while-flutter-build-appbundle/45460/2 "2023-04-24T21:20:15Z")

</div>

It is interesting that this fails, although it just displays the problem as warning.  
But actually, the warning is quite clear, isn’t it?  
You try to compile with `sourceCompatibility = JavaVersion.VERSION_1_8` and `targetCompatibility = JavaVersion.VERSION_1_7` or older and that cannot work, thus compilation fails.

---

<div class="post-metadata">

**Author:** ![iammanish1](https://avatars.discourse-cdn.com/v4/letter/i/e8c25b/32.png) [@iammanish1](https://discuss.gradle.org/u/iammanish1)\
**Post date:** [April 25, 2023, 5:02am UTC](https://discuss.gradle.org/t/getting-error-while-flutter-build-appbundle/45460/3 "2023-04-25T05:02:12Z")

</div>

tried with JAVA 11 in sourceCompatibility and targetCompatibility still same error is coming

---

<div class="post-metadata">

**Author:** ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)\
**Post date:** [April 25, 2023, 9:47am UTC](https://discuss.gradle.org/t/getting-error-while-flutter-build-appbundle/45460/4 "2023-04-25T09:47:54Z")

</div>

Then you probably did not set it correctly, for example setting it on the extension while it is overridden on the task.  
If you run with `--debug` you will see the compiler arguments used.
