java-james / flutter_dotenv

Loads environment variables from `.env`.
https://pub.dartlang.org/packages/flutter_dotenv
MIT License
213 stars 48 forks source link

Dotenv not running on android #54

Closed vinifig closed 1 year ago

vinifig commented 2 years ago

I'm currently facing some issues while running applications with DotEnv in my applications. I checked the exported apk and aar, and the .env file is present there. But the application is throwing FileNotFound errors every time I start the application.

The app stays in the blank page.

I've changed the library to get more detailed logs, but the only data about the error is:

Unable to load asset: .env
image
java-james commented 2 years ago

Hey @vinifig Could you provide the initialisation code and the exact location you have created the .env file in?

java-james commented 1 year ago

Hi @vinifig due to no response I will close this issue. Please open and add details if this is still an issue for you.