Issue
Its my first attempt to create a flutter plugin, I created flutter plugin project from android studio and its running fine, when I tried to add platform specific code for android I stuck in some issues, in the same project platform specific code editing is almost dead (no linting). I imported MyPluginProject/android in android studio and there are also some issues,
Unresolved reference: io
Here is output of flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.7.8+hotfix.2, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[✓] Android Studio (version 3.4)
[✓] Connected device (1 available)
• No issues found!
Solution
Solved the problem by following these steps from this issue on github.
- Delete the .idea folder in the project (do not know if is needed but just to be sure)
- In Android Studio click on
Open an existing Android studio project
and select the folderyour_plugin/example/android
(It's important to openyour_plugin/example/android
first and thenyour_plugin
).
Answered By - Shahzad Akram
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.