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

Free database for beginners for prototype online

For free online databases suitable for beginners in India, here are some reliable options that support SQL and work well for prototyping: Firebase Realtime Database / Firestore Firebase offers a limited free tier and is easy to set up for quick prototypes. It provides both SQL-like Firestore and NoSQL Realtime Database options. The free plan includes 1GB storage and basic analytics. Firebase Console Supabase Supabase is an open-source alternative to Firebase with a PostgreSQL backend, making it a solid choice for SQL beginners. The free tier provides up to 500MB of database space, unlimited API requests, and real-time capabilities. Supabase PlanetScale Based on MySQL, PlanetScale is great for beginners and offers a free plan with 5GB storage and a user-friendly interface. It’s especially suitable for scalable prototypes and integrates well with modern frameworks. PlanetScale ElephantSQL ElephantSQL offers a free tier for PostgreSQL databases with 20MB storage. It’s easy to use and prov...

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 ...

Solidity Language

Certainly! Solidity is a programming language primarily used for developing smart contracts on the Ethereum blockchain. Here's a brief overview of some important concepts: 1. Smart Contracts:  These are self-executing contracts with the terms of the agreement directly written into code. They automatically execute actions when predefined conditions are met. 2. Data Types : Solidity supports various data types including uint (unsigned integer), int (signed integer), bool (boolean), address (Ethereum address), and more. 3. Functions:  Functions in Solidity are similar to functions in other programming languages. They can be called by external actors or internally by the contract itself. 4. Modifiers : Modifiers are used to change the behavior of functions. They are often used to perform checks before executing a function. 5. Events:  Events are used to log information that can be accessed outside of the blockchain. They're useful for notifying external applications about act...