bluetooth_print icon indicating copy to clipboard operation
bluetooth_print copied to clipboard

Run time error

Open Tanvirul-swe opened this issue 1 year ago • 2 comments

A problem occurred evaluating project ':bluetooth_print'.

Could not find method compile() for arguments [file collection] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Tanvirul-swe avatar Sep 29 '22 10:09 Tanvirul-swe

also seeing this @thon-ju any update?

shubhjagani avatar Oct 11 '22 19:10 shubhjagani

@Tanvirul-swe I found the fix. start by running flutter clean

go to the build.gradle for this package for me the path was /Users/shubh/dev/flutter/.pub-cache/hosted/pub.dartlang.org/bluetooth_print-3.0.1/android/build.gradle

and delete lines 27 - 30. the section below

defaultConfig {
        minSdkVersion 21
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

then under dependencies where it say says compile files ... replace that with implementation files...

shubhjagani avatar Oct 11 '22 20:10 shubhjagani