How to fix the errors while building apk file to publish to google play on the flutter with Android Studio

kevinkang100 used Ask the Experts™
I published my app to google play and apple store yesterday but I failed build my app today.

Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
/Users/michaelkang/AndroidStudioProjects/bethany_app/android/app/src/main/java/io/flutter/plugins/ error: package com.github.droibit.flutter.plugins.customtabs does not exist
import com.github.droibit.flutter.plugins.customtabs.CustomTabsPlugin;
/Users/michaelkang/AndroidStudioProjects/bethany_app/android/app/src/main/java/io/flutter/plugins/ error: cannot find symbol
  symbol:   variable CustomTabsPlugin
  location: class GeneratedPluginRegistrant
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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

Finished with error: Gradle task assembleDebug failed with exit code 1

Open in new window

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018

If no one answers your question quickly...

Likely you'll have to open an issue ticket with the flutter GitHub project, for fastest + most correct answer.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial