Skip to content

Platform Exception Error when running app in release mode #34

Description

@atifmakes

Steps to Reproduce

  1. When the login button is pressed in release mode the platform error occurs

Expected results: Successful Login

Actual results: E/flutter (27362): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(UnknownGetUserError, Unknown Error, 400, null)
E/flutter (27362): #0 Snapkit.currentUser (package:snapkit/snapkit.dart:138)
E/flutter (27362):
E/flutter (27362): #1 Snapkit.login (package:snapkit/snapkit.dart:57)
E/flutter (27362):
E/flutter (27362):**

Logs
  info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: HomeScreen.snapchatUser •
          lib/Screens/HomeScreen.dart:21:7 • must_be_immutable
   info • 'overflow' is deprecated and shouldn't be used. Use clipBehavior instead. See the migration guide in flutter.dev/go/clip-behavior. This feature was deprecated
          after v1.22.0-12.0.pre. • lib/Screens/HomeScreen.dart:501:59 • deprecated_member_use
   info • 'Overflow' is deprecated and shouldn't be used. Use clipBehavior instead. See the migration guide in flutter.dev/go/clip-behavior. This feature was deprecated
          after v1.22.0-12.0.pre. • lib/Screens/HomeScreen.dart:502:63 • deprecated_member_use
   info • Cancel instances of dart.async.StreamSubscription • lib/Screens/Mainscreen.dart:22:36 • cancel_subscriptions
   info • Unused import: 'package:path_provider/path_provider.dart' • lib/Screens/NewSnapScreen.dart:11:8 • unused_import
   info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: NewSnapScreen.snapchatUser
          • lib/Screens/NewSnapScreen.dart:17:7 • must_be_immutable
   info • 'overflow' is deprecated and shouldn't be used. Use clipBehavior instead. See the migration guide in flutter.dev/go/clip-behavior. This feature was deprecated
          after v1.22.0-12.0.pre. • lib/Screens/NewSnapScreen.dart:227:13 • deprecated_member_use
   info • 'Overflow' is deprecated and shouldn't be used. Use clipBehavior instead. See the migration guide in flutter.dev/go/clip-behavior. This feature was deprecated
          after v1.22.0-12.0.pre. • lib/Screens/NewSnapScreen.dart:227:23 • deprecated_member_use
   info • 'overflow' is deprecated and shouldn't be used. Use clipBehavior instead. See the migration guide in flutter.dev/go/clip-behavior. This feature was deprecated
          after v1.22.0-12.0.pre. • lib/Screens/NewSnapScreen.dart:419:31 • deprecated_member_use
   info • 'Overflow' is deprecated and shouldn't be used. Use clipBehavior instead. See the migration guide in flutter.dev/go/clip-behavior. This feature was deprecated
          after v1.22.0-12.0.pre. • lib/Screens/NewSnapScreen.dart:419:41 • deprecated_member_use
[✓] Flutter (Channel stable, 2.2.3-0.0.pre.2, on Mac OS X 10.15.7 19H1323 darwin-x64, locale en-PK)
    • Flutter version 2.2.3-0.0.pre.2 at /Users/Flash/Developer/flutter
    • Framework revision a794a412e1 (6 months ago), 2021-06-12 17:13:00 +0500
    • Engine revision 91c9fc8fe0
    • Dart version 2.13.3

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/Flash/Library/Android/sdk
    • Platform android-31, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.62.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (2 available)
    • Nokia 6 1 (mobile) • PL2GAMU841604032 • android-arm64  • Android 10 (API 29)
    • Chrome (web)       • chrome           • web-javascript • Google Chrome 96.0.4664.55

• No issues found!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions