Skip to content

Conversation

@quantela-ashutosh
Copy link

In flutter version 3.24.3, This plugin not working so I just increased sdk compile version.

It work for me now.

In flutter version 3.24.3, This plugin not working so I just increased sdk compile version.

It work for me now.
@emrecengdev
Copy link

Here is the quick fix :
We got the issue , because the plugin is using Kotlin Gradle version lower than 1.5.10, now its time to upgrade the Kotlin version of this plugin. You might get this issue with another plugin as well.

Download and unzip the plugin.
Then open /android/build.gradle
Replace ext.kotlin_version = '1.5.10' with ext.kotlin_version = '1.7.10' // OR any latest version

Now, save the build. Gradle file of the plugin folder.
Now go to the pubspec. yaml file on your project, and add this package like the below:

#before
flutter_html_to_pdf: ^0.7.0

#after
flutter_html_to_pdf:
path: lib/flutter_html_to_pdf

I put the plugin in the lib folder in the root directory, you can put it wherever you want.
Now it works Properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants