首页 > 其他分享 >Could not find method compile() for arguments [{name=barcodescanner-release-2.1.5, ext=aar}] on obje

Could not find method compile() for arguments [{name=barcodescanner-release-2.1.5, ext=aar}] on obje

时间:2022-11-24 12:11:06浏览次数:35  
标签:compile name Could barcodescanner arguments 2.1 type find

 

异常:

 解决方法:

找到路径下的文件node_modules\phonegap-plugin-barcodescanner\src\android 的barcodescanner.gradle

将依赖中compile方式引入改成implementation

如下:

 

 改成

 

 重新同步,打包

 

 

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

标签:compile,name,Could,barcodescanner,arguments,2.1,type,find
From: https://www.cnblogs.com/sugarwxx/p/16919021.html

相关文章