Skip to content
New issue

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

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

Already on GitHub? # to your account

Build fails on Flutter v1.17+ #23

Open
royarg02 opened this issue Jun 2, 2020 · 1 comment
Open

Build fails on Flutter v1.17+ #23

royarg02 opened this issue Jun 2, 2020 · 1 comment
Assignees
Labels
crash Build crashes or fails enhancement New feature or request pre-release This issue relates with the pre-release version v1.0+ This issue relates with version v1.0.x

Comments

@royarg02
Copy link
Owner

royarg02 commented Jun 2, 2020

Running flutter run on v1.0.3 results in compilation error:

Compiler message:
/home/anurag/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_charts-1.0.0-beta.4/lib/src/common/user_interaction/t
ooltip.dart:312:32: Error: Constant evaluation error:
    _painter.getLocation(const Offset(null, null));                     
                               ^                                        
org-dartlang-sdk:///flutter/lib/ui/geometry.dart:16:9: Context: This assertion failed.
  const OffsetBase(double dx, double dy)                                
        ^                                                               
                                                                        
Compiler message:                                                       
/home/anurag/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_charts-1.0.0-beta.4/lib/src/common/user_interaction/tooltip.dart:312:32: Error: Constant evaluation error:
    _painter.getLocation(const Offset(null, null));                     
                               ^                                        
org-dartlang-sdk:///flutter/lib/ui/geometry.dart:16:9: Context: This assertion failed.
  const OffsetBase(double dx, double dy)                                
        ^                                                               
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.                                                           
                                                                        
FAILURE: Build failed with an exception.                                
                                                                        
* Where:                                                                
Script '/home/anurag/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 882
                                                                        
* What went wrong:                                                      
Execution failed for task ':app:compileFlutterBuildDebug'.              
> Process 'command '/home/anurag/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 19s

The issue seems to be related to syncfusion_flutter_charts package:
https://github.com/RoyARG02/soil_moisture_app/blob/fef3e73b2a24079817ca77b7aecf883b4a0bed5c/pubspec.yaml#L13
Considering that the app is using a beta version of the package. We need to either:

  • use a recent version of the above package, or
  • look for some other package for charting.

A viable alternative could be the charts_flutter package.

@royarg02 royarg02 self-assigned this Jun 2, 2020
@royarg02 royarg02 added bug Something isn't working enhancement New feature or request crash Build crashes or fails stable This issue relates with the stable version v1.0+ This issue relates with version v1.0.x and removed bug Something isn't working labels Jun 2, 2020
royarg02 added a commit that referenced this issue Jun 2, 2020
Add copyright notice before GPLv3 license.

Version v1.0.3 cannot be built on Flutter v1.17+ due to outdated
dependencies. The README has been updated highlighting the issue.

More info at: #23
@royarg02 royarg02 added the pre-release This issue relates with the pre-release version label Jun 11, 2020
@royarg02
Copy link
Owner Author

Issue has been fixed on the stable release(v1.1.0) as of commit 50c63f1.

@royarg02 royarg02 removed the stable This issue relates with the stable version label Jul 25, 2020
@royarg02 royarg02 pinned this issue Dec 2, 2020
@royarg02 royarg02 unpinned this issue Dec 2, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
crash Build crashes or fails enhancement New feature or request pre-release This issue relates with the pre-release version v1.0+ This issue relates with version v1.0.x
Projects
None yet
Development

No branches or pull requests

1 participant