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
I guess this is because of the new flutter updates.
How do I fix it?
The pluginsget_version, local_auth` use a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
Launching lib\main.dart on sdk gphone x86 64 arm64 in debug mode...
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/builder.dart:326:49: Error: The getter 'children' isn't defined for the class 'InlineSpan'.
'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('../../../Documents/flutter/packages/flutter/lib/src/painting/inline_span.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'children'.
List children = previous.text.children != null
^^^^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/builder.dart:327:41: Error: The getter 'children' isn't defined for the class 'InlineSpan'.
'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('../../../Documents/flutter/packages/flutter/lib/src/painting/inline_span.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'children'.
? new List.from(previous.text.children)
^^^^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:51:30: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
assert(theme?.textTheme?.body1?.fontSize != null);
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:54:26: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
p: theme.textTheme.body1,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:58:35: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
fontSize: theme.textTheme.body1.fontSize * 0.85
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:60:27: Error: The getter 'headline' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline'.
h1: theme.textTheme.headline,
^^^^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:61:27: Error: The getter 'title' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'title'.
h2: theme.textTheme.title,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:62:27: Error: The getter 'subhead' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'subhead'.
h3: theme.textTheme.subhead,
^^^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:63:27: Error: The getter 'body2' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body2'.
h4: theme.textTheme.body2,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:64:27: Error: The getter 'body2' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body2'.
h5: theme.textTheme.body2,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:65:27: Error: The getter 'body2' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body2'.
h6: theme.textTheme.body2,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:68:35: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
blockquote: theme.textTheme.body1,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:69:28: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
img: theme.textTheme.body1,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:97:26: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
p: theme.textTheme.body1,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:101:35: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
fontSize: theme.textTheme.body1.fontSize * 0.85
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:103:27: Error: The getter 'display3' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'display3'.
h1: theme.textTheme.display3,
^^^^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:104:27: Error: The getter 'display2' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'display2'.
h2: theme.textTheme.display2,
^^^^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:105:27: Error: The getter 'display1' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'display1'.
h3: theme.textTheme.display1,
^^^^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:106:27: Error: The getter 'headline' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline'.
h4: theme.textTheme.headline,
^^^^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:107:27: Error: The getter 'title' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'title'.
h5: theme.textTheme.title,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:108:27: Error: The getter 'subhead' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'subhead'.
h6: theme.textTheme.subhead,
^^^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:111:35: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
blockquote: theme.textTheme.body1,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:112:28: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
img: theme.textTheme.body1,
^^^^^
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\Users\user\Documents\flutter\bin\flutter.bat'' finished with non-zero exit value 1
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.
I guess this is because of the new flutter updates.
How do I fix it?
The plugins
get_version, local_auth` use a deprecated version of the Android embedding.To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
Launching lib\main.dart on sdk gphone x86 64 arm64 in debug mode...
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/builder.dart:326:49: Error: The getter 'children' isn't defined for the class 'InlineSpan'.
'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('../../../Documents/flutter/packages/flutter/lib/src/painting/inline_span.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'children'.
List children = previous.text.children != null
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/builder.dart:327:41: Error: The getter 'children' isn't defined for the class 'InlineSpan'.
'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('../../../Documents/flutter/packages/flutter/lib/src/painting/inline_span.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'children'.
? new List.from(previous.text.children)
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:51:30: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
assert(theme?.textTheme?.body1?.fontSize != null);
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:54:26: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
p: theme.textTheme.body1,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:58:35: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
fontSize: theme.textTheme.body1.fontSize * 0.85
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:60:27: Error: The getter 'headline' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline'.
h1: theme.textTheme.headline,
^^^^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:61:27: Error: The getter 'title' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'title'.
h2: theme.textTheme.title,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:62:27: Error: The getter 'subhead' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'subhead'.
h3: theme.textTheme.subhead,
^^^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:63:27: Error: The getter 'body2' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body2'.
h4: theme.textTheme.body2,
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:64:27: Error: The getter 'body2' isn't defined for the class 'TextTheme'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body2'.
h5: theme.textTheme.body2,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:65:27: Error: The getter 'body2' isn't defined for the class 'TextTheme'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body2'.
h6: theme.textTheme.body2,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:68:35: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
blockquote: theme.textTheme.body1,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:69:28: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
img: theme.textTheme.body1,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:97:26: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
p: theme.textTheme.body1,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:101:35: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
fontSize: theme.textTheme.body1.fontSize * 0.85
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:103:27: Error: The getter 'display3' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'display3'.
h1: theme.textTheme.display3,
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:104:27: Error: The getter 'display2' isn't defined for the class 'TextTheme'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'display2'.
h2: theme.textTheme.display2,
^^^^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:105:27: Error: The getter 'display1' isn't defined for the class 'TextTheme'.
'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../../Documents/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'display1'.
h3: theme.textTheme.display1,
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:106:27: Error: The getter 'headline' isn't defined for the class 'TextTheme'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline'.
h4: theme.textTheme.headline,
^^^^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:107:27: Error: The getter 'title' isn't defined for the class 'TextTheme'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'title'.
h5: theme.textTheme.title,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:108:27: Error: The getter 'subhead' isn't defined for the class 'TextTheme'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'subhead'.
h6: theme.textTheme.subhead,
^^^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:111:35: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
blockquote: theme.textTheme.body1,
^^^^^
../../../Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_markdown-0.2.0/lib/src/style_sheet.dart:112:28: Error: The getter 'body1' isn't defined for the class 'TextTheme'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
img: theme.textTheme.body1,
^^^^^
FAILURE: Build failed with an exception.
Where:
Script 'C:\Users\user\Documents\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1005
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
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 51s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
`
The text was updated successfully, but these errors were encountered: