Link to home
Start Free TrialLog in
Avatar of kevinkang100
kevinkang100

asked on

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

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/GeneratedPluginRegistrant.java:4: 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/GeneratedPluginRegistrant.java:18: error: cannot find symbol
    CustomTabsPlugin.registerWith(registry.registrarFor("com.github.droibit.flutter.plugins.customtabs.CustomTabsPlugin"));
    ^
  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 https://help.gradle.org

BUILD FAILED in 2s
Finished with error: Gradle task assembleDebug failed with exit code 1

Open in new window

Avatar of David Favor
David Favor
Flag of United States of America image

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.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.