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
Notice the error Minimum supported Gradle version is 5.4.1. Current version is 4.10.2
Press the 'fix and re-import` button
Build the project, notice it doesn't build reporting errors
Errors:
It looks like everything stems from not being able to find androidx.annotation.NonNull
com/example/JavaTest/JavaTestPlugin.java |
-- | --
error: cannot find symbol class NonNull |
error: package io.flutter.embedding.engine.plugins does not exist |
error: package io.flutter.plugin.common does not exist |
error: package io.flutter.plugin.common does not exist |
error: package io.flutter.plugin.common.MethodChannel does not exist |
error: package io.flutter.plugin.common.MethodChannel does not exist |
error: package io.flutter.plugin.common.PluginRegistry does not exist |
Notes:
I tried to run the refactor tool to migrate to androidx and it performed a no-op
Doctor:
[✓] Flutter (Channel master, v1.14.6-pre.237, on Mac OS X 10.14.6 18G2022, locale en-US)
• Flutter version 1.14.6-pre.237 at /Users/aaclarke/dev/flutter
• Framework revision 6dc3bfaa98 (3 days ago), 2020-02-07 18:28:02 -0800
• Engine revision 6158f03ef5
• Dart version 2.8.0 (build 2.8.0-dev.8.0 514a8d4c84)
Note: adding implementation 'androidx.annotation:annotation:1.1.0' to the build.gradle got me past this error, but the next import for embedding wasn't found after that.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
gaaclarke commentedon Feb 10, 2020
Note: adding
implementation 'androidx.annotation:annotation:1.1.0'to the build.gradle got me past this error, but the next import for embedding wasn't found after that.gaaclarke commentedon Feb 10, 2020
Note: I was compiling from
JavaTest/android/, compiling fromJavaTest/example/androidworks.dnfield commentedon Feb 10, 2020
This should be fixed by #50388
That said, we might be breaking other people who don't work with the current version - @blasten is that true?
blasten commentedon Feb 10, 2020
@dnfield I don't think so. #50388 is fixing a bug in the template, but the impact is reduced to:
flutter build aaron a plugin project.In most cases, people test plugins using the example app.
github-actions commentedon Aug 23, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.