v3rm0n / intercom_flutter

Flutter wrapper for Intercom libraries
95 stars 141 forks source link

Android: build issue 8.1.3 #463

Closed vcastillo92 closed 2 months ago

vcastillo92 commented 2 months ago

I'm getting a compilation error using intercom_flutter 8.1.3 and Flutter version 3.19.2, here's the error, any help would be appreciated

Thanks in advance

android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:129: error: cannot find symbol
      flutterEngine.getPlugins().add(new io.maido.intercom.IntercomFlutterPlugin());
                                                          ^
  symbol:   class IntercomFlutterPlugin
  location: package io.maido.intercom
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.
1 error

FAILURE: Build failed with an exception.

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

@vcastillo92 Please add the solution in case someone else is having the same issue.

ajoseerazo commented 1 month ago

@vcastillo92 could you add the solution for this issue? I'm having the same issue and don't find any solution

ajoseerazo commented 1 month ago

I could solve it. What worked for me was run

flutter clean
flutter pub get
flutter run