I upgraded flutter from version 2 to 3, now the project is unable to build in Android due to an error related to native_pdf_renderer, the specific error shown is this one:
e: C:\flutter\.pub-cache\hosted\pub.dartlang.org\native_pdf_renderer-4.0.1\android\src\main\kotlin\io\scer\native_pdf_renderer\NativePdfRendererPlugin.kt: (124, 29): Type mismatch: inferred type is String? but String was expected
e: C:\flutter\.pub-cache\hosted\pub.dartlang.org\native_pdf_renderer-4.0.1\android\src\main\kotlin\io\scer\native_pdf_renderer\NativePdfRendererPlugin.kt: (138, 25): Type mismatch: inferred type is String? but String was expected
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':native_pdf_renderer:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
[ā] Flutter (Channel stable, 3.0.5, on Microsoft Windows [Version 10.0.19044.1889], locale en-US)
[ā] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[ā] Chrome - develop for the web
[ā] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.5)
[ā] Android Studio (version 2021.1)
[ā] Android Studio (version 2021.2)
[ā] VS Code (version 1.66.0)
[ā] Connected device (4 available)
[ā] HTTP Host Availability
I upgraded flutter from version 2 to 3, now the project is unable to build in Android due to an error related to native_pdf_renderer, the specific error shown is this one:
Here my android configuration:
android\build.gradle
app\build.gradle
gradle-wrapper.properties
flutter doctor: