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

ToStringDeep() isn't defined for the class 'PlatformException' with last update #30381

Closed
AlpenYeti opened this issue Apr 2, 2019 · 10 comments
Closed
Labels
waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@AlpenYeti
Copy link

AlpenYeti commented Apr 2, 2019

Steps to Reproduce

Error thrown on Gradle task 'assembleDebug' when run using Android Studio play button.

Logs

Launching lib/main.dart on E5823 in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...

Compiler message:
org-dartlang-debug:synthetic_debug_expression:1:1: Error: Method not found: 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: The method 'toStringDeep' isn't defined for the class 'PlatformException'.
 - 'PlatformException' is from 'package:flutter/src/services/message_codec.dart' ('file:///home/alpenyeti/development/flutter/packages/flutter/lib/src/services/message_codec.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: Method not found: 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: The method 'toStringDeep' isn't defined for the class 'PlatformException'.
 - 'PlatformException' is from 'package:flutter/src/services/message_codec.dart' ('file:///home/alpenyeti/development/flutter/packages/flutter/lib/src/services/message_codec.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: Method not found: 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: The method 'toStringDeep' isn't defined for the class 'PlatformException'.
 - 'PlatformException' is from 'package:flutter/src/services/message_codec.dart' ('file:///home/alpenyeti/development/flutter/packages/flutter/lib/src/services/message_codec.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: Method not found: 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: The method 'toStringDeep' isn't defined for the class 'PlatformException'.
 - 'PlatformException' is from 'package:flutter/src/services/message_codec.dart' ('file:///home/alpenyeti/development/flutter/packages/flutter/lib/src/services/message_codec.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: Method not found: 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: The method 'toStringDeep' isn't defined for the class 'SqfliteDatabaseException'.
 - 'SqfliteDatabaseException' is from 'package:sqflite/src/exception.dart' ('file:///home/alpenyeti/development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.0/lib/src/exception.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: Method not found: 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: The method 'toStringDeep' isn't defined for the class 'SqfliteDatabaseException'.
 - 'SqfliteDatabaseException' is from 'package:sqflite/src/exception.dart' ('file:///home/alpenyeti/development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.0/lib/src/exception.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: Method not found: 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: The method 'toStringDeep' isn't defined for the class 'SqfliteDatabaseException'.
 - 'SqfliteDatabaseException' is from 'package:sqflite/src/exception.dart' ('file:///home/alpenyeti/development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.0/lib/src/exception.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: Method not found: 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: The method 'toStringDeep' isn't defined for the class 'SqfliteDatabaseException'.
 - 'SqfliteDatabaseException' is from 'package:sqflite/src/exception.dart' ('file:///home/alpenyeti/development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.0/lib/src/exception.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
Compiler failed on /home/alpenyeti/git/flutterapppoc/lib/main.dart
Finished with error: Gradle task assembleDebug failed with exit code 1
flutter analyze
Analyzing flutterapppoc...                                              
No issues found! (ran in 1.9s)
flutter doctor-v
[✓] Flutter (Channel beta, v1.3.8, on Linux, locale fr_FR.UTF-8)
    • Flutter version 1.3.8 at /home/alpenyeti/development/flutter
    • Framework revision e5b1ed7a7f (il y a 4 semaines), 2019-03-06 14:23:37 -0800
    • Engine revision f4951df193
    • Dart version 2.2.1 (build 2.2.1-dev.0.0 571ea80e11)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /home/alpenyeti/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /snap/android-studio/73/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 3.3)
    • Android Studio at /snap/android-studio/73/android-studio
    • Flutter plugin version 34.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] VS Code (version 1.32.3)
    • VS Code at /usr/share/code
    • Flutter extension version 2.24.0
@AlpenYeti AlpenYeti reopened this Apr 2, 2019
@FleurA
Copy link

FleurA commented Apr 2, 2019

i get the same errors!

@AlpenYeti
Copy link
Author

i get the same errors!

It only happens with Android Studio's interface. you can still run it with flutter run. Not the best option but at least it doesn't stop you from working.

@laharshah
Copy link

laharshah commented Apr 2, 2019

Check out the following anwer: https://stackoverflow.com/a/55498208/5236174

flutter clean

Works for me.

@ghost
Copy link

ghost commented Apr 3, 2019

It also happen to me, but with different class specifically from RxDart. After rxdart package upgrade to 21, no problem.

@jaumard
Copy link
Contributor

jaumard commented Apr 5, 2019

look like a duplicate of #30267 who has more upvote

@jason-simmons
Copy link
Member

See dart-lang/sdk#36091

Does this still happen on the Flutter master channel?

@ride4sun
Copy link

I just updated and see of these statements in the console window - super anything besides all the other instability I am seeing.(Android Studio crashing, freezing, flickering, andoidx) I also getting really annoyed because I can not concentrate on my problems and I don't know anymore what is real and what is flutter and what is the Android toolchain. The standard answer is to delete the breakpoint and run flutter clean. That is not a solution - that is a poor man's workaround without fixing the root cause. - sorry for the rant.

Can flutter not detect when a new upgrade was done and run clean on the project automatically?

I am on :
C:\Projects\obdchk>flutter doctor -v
[√] Flutter (Channel master, v1.5.3-pre.33, on Microsoft Windows [Version 10.0.17763.437], locale en-US)
• Flutter version 1.5.3-pre.33 at c:\sdks\flutter
• Framework revision eaf058d (4 hours ago), 2019-04-19 08:50:30 -0700
• Engine revision ca31a7c
• Dart version 2.3.0 (build 2.3.0-dev.0.1 cf4444b803)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:\Users\ride4\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.

[√] Android Studio (version 3.4)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 34.0.2
• Dart plugin version 183.5901
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] IntelliJ IDEA Community Edition (version 2017.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3.5
• Flutter plugin version 22.2.2
• Dart plugin version 173.4700

[√] VS Code, 32-bit edition (version 1.30.1)
• VS Code at C:\Program Files (x86)\Microsoft VS Code
• Flutter extension version 2.21.1

@escamoteur
Copy link
Contributor

Hi, just want to check if this is still a problem for you.

@escamoteur escamoteur added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Sep 25, 2019
@iapicca
Copy link
Contributor

iapicca commented Nov 7, 2019

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!

Thanks for your contribution.

@iapicca iapicca closed this as completed Nov 7, 2019
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
None yet
Development

No branches or pull requests

8 participants