English 中文(简体)
pubpspect get failed when adding flutter_html lib in flutter
原标题:

I have tried to build app flutter_html: ^2.1.5" but I unable to build and getting below error in log.

 The current Flutter SDK version is 1.27.0-2.0.pre.1.

Because flutter_app depends on flutter_html >=2.1.0 which requires Flutter SDK version >=2.2.0, version solving failed.
pub get failed (1; Because flutter_app depends on flutter_html >=2.1.0 which requires Flutter SDK version >=2.2.0, version solving failed.)

can you suggest the way to clear this issue?


I have upgraded flutter version and migrated and having different issue.

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task  :app:checkDebugManifest  (type  CheckManifest ).
  - In plugin  com.android.build.gradle.api.AndroidBasePlugin  type  com.android.build.gradle.internal.tasks.CheckManifest  property  manifest  has @Input annotation used on property of type  File .

    Reason: A property of type  File  annotated with @Input cannot determine how to interpret the file.

    Possible solutions:
      1. Annotate with @InputFile for regular files.
      2. Annotate with @InputDirectory for directories.
      3. If you want to track the path, return File.absolutePath as a String and keep @Input.

    Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#incorrect_use_of_input_annotation for more details about this problem.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 11s
Exception: Gradle task assembleDebug failed with exit code 1
最佳回答

You need to upgrade your flutter SDK. Write flutter upgrade in terminal.

Or use an older version of flutter_html.

问题回答

Just add this to pubspec.yaml flutter_html: ^3.0.0-alpha.3.





相关问题
Flutter App cannot be installed on Android TV

I m building a Flutter app that should support Android TV and Mobile devices. Despite Google Play shows that it is supported, I cannot install app on my MiBox device. While trying to install it, both ...

Moving the icon button to the right causes rendering issues

I am trying to align the icon button to the right of the Text field, I tried the row which made the icon button not centered vertically and now I am trying out the Stack widget. Here is my code - ...

热门标签