You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Having this error compiling the project on Android:
android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:39: error: cannot access ViewTreeObserver
flutterEngine.getPlugins().add(new com.jrai.flutter_keyboard_visibility.FlutterKeyboardVisibilityPlugin());
^
class file for android.view.ViewTreeObserver not found
1 error
FAILURE: Build failed with an exception.
To Reproduce
Running project with Flutter 2.8 on Android.
Expected behavior
App compiles on Android.
Info (please complete the following information): flutter_keyboard_visibility version: 5.1.0
Reproducible on platforms (Android, iOS, etc): Android flutter doctor output:
[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.22000.376], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.7)
[√] Android Studio (version 2020.3)
[√] IntelliJ IDEA Community Edition (version 2021.3)
[√] VS Code (version 1.63.2)
[√] Connected device (4 available)
• No issues found!
The text was updated successfully, but these errors were encountered:
Hmm unfortunately this looks like its coming from the GeneratedPluginRegistrant which Flutter is in charge of creating and maintaining. I would try deleting that file, flutter clean, flutter pub get.
If that doesn't work I would open another issue on the Flutter repo.
Describe the bug
Having this error compiling the project on Android:
To Reproduce
Running project with Flutter 2.8 on Android.
Expected behavior
App compiles on Android.
Info (please complete the following information):
flutter_keyboard_visibility
version: 5.1.0Reproducible on platforms (Android, iOS, etc): Android
flutter doctor
output:[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.22000.376], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.7)
[√] Android Studio (version 2020.3)
[√] IntelliJ IDEA Community Edition (version 2021.3)
[√] VS Code (version 1.63.2)
[√] Connected device (4 available)
• No issues found!
The text was updated successfully, but these errors were encountered: