Skip to main content

Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null)

Hey Friend, 

This article is about how to resolve the issue ofUnhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null)` .In this article i will describe in breifly how to resolve this issue while running flutter.

When did I got this Error:

This is my issue which i was running linux desktop app. In my case firebase_core dependency was not working 

1st Method :

What worked for me

I was building my project for linux Desktop App,Now instread I  run my app for both Android and web My app and it worked fine for my case.

My Advise , Run your app on other Platforms too.

2nd Method :

As the Error is due to dependency try to clean your project and allow to rebuild your app from base of your project.

Here is my issue which I have rose in github:


commands you can use are 

Conclusion:

While building your First Flutter project.These are tiny errors to get known about the errors .This type of occurs due to platform on which your are working .With flutter we can develop App for cross platform. We need to test our flutter for Different platform too while developement stage itself

Feel free to connect me!!!

Comments

Popular posts from this blog

Is Dart easy for Beginners?

Lets look up few question on dart which help us to understand whether dart is easy or not. Introduction: Dart syntax are derived from java,c++ and mostly from javascript.It has c like syntax .Hence it is beginner friendly untill you understand the concept of classes. Hence here are few Questions on Dart programming language. Dart Question Question on Dart 1) For what iterable Collection in dart? Ans : The iterable Collection in dart :The  Iterable  class—for example  List  and  Set.  Iterables are basic building blocks for all sorts of Dart applications, and you’re probably already using them, even without noticing. This codelab helps you make the most out of them. 2 )What are type of loops in dart programming? Ans :/ for in loop ,switch Dart programming language supports several types of loops for controlling the flow of execution. Here are the main types of loops in Dart: For Loop: The for loop is used to iterate a specific number of times. It consists of an initialization, a cond

How To Change The Owner Of A Directory Using Python?

Introduction: To change the permission of a directory or file in python you needed to know two thing your user name and user group you wanted to change I will going to describe in detail how to know your users on your computer and user group present on your computer, whether you are the window or linux or mac. Syntax : There are three main commands we can use are 1st command(main command) os.chown(directory_name,userid,groupid) Parameters: userid - user id is the parameter used to specify the user id. groupid - Is the group id used for specifying the group of the group id. 2nd command: usr.getpwnam(new_owner_user).pw_uid Above function returns user id. when username is passed as argument. 3rd Command: grp.getgrnam(new_owner_group).gr_gid Above function returns group id. when groupname is passed as argument. Sample Program : Python3 import os # Directory path you want to change ownership for directory_path = '/tmp/directory' # New owner user and group new_owner_user = 'ch

Best Linux distros of 2023

  Introduction Linux, the open-source operating system, has a plethora of distributions tailored to diverse user needs. These distributions, or "distros," vary in design, focus, and functionalities, making Linux a versatile choice. In this article, we'll explore ten noteworthy Linux distributions and delve into their unique features and capabilities. Distro 1 - Ubuntu Ubuntu is one of the most popular Linux distributions. It's known for its user-friendly interface and robust community support. Ubuntu is based on Debian and offers a balance between ease of use and powerful features. Features of Ubuntu: Desktop Environment : Utilizes the intuitive GNOME desktop environment, providing a clean and efficient interface. Software Repository: Offers an extensive software repository accessed through the APT package manager, ensuring a vast selection of applications. Security and Updates: Regularly provides updates and security patches to enhance system stability and protect