当前位置:网站首页>记一次报错解决经历依赖重复
记一次报错解决经历依赖重复
2022-07-02 11:38:00 【d_o_n_g2】
这个类型的报错有几种情况,我这次遇到的时候module里面的同样的类依赖多次。
1、比如说重复的包是A。B依赖A,C也依赖A,D依赖B和C和A。那这里实际解决D的重复依赖问题。所以B中的A和C中的A需要使用implementation来依赖。这样D就不会有依赖重复。D中的依赖A可以用api或者implementation都可。一般这种情况,这个A就有点类似是公共的api了。对于公共的api我个人觉得可以类似那种谷歌的库一样,直接都用implementation就行了。或者搞一个公共的module,里面的库都是以api形式依赖提供。
这里有一个容易混淆的地方。
B api A , C implementation D。
如果D implementation B:D可以使用A,C不能使用B。
D api B: D可以使用A,C能使用B。
边栏推荐
- Tmall product details interface (APP, H5 end)
- 由粒子加速器产生的反中子形成的白洞
- Obsidian installs third-party plug-ins - unable to load plug-ins
- Database connection pool and data source
- [apipost] tutorial
- docker mysql
- MQ教程 | Exchange(交换机)
- Makefile separates file names and suffixes
- Fabric. JS free draw circle
- Fatal: unsafe repository is owned by someone else
猜你喜欢
Fabric. JS zoom canvas
Xilinx Vivado set *.svh as SystemVerilog Header
Fabric.js 自由绘制圆形
buuctf-pwn write-ups (7)
Yolov3 & yolov5 output result description
socket(套接字)与socket地址
途家木鸟美团夏日折扣对垒,门槛低就一定香吗?
What is erdma? Popular science cartoon illustration
Fabric. Usage of JS eraser (including recovery function)
Fabric.js 缩放画布
随机推荐
jmeter脚本参数化
Fabric.js 元素被选中时保持原有层级
Available solution development oral arithmetic training machine / math treasure / children's oral arithmetic treasure / intelligent math treasure LCD LCD driver ic-vk1622 (lqfp64 package), original te
篇9:XShell免费版安装
Yyds dry goods inventory software encryption lock function
Implement a server with multi process concurrency
Stm32-dac Experiment & high frequency DAC output test
STM32-DAC实验&高频DAC输出测试
4. Array pointer and pointer array
Tip: SQL Server blocked the state 'openrowset/opendatasource' of component 'ad hoc distributed queries'
Understanding of mongodb
Development and design of animation surrounding mall sales website based on php+mysql
Fabric.js 橡皮擦的用法(包含恢复功能)
threejs的控制器 立方體空間 基本控制器+慣性控制+飛行控制
微信小程序使用towxml显示公式
STM32 library function for GPIO initialization
使用mathtype编辑公式,复制粘贴时设置成仅包含mathjax语法的公式
Delete element (with transition animation)
buuctf-pwn write-ups (7)
NLA natural language analysis realizes zero threshold of data analysis