Unresolved reference 'Registrar'. not working in new flutter version
- 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.
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?
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
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 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
The latest version is 4.1.1
Ah my bad, I was just going off the tags in the repo