Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error with recent Flutter #17

Open
Tahaan opened this issue Mar 3, 2021 · 6 comments
Open

Build error with recent Flutter #17

Tahaan opened this issue Mar 3, 2021 · 6 comments

Comments

@Tahaan
Copy link
Contributor

Tahaan commented Mar 3, 2021

Running Gradle task 'assembleDebug'...
/data/dev/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_candlesticks-0.1.4/lib/flutter_candlesticks.dart:190:57: Error: The getter 'text' isn't defined for the class 'InlineSpan'.

  • 'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('/data/dev/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 'text'.
    width = size.width - gridLineTextPainters[0].text.text.length * 6;
    ^^^^

FAILURE: Build failed with an exception.

  • Where:
    Script '/data/dev/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 991

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/data/dev/flutter/bin/flutter'' 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.

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

BUILD FAILED in 10s
Exception: Gradle task assembleDebug failed with exit code 1

Tahaan added a commit to Tahaan/flutter-candlesticks that referenced this issue Mar 3, 2021
@Abinash-bapu123
Copy link

Abinash-bapu123 commented Mar 10, 2021

I also have the same issue

/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_candlesticks-0.1.4/lib/flutter_candlesticks.dart:190:57: Error: The getter 'text' isn't defined for the class 'InlineSpan'.

  • 'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('/C:/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 'text'.
    width = size.width - gridLineTextPainters[0].text.text.length * 6;
    ^^^^
    3

FAILURE: Build failed with an exception.

  • Where:
    Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 991

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\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.

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

BUILD FAILED in 33s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

@carlosmoretti
Copy link

still getting same issue with flutter 2.1.0-13-0.pre.194..

/G:/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' ('/G:/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
    ^^^^^^^^
    /G:/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' ('/G:/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)
    ^^^^^^^^
    2

FAILURE: Build failed with an exception.

@quangcv1
Copy link

Launching lib\main.dart on sdk gphone x86 in debug mode...
Running Gradle task 'assembleDebug'...
/D:/Programs/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_candlesticks-0.1.4/lib/flutter_candlesticks.dart:191:57: Error: The getter 'text' isn't defined for the class 'InlineSpan'.

  • 'InlineSpan' is from 'package:flutter/src/painting/inline_span.dart' ('/D:/Programs/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 'text'.
    width = size.width - gridLineTextPainters[0].text.text.length * 6;
    ^^^^

FAILURE: Build failed with an exception.

  • Where:
    Script 'D:\Programs\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 991

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'D:\Programs\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.

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

BUILD FAILED in 13s
Exception: Gradle task assembleDebug failed with exit code 1

FahriBilici added a commit to FahriBilici/flutter-candlesticks that referenced this issue Mar 29, 2021
@CodePhilanthropist
Copy link

Did you guys manage to fix this issue?

trentpiercy added a commit that referenced this issue May 12, 2021
@ParthPahuja101
Copy link

Still facing same issue, you guys got any fix?

@user2745
Copy link

user2745 commented Jul 5, 2021

👋🏿 I also have this issue

Someone needs to maintain this package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants