Skip to content
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

admob_flutter Flutter package causing error in Debug mode only #281

Open
Oomeeth-iWhiz opened this issue Jun 3, 2021 · 1 comment
Open

Comments

@Oomeeth-iWhiz
Copy link

I have been using the admob_flutter package. I was able to successfully debug and run with this package installed. However, it suddenly gives me this error now:

FAILURE: Build failed with an exception.

* Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1035

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1

The project is able to build and display ads successfully. The error comes up when I'm running debug mode. I have tried:

  • running flutter clean and flutter pub get.
  • Deleting the .gradle folder.
  • Deleting the current instance of the Flutter SDK and installing a new instance of the same verison.
  • Reinstalling the package and downgrading.

None of the above steps have helped. What could be the issue?

@janithlahirukariyawasam

Solution 1:
Upgrade the provider version from ^3.X.X to provider version 4 or above in pubspec.yaml file.
provider: ^4.0.0

Solution 2:
Switch to the stable flutter channel.
flutter channel stable

Solution 3:
If all mentioned solutions didn’t work then try downgrading your flutter version.
flutter downgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants