flutter_timezone icon indicating copy to clipboard operation
flutter_timezone copied to clipboard

Unresolved reference 'Registrar'. not working in new flutter version

Open Chief-Strategist-J opened this issue 8 months ago • 1 comments

  • What went wrong: Execution failed for task ':flutter_timezone:compileDebugKotlin'.

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.

Chief-Strategist-J avatar Apr 26 '25 07:04 Chief-Strategist-J

Hi,

Thank for the report. However, I need a bit more information to go on. Do you have any log or stacktrace that shows exactly what went wrong?

tjarvstrand avatar May 21 '25 20:05 tjarvstrand

e: file:///C:/Users/~1/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_timezone-1.0.8/android/src/main/kotlin/net/wolverinebeach/flutter_timezone/FlutterTimezonePlugin.kt:23:37 Unresolved reference: Registrar

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':flutter_timezone:compileDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction Compilation error. See log for more details

IsmailAshour avatar Jun 10 '25 09:06 IsmailAshour

Ah that reference was removed long ago. Please update to the latest version of the plugin.

I'll close this. Feel free to reopen if you still have issues after upgrading.

tjarvstrand avatar Jun 11 '25 08:06 tjarvstrand

@tjarvstrand this still happens on 2.1.0:

e: file:///C:/Users/Rudhra/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_timezone-2.1.0/android/src/main/kotlin/net/wolverinebeach/flutter_timezone/FlutterTimezonePlugin.kt:12:48 Unresolved reference: Registrar
e: file:///C:/Users/Rudhra/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_timezone-2.1.0/android/src/main/kotlin/net/wolverinebeach/flutter_timezone/FlutterTimezonePlugin.kt:23:37 Unresolved reference: Registrar

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_timezone:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

ROODAY avatar Jun 15 '25 21:06 ROODAY

The latest version is 4.1.1

tjarvstrand avatar Jun 15 '25 22:06 tjarvstrand

Ah my bad, I was just going off the tags in the repo

ROODAY avatar Jun 15 '25 22:06 ROODAY