flutter_keyboard_visibility
flutter_keyboard_visibility copied to clipboard
Package does not exists - android
I am facing this issue today
/Users/aravindhkumar/Projects/work_test/testapp/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:5: error: cannot find symbol
import com.github.adee42.keyboardvisibility.KeyboardVisibilityPlugin;
^
symbol: class KeyboardVisibilityPlugin
location: package com.github.adee42.keyboardvisibility
/Users/aravindhkumar/Projects/work_test/testapp/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:19: error: cannot find symbol
KeyboardVisibilityPlugin.registerWith(registry.registrarFor("com.github.adee42.keyboardvisibility.KeyboardVisibilityPlugin"));
^
symbol: variable KeyboardVisibilityPlugin
location: class GeneratedPluginRegistrant
can anyone help me to solve with this? I need to deploy the app to play store?
How did you register the plugin? Did you register it in the pubspec.yaml file and ran the "flutter packages get" command as described in the installation procedure?
It works if I use
keyboard_visibility: 0.5.1
but when using
keyboard_visibility: ^0.5.1
It causes the error described.
so the problem may be with version 0.5.2
This is strange as the java file wasn't changed between version 0.5.1 and 0.5.2. I suspect the 0.5.2 version of the plugin in your cache might be broken. Can you delete it and try to download it again?
Tried By creating new Flutter Project and it works till I add the plugin, when plugin package gets added then the error shows up. currently using v-0.5.1 to get working without errors.
This won't help as flutter caches the plugins. Can you just delete the following directory and then run the "flutter get packages" command in your project?
<FLUTTER-DIR>/.pub-cache/hosted/pub.dartlang.org/keyboard_visibility-0.5.2
I just uploaded an updated version of the plugin (0.5.3). Can you check if it works with this one?
Ok, will check to update.