How to prevent errors in the Java code of Flutter-related plugins#
You need to select the build.gradle in the demo directory to open it.
After resolving the build issues, modify the plugin code in this opened AS project;
if the plugin code is in the pub cache directory, just change the dependency to a local dependency to resolve it.