Skip to content
Back

I upgraded Flutter Version & I am getting this issue in my Flutter Projects

  • 0
  • General
  • Flutter
Arif Qayoom
10 Apr, 2025, 17:47
TypeScript
Launching lib\main.dart on TECNO LE7 in debug
mode...
Running Gradle task 'assembleDebug'...          
e: file:///C:/Users/Arif%20Qayoom/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_web_auth_2-2.2.1/android/src/main/kotlin/com/linusu/flutter_web_auth_2/FlutterWebAuth2Plugin.kt:15:48 Unresolved reference: Registrar
Running Gradle task 'assembleDebug'...          e: file:///C:/Users/Arif%20Qayoom/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_web_auth_2-2.2.1/android/src/main/kotlin/com/linusu/flutter_web_auth_2/FlutterWebAuth2Plugin.kt:22:33 Unresolved reference: Registrar
Running Gradle task 'assembleDebug'...          
Note: C:\Users\Arif Qayoom\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_flutter-1.4.0\android\src\main\java\com\razorpay\razorpay_flutter\RazorpayDelegate.java uses or overrides a deprecated API.

> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Running Gradle task 'assembleDebug'...          
   > Compilation error. See log for more details
      
BUILD FAILED in 2m 4s
Running Gradle task 'assembleDebug'...          
                  125.6s
Error: Gradle task assembleDebug failed with
exit code 1
PS C:\Users\Arif Qayoom\donor>```
TL;DR
Issue: After upgrading Flutter version, getting unresolved reference errors for Registrar in FlutterWebAuth2Plugin.kt and deprecated API warnings in RazorpayDelegate.java. Solution: Update the dependencies causing the issues, such as FlutterWebAuth2 and razorpay_flutter, to their latest versions compatible with the upgraded Flutter version. The errors should be resolved after updating the 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