This repository was archived by the owner on Apr 14, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,26 @@ github [rxbanner_demo.apk](https://github.com/leveychen
57
57
```
58
58
[ LATEST RELEASE] ( https://github.com/leveychen/RxBanner/releases/latest )
59
59
60
+ ### 依赖出错问题
61
+ 由于本项目采用` 28.0.0-rc02 ` 的版本编译,28以下版本可能会出现依赖失败的情况,处理办法如下:
62
+
63
+ 在 ` app.gradle ` 最下面添加
64
+
65
+ ````
66
+ configurations.all {
67
+ resolutionStrategy.eachDependency { DependencyResolveDetails details ->
68
+ def requested = details.requested
69
+ if (requested.group == 'com.android.support') {
70
+ if (!requested.name.startsWith("multidex")) {
71
+ //这里指定需要统一的依赖版本,这里统一为27.1.1,这里以27.1.1为例
72
+ details.useVersion '27.1.1'
73
+ }
74
+ }
75
+ }
76
+ }
77
+ ````
78
+ 强制使用你的主项目的编译版本
79
+
60
80
## 用法
61
81
#### ` layout `
62
82
see ` Attributes `
Original file line number Diff line number Diff line change @@ -39,6 +39,23 @@ github [rxbanner_demo.apk](https://github.com/leveychen
39
39
```
40
40
[ LATEST RELEASE] ( https://github.com/leveychen/RxBanner/releases/latest )
41
41
42
+ ### dependencies failed
43
+ ` app.gradle `
44
+
45
+ ````
46
+ configurations.all {
47
+ resolutionStrategy.eachDependency { DependencyResolveDetails details ->
48
+ def requested = details.requested
49
+ if (requested.group == 'com.android.support') {
50
+ if (!requested.name.startsWith("multidex")) {
51
+ details.useVersion '27.1.1'
52
+ }
53
+ }
54
+ }
55
+ }
56
+ ````
57
+
58
+
42
59
## Usage
43
60
#### ` layout `
44
61
see ` Attributes `
You can’t perform that action at this time.
0 commit comments