Skip to content
Init is coming / May 19 - 23
Back

flutter_web_auth_2 needs to be updated!

  • 1
  • Android
  • Flutter
NiceSapien
16 May, 2025, 14:04

The appwrite SDK is using an old version of flutter_web_auth_2 which I beleive is now deprecated, or atleast, isn't working for me. iOS, Linux, Web, Windows stuff all works fine. However: The main OS, Android doesn't work. I tried updating it in my pubspec.yml but this came up:

TypeScript
Resolving dependencies...
Because appwrite 15.0.2 depends on flutter_web_auth_2 ^3.1.2 and no versions of appwrite match >15.0.2 <16.0.0, appwrite ^15.0.2 requires flutter_web_auth_2 ^3.1.2.
So, because auraascend depends on both appwrite ^15.0.2 and flutter_web_auth_2 ^4.0.0, version solving failed.


You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on flutter_web_auth_2: flutter pub add flutter_web_auth_2:^3.1.2
Failed to update packages.
exit code 1

I ran it on GitHub actions and this came up:

TypeScript
e: file:///home/runner/.pub-cache/hosted/pub.dev/flutter_web_auth_2-3.1.2/android/src/main/kotlin/com/linusu/flutter_web_auth_2/FlutterWebAuth2Plugin.kt:15:48 Unresolved reference: Registrar
e: file:///home/runner/.pub-cache/hosted/pub.dev/flutter_web_auth_2-3.1.2/android/src/main/kotlin/com/linusu/flutter_web_auth_2/FlutterWebAuth2Plugin.kt:22:33 Unresolved reference: Registrar
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_web_auth_2:compileReleaseKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 6m 47s
Running Gradle task 'assembleRelease'...                          408.1s
Gradle task assembleRelease failed with exit code 1
Error: Process completed with exit code 1.

Please update the SDK as soon as possible or provide help.

TL;DR
The developer is facing issues with an outdated version of flutter_web_auth_2 in the appwrite SDK. Updating the version is causing conflicts. The error message suggests downgrading the constraint on flutter_web_auth_2 to resolve the issue. Additionally, there are compilation errors related to the Registrar in Android. The developer should update the flutter_web_auth_2 version in their project to match the requirements of the appwrite SDK to fix the problem with resolving dependencies.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more