Could not find method compile() for arguments [{name=barcodescanner-release-2.1.5, ext=aar}] on object of type
异常:

解决方法:
找到路径下的文件node_modules\phonegap-plugin-barcodescanner\src\android 的barcodescanner.gradle
将依赖中compile方式引入改成implementation
如下:

改成

重新同步,打包


注:针对此类问题可以去对应插件下的平台文件夹下找到.gradle文件更改引用。

浙公网安备 33010602011771号