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 faild #323

Closed
jaweii opened this issue Mar 9, 2020 · 5 comments
Closed

Build faild #323

jaweii opened this issue Mar 9, 2020 · 5 comments

Comments

@jaweii
Copy link

jaweii commented Mar 9, 2020

[+4896 ms] [+4960 ms] 
[  +13 ms]            Compiler message:
[   +1 ms] [   +2 ms] /C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/parse_server_sdk-1.0.24/lib/src/storage/core_store_sem_impl.dart:29:19: Error:
The method 'clear' isn't defined for the class 'Database'.
[   +1 ms] [        ]  - 'Database' is from 'package:sembast/src/api/v2/database.dart'
('/C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/sembast-2.3.0/lib/src/api/v2/database.dart').
[   +1 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'clear'.
[        ] [        ]     return _store.clear();
[        ] [        ]                   ^^^^^
[   +3 ms] [   +5 ms] /C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/parse_server_sdk-1.0.24/lib/src/storage/core_store_sem_impl.dart:34:19: Error:
The method 'containsKey' isn't defined for the class 'Database'.
[   +4 ms] [        ]  - 'Database' is from 'package:sembast/src/api/v2/database.dart'
('/C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/sembast-2.3.0/lib/src/api/v2/database.dart').
[   +7 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'containsKey'.
[  +10 ms] [        ]     return _store.containsKey(key);
[  +13 ms] [        ]                   ^^^^^^^^^^^
[   +1 ms] [        ] /C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/parse_server_sdk-1.0.24/lib/src/storage/core_store_sem_impl.dart:39:19: Error:
The method 'get' isn't defined for the class 'Database'.
[   +1 ms] [        ]  - 'Database' is from 'package:sembast/src/api/v2/database.dart'
('/C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/sembast-2.3.0/lib/src/api/v2/database.dart').
[   +1 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'get'.
[        ] [        ]     return _store.get(key);
[   +1 ms] [        ]                   ^^^
[        ] [        ] /C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/parse_server_sdk-1.0.24/lib/src/storage/core_store_sem_impl.dart:44:42: Error:
The method 'get' isn't defined for the class 'Database'.
[   +1 ms] [        ]  - 'Database' is from 'package:sembast/src/api/v2/database.dart'
('/C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/sembast-2.3.0/lib/src/api/v2/database.dart').
[   +1 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'get'.
[   +2 ms] [        ]     final bool storedItem = await _store.get(key);
[   +1 ms] [        ]                                          ^^^
[        ] [        ] /C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/parse_server_sdk-1.0.24/lib/src/storage/core_store_sem_impl.dart:50:44: Error:
The method 'get' isn't defined for the class 'Database'.
[   +1 ms] [        ]  - 'Database' is from 'package:sembast/src/api/v2/database.dart'
('/C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/sembast-2.3.0/lib/src/api/v2/database.dart').
[   +1 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'get'.
[        ] [        ]     final double storedItem = await _store.get(key);
[        ] [        ]                                            ^^^
[   +1 ms] [        ] /C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/parse_server_sdk-1.0.24/lib/src/storage/core_store_sem_impl.dart:56:41: Error:
The method 'get' isn't defined for the class 'Database'.
[   +1 ms] [        ]  - 'Database' is from 'package:sembast/src/api/v2/database.dart'
('/C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/sembast-2.3.0/lib/src/api/v2/database.dart').
[   +1 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'get'.
[   +1 ms] [        ]     final int storedItem = await _store.get(key);
[        ] [        ]                                         ^^^
[        ] [        ] /C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/parse_server_sdk-1.0.24/lib/src/storage/core_store_sem_impl.dart:62:44: Error:
The method 'get' isn't defined for the class 'Database'.
[   +2 ms] [        ]  - 'Database' is from 'package:sembast/src/api/v2/database.dart'
('/C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/sembast-2.3.0/lib/src/api/v2/database.dart').
[   +1 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'get'.
[        ] [        ]     final String storedItem = await _store.get(key);
[        ] [        ]                                            ^^^
[        ] [        ] /C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/parse_server_sdk-1.0.24/lib/src/storage/core_store_sem_impl.dart:68:50: Error:
The method 'get' isn't defined for the class 'Database'.
[        ] [        ]  - 'Database' is from 'package:sembast/src/api/v2/database.dart'
('/C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/sembast-2.3.0/lib/src/api/v2/database.dart').
[        ] [        ] Try correcting the name to the name of an existing method, or defining a method named 'get'.
[        ] [        ]     final List<String> storedItem = await _store.get(key);
[        ] [        ]                                                  ^^^
[        ] [   +2 ms] /C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/parse_server_sdk-1.0.24/lib/src/storage/core_store_sem_impl.dart:74:19: Error:
The method 'delete' isn't defined for the class 'Database'.
[  +13 ms] [        ]  - 'Database' is from 'package:sembast/src/api/v2/database.dart'
('/C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/sembast-2.3.0/lib/src/api/v2/database.dart').
[   +2 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'delete'.
[   +3 ms] [        ]     return _store.delete(key);
[   +3 ms] [        ]                   ^^^^^^
[        ] [        ] /C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/parse_server_sdk-1.0.24/lib/src/storage/core_store_sem_impl.dart:79:19: Error:
The method 'put' isn't defined for the class 'Database'.
[   +1 ms] [        ]  - 'Database' is from 'package:sembast/src/api/v2/database.dart'
('/C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/sembast-2.3.0/lib/src/api/v2/database.dart').
[   +2 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'put'.
[   +7 ms] [        ]     return _store.put(value, key);
[   +1 ms] [        ]                   ^^^
[   +3 ms] [        ] /C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/parse_server_sdk-1.0.24/lib/src/storage/core_store_sem_impl.dart:84:19: Error:
The method 'put' isn't defined for the class 'Database'.
[   +4 ms] [        ]  - 'Database' is from 'package:sembast/src/api/v2/database.dart'
('/C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/sembast-2.3.0/lib/src/api/v2/database.dart').
[  +12 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'put'.
[   +1 ms] [        ]     return _store.put(value, key);
[   +2 ms] [        ]                   ^^^
[   +5 ms] [        ] /C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/parse_server_sdk-1.0.24/lib/src/storage/core_store_sem_impl.dart:89:19: Error:
The method 'put' isn't defined for the class 'Database'.
[   +5 ms] [        ]  - 'Database' is from 'package:sembast/src/api/v2/database.dart'
('/C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/sembast-2.3.0/lib/src/api/v2/database.dart').
[   +4 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'put'.
[  +16 ms] [        ]     return _store.put(value, key);
[  +14 ms] [        ]                   ^^^
[  +47 ms] [        ] /C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/parse_server_sdk-1.0.24/lib/src/storage/core_store_sem_impl.dart:94:19: Error:
The method 'put' isn't defined for the class 'Database'.
[  +47 ms] [        ]  - 'Database' is from 'package:sembast/src/api/v2/database.dart'
('/C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/sembast-2.3.0/lib/src/api/v2/database.dart').
[  +51 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'put'.
[  +37 ms] [        ]     return _store.put(value, key);
[  +13 ms] [        ]                   ^^^
[  +38 ms] [   +1 ms] /C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/parse_server_sdk-1.0.24/lib/src/storage/core_store_sem_impl.dart:99:19: Error:
The method 'put' isn't defined for the class 'Database'.
[  +19 ms] [        ]  - 'Database' is from 'package:sembast/src/api/v2/database.dart'
('/C:/flutter/.pub-cache/hosted/pub.flutter-io.cn/sembast-2.3.0/lib/src/api/v2/database.dart').
[  +23 ms] [        ] Try correcting the name to the name of an existing method, or defining a method named 'put'.
[  +42 ms] [        ]     return _store.put(values, key);
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.12.13+hotfix.3, on Microsoft Windows [Version 10.0.17134.1], locale zh-CN)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[!] Android Studio (version 3.1)
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
[√] Connected device (1 available)

! Doctor found issues in 1 category.
@phillwiggins
Copy link
Member

phillwiggins commented Mar 9, 2020

Hey

Are you directly importing v1.0.25 from GitHub? If so, please point it to 1.0.26, or pull the release version of 1.0.25 from pub get.

I'm confident this issue isn't live and was somehow added to 1.0.25 after release. The issue is an updated version of Sembast for local cache. This issue has been resolved and will be released shortly

@jaweii
Copy link
Author

jaweii commented Mar 9, 2020

@phillwiggins I have point it to 1.0.25 from pub get, but there is stille the error.
Can you give me a example how to point it to 1.0.26 from GitHub please?

 # I don't know how to spacify the version
  parse_server_sdk: 
    git:
      url: git://github.com/parse-community/Parse-SDK-Flutter.git

@phillwiggins
Copy link
Member

parse_server_sdk:
git:
url: git://github.com/phillwiggins/flutter_parse_sdk.git
ref: release/1.0.26

I will release this version today at some point. Let me know if the issue persists.

@phillwiggins
Copy link
Member

phillwiggins commented Mar 9, 2020 via email

@jaweii
Copy link
Author

jaweii commented Mar 9, 2020

Solved.
Thank you!

@jaweii jaweii closed this as completed Mar 9, 2020
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

2 participants