Cannot run development project Ente Auth - Android --flavor independent
Hi, curious is here.
I cannot run develop environment follow this document: https://github.com/ente-io/ente/tree/main/auth#%EF%B8%8F-develop
I will provide step by step to reproduce
Start to run in android
- Get the source
Then it get error output
GitHub
ente/auth at main · ente-io/ente
✨ End-to-end encrypted cloud for photos, videos and 2FA secrets. - ente-io/ente
24 Replies
The error about missing 'flutter_gen' and 'app_localizations.dart' occurs because the Flutter localization files have not been generated yet.
To fix this, after cloning the repo and running
flutter pub get, you need to generate the localization files by running:
This command generates the flutter_gen localization package including app_localizations.dart.
Then you can run the app with:
If you want to connect to a self-hosted server during development, use the command with the endpoint dart-define as shown in the official guide:
For full instructions on building and running the Ente Auth Android app in development, see https://help.ente.io/self-hosting/guides/mobile-build#android and the README at https://github.com/ente-io/ente/tree/main/auth#%EF%B8%8F-develop
In summary:
1. Clone repo and enter auth folder
2. Run flutter pub get
3. Run flutter gen-l10n to generate localization files
4. Run the flutter app with the appropriate flavor and dart-define flags
This will resolve the missing flutter_gen package and localization import errors.Building mobile apps | Ente Help
Connecting to your custom self-hosted server when building the Ente mobile apps from source
GitHub
ente/auth at main · ente-io/ente
✨ End-to-end encrypted cloud for photos, videos and 2FA secrets. - ente-io/ente
<@&1364141260708909117> User still needs help in #Cannot run development project Ente Auth - Android --flavor independent
after run
output are
Then re-run
Or even
Still get output error the same above.
@Prateek would you know what's up?
The problem is with localization generation, you can try this:
https://github.com/orgs/community/discussions/57903#discussioncomment-6159386
GitHub
Target of URI doesn't exist: 'package:flutter_gen/genl10n/gallery...
Select Topic Area Question Body I am now using flutter gallary in my project, this is the package reference: import 'package:flutter_gen/gen_l10n/gallery_localizations.dart'; but it shows: ...
Thanks a lot, let me try.
-# If your issue is resolved, you can use the Mark as Solved button or type
/solved to close the thread.I cannot see the folder "flutter_gen" as in github disscussion described.
I try multiples way and retry or cleaned the local source already.
Is that this file generated?
Not that file.
I also change the import in every single error file to "lib/l10n/arb/app_localizations.dart" > it still remains the error
Or even 2nd error disappear > the localization error takes too much code change to run
Sorry, I cannot run in debug mode Android.
Can you reproduced my issue @Prateek ? As I described step by step and It cannot be run in 01 hit document.
This is another reproduce step, I only use terminal.
https://asciinema.org/a/3igloRZWhRw0pbS4kCzCex0bN
I will check tomorrow
Are you using the correct flutter version (as specified in the read me)?
Sorry sir
I cannot see flutter version require in these READMEs
1. https://github.com/ente-io/ente/blob/main/auth/README.md
2. https://github.com/ente-io/ente/blob/main/README.md
3. https://github.com/orgs/community/discussions/57903
---
As I research the source code I assume we using version 3.24.3
- From this file: https://github.com/ente-io/ente/blob/main/.github/workflows/auth-release.yml
- And this commit message: https://github.com/ente-io/ente/commit/a65493192f26a333723682684ecf5cdeee38c5cb
And yes, I tried once before, the errors remain the same.
I think
my environment got troubles so I want to copy your environment or the instruction should be more clear or at least some of dev members can reproduce my scratch way to run this.
By the way, I will try learning to use FVM as the commit message said in: https://github.com/ente-io/ente/commit/a65493192f26a333723682684ecf5cdeee38c5cb
I suspect that ente-auth dev members using FVM and run normally. Let see If I can be them... or not.GitHub
[auth] specify flutter version (#5636) · ente-io/ente@a654931
Description
Allows to explicitly set the flutter version you want to use, by
utilizing
fvm.
dart pub global activate fvm
fvm install 3.24.3
fvm use 3.24.3
fvm flutter ...I ran into the same issue on Ente Photos folder but it is happening when I user flutter 3.32 and not older version like 3.27, are you sure you are not using the latest stable flutter i.e. 3.32?
Hi, I am back.
I run development successfully by using
Thanks for your help
I am not sure about the scenerio in the past that I use flutter v3.24.3 native terminal then the issue still remain.
By the way
1. Should we update document for this?
2. Are there any roadmaps for latest flutter version or Root cause?
📊 Ducky's Performance Report
Real-time stats below:
🤖 Bot Uptime
3 days, 17:15:16
📡 Ping
43ms
🖥️ Server Uptime
3717 days, 6:35:00
💾 Resources
RAM: 81.15MB
CPU: 0.91%
Disk: 0.57GB
📶 Network
↓ 713372.29KB / ↑ 42022.2KB
Thanks for checking on me! quack quack
Thread marked as solved. It will be closed in <t:1750396991:R>.
@Ducky /unsolve
Quack :lilducky:
This thread is now closed.
We'll upgrade flutter next month if everything works out. Fvm configuration is wrong that's why you are facing this when using terminal, it is not something we can solve by documenting.
Thread has been reopened and unmarked as solved.
Did you want this to be unsolved?
Thread marked as solved. It will be closed in <t:1750588382:R>.
This thread is now closed.