gradle常用命令

查看依赖树

查看所有依赖树

gradle -q app:dependencies

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
panda:Gank panda$ gradle -q app:dependencies
------------------------------------------------------------
Project :app
------------------------------------------------------------
_debugAndroidTestAnnotationProcessor - ## Internal use, do not manually configure ##
No dependencies
_debugAndroidTestApk - ## Internal use, do not manually configure ##
No dependencies
_debugAndroidTestCompile - ## Internal use, do not manually configure ##
No dependencies
_debugAnnotationProcessor - ## Internal use, do not manually configure ##
No dependencies
_debugApk - ## Internal use, do not manually configure ##
+--- io.realm:realm-annotations:2.0.0
+--- com.android.support:appcompat-v7:24.2.1 -> 25.0.0
| +--- com.android.support:support-v4:25.0.0
| | +--- com.android.support:support-compat:25.0.0
| | | \--- com.android.support:support-annotations:25.0.0
| | +--- com.android.support:support-media-compat:25.0.0
| | | \--- com.android.support:support-compat:25.0.0 (*)
| | +--- com.android.support:support-core-utils:25.0.0
| | | \--- com.android.support:support-compat:25.0.0 (*)
| | +--- com.android.support:support-core-ui:25.0.0
| | | \--- com.android.support:support-compat:25.0.0 (*)
| | \--- com.android.support:support-fragment:25.0.0
| | +--- com.android.support:support-compat:25.0.0 (*)
| | +--- com.android.support:support-media-compat:25.0.0 (*)
| | +--- com.android.support:support-core-ui:25.0.0 (*)
| | \--- com.android.support:support-core-utils:25.0.0 (*)
| +--- com.android.support:support-vector-drawable:25.0.0
| | \--- com.android.support:support-compat:25.0.0 (*)
| \--- com.android.support:animated-vector-drawable:25.0.0
| \--- com.android.support:support-vector-drawable:25.0.0 (*)
+--- com.android.support:recyclerview-v7:25.0.0
| +--- com.android.support:support-annotations:25.0.0
| +--- com.android.support:support-compat:25.0.0 (*)
| \--- com.android.support:support-core-ui:25.0.0 (*)
+--- com.github.CymChad:BaseRecyclerViewAdapterHelper:2.2.9
+--- com.youzan:titan:0.2.5
| \--- com.android.support:recyclerview-v7:23.3.0 -> 25.0.0 (*)
+--- com.android.support:customtabs:25.0.0
| \--- com.android.support:support-annotations:25.0.0
+--- com.squareup.okhttp3:logging-interceptor:3.4.1
+--- com.squareup.retrofit2:retrofit:2.1.0
+--- com.squareup.retrofit2:converter-gson:2.1.0
| \--- com.google.code.gson:gson:2.7
+--- com.squareup.retrofit2:adapter-rxjava:2.1.0
| \--- io.reactivex:rxjava:1.1.5 -> 1.1.6
+--- jp.wasabeef:picasso-transformations:2.1.0
+--- io.reactivex:rxandroid:1.2.1
+--- xiaofei.library:hermes-eventbus:0.2.0
| +--- xiaofei.library:concurrent-utils:0.1.4
| +--- org.greenrobot:eventbus:3.0.0
| \--- xiaofei.library:hermes:0.6.1
+--- com.facebook.stetho:stetho-okhttp3:1.4.1
| \--- com.google.code.findbugs:jsr305:2.0.1
+--- com.android.support:support-v4:25.0.0 (*)
+--- com.android.support:cardview-v7:25.0.0
| \--- com.android.support:support-annotations:25.0.0
+--- com.jakewharton:butterknife:8.3.0
| +--- com.jakewharton:butterknife-annotations:8.3.0
| | \--- com.android.support:support-annotations:24.1.0 -> 25.0.0
| \--- com.android.support:support-annotations:24.1.0 -> 25.0.0
+--- org.jsoup:jsoup:1.9.2
+--- com.google.code.gson:gson:2.7
+--- com.squareup.okhttp3:okhttp:3.4.1
| \--- com.squareup.okio:okio:1.9.0
+--- com.squareup.picasso:picasso:2.5.2
+--- io.reactivex:rxjava:1.1.6
+--- com.tencent.bugly:crashreport:2.2.2
+--- com.facebook.stetho:stetho:1.4.1
| +--- commons-cli:commons-cli:1.2
| \--- com.google.code.findbugs:jsr305:2.0.1
+--- com.facebook.stetho:stetho-js-rhino:1.4.1
| +--- com.google.code.findbugs:jsr305:2.0.1
| \--- org.mozilla:rhino:1.7.6
+--- io.realm:realm-android-library:2.0.0
| +--- io.realm:realm-annotations:2.0.0
| \--- com.getkeepsafe.relinker:relinker:1.2.2
+--- project :widget
| +--- com.android.support:appcompat-v7:25.0.0 (*)
| +--- com.android.support:design:25.0.0
| | +--- com.android.support:support-v4:25.0.0 (*)
| | +--- com.android.support:appcompat-v7:25.0.0 (*)
| | +--- com.android.support:recyclerview-v7:25.0.0 (*)
| | \--- com.android.support:transition:25.0.0
| | \--- com.android.support:support-v4:25.0.0 (*)
| \--- com.google.android:flexbox:0.2.3
| \--- com.android.support:appcompat-v7:23.3.0 -> 25.0.0 (*)
\--- com.squareup.leakcanary:leakcanary-android:1.4
\--- com.squareup.leakcanary:leakcanary-analyzer:1.4
+--- com.squareup.haha:haha:2.0.3
\--- com.squareup.leakcanary:leakcanary-watcher:1.4
_debugCompile - ## Internal use, do not manually configure ##
+--- io.realm:realm-annotations:2.0.0
+--- com.android.support:appcompat-v7:24.2.1 -> 25.0.0
| +--- com.android.support:support-v4:25.0.0
| | +--- com.android.support:support-compat:25.0.0
| | | \--- com.android.support:support-annotations:25.0.0
| | +--- com.android.support:support-media-compat:25.0.0
| | | \--- com.android.support:support-compat:25.0.0 (*)
| | +--- com.android.support:support-core-utils:25.0.0
| | | \--- com.android.support:support-compat:25.0.0 (*)
| | +--- com.android.support:support-core-ui:25.0.0
| | | \--- com.android.support:support-compat:25.0.0 (*)
| | \--- com.android.support:support-fragment:25.0.0
| | +--- com.android.support:support-compat:25.0.0 (*)
| | +--- com.android.support:support-media-compat:25.0.0 (*)
| | +--- com.android.support:support-core-ui:25.0.0 (*)
| | \--- com.android.support:support-core-utils:25.0.0 (*)
| +--- com.android.support:support-vector-drawable:25.0.0
| | \--- com.android.support:support-compat:25.0.0 (*)
| \--- com.android.support:animated-vector-drawable:25.0.0
| \--- com.android.support:support-vector-drawable:25.0.0 (*)
+--- com.android.support:recyclerview-v7:25.0.0
| +--- com.android.support:support-annotations:25.0.0
| +--- com.android.support:support-compat:25.0.0 (*)
| \--- com.android.support:support-core-ui:25.0.0 (*)
+--- com.github.CymChad:BaseRecyclerViewAdapterHelper:2.2.9
+--- com.youzan:titan:0.2.5
| \--- com.android.support:recyclerview-v7:23.3.0 -> 25.0.0 (*)
+--- com.android.support:customtabs:25.0.0
| \--- com.android.support:support-annotations:25.0.0
+--- com.squareup.okhttp3:logging-interceptor:3.4.1
+--- com.squareup.retrofit2:retrofit:2.1.0
+--- com.squareup.retrofit2:converter-gson:2.1.0
| \--- com.google.code.gson:gson:2.7
+--- com.squareup.retrofit2:adapter-rxjava:2.1.0
| \--- io.reactivex:rxjava:1.1.5 -> 1.1.6
+--- jp.wasabeef:picasso-transformations:2.1.0
+--- io.reactivex:rxandroid:1.2.1
+--- xiaofei.library:hermes-eventbus:0.2.0
| +--- xiaofei.library:concurrent-utils:0.1.4
| +--- org.greenrobot:eventbus:3.0.0
| \--- xiaofei.library:hermes:0.6.1
+--- com.facebook.stetho:stetho-okhttp3:1.4.1
| \--- com.google.code.findbugs:jsr305:2.0.1
+--- com.android.support:support-v4:25.0.0 (*)
+--- com.android.support:cardview-v7:25.0.0
| \--- com.android.support:support-annotations:25.0.0
+--- com.jakewharton:butterknife:8.3.0
| +--- com.jakewharton:butterknife-annotations:8.3.0
| | \--- com.android.support:support-annotations:24.1.0 -> 25.0.0
| \--- com.android.support:support-annotations:24.1.0 -> 25.0.0
+--- org.jsoup:jsoup:1.9.2
+--- com.google.code.gson:gson:2.7
+--- com.squareup.okhttp3:okhttp:3.4.1
| \--- com.squareup.okio:okio:1.9.0
+--- com.squareup.picasso:picasso:2.5.2
+--- io.reactivex:rxjava:1.1.6
+--- com.tencent.bugly:crashreport:2.2.2
+--- com.facebook.stetho:stetho:1.4.1
| +--- commons-cli:commons-cli:1.2
| \--- com.google.code.findbugs:jsr305:2.0.1
+--- com.facebook.stetho:stetho-js-rhino:1.4.1
| +--- com.google.code.findbugs:jsr305:2.0.1
| \--- org.mozilla:rhino:1.7.6
+--- io.realm:realm-android-library:2.0.0
| +--- io.realm:realm-annotations:2.0.0
| \--- com.getkeepsafe.relinker:relinker:1.2.2
+--- project :widget
| +--- com.android.support:appcompat-v7:25.0.0 (*)
| +--- com.android.support:design:25.0.0
| | +--- com.android.support:support-v4:25.0.0 (*)
| | +--- com.android.support:appcompat-v7:25.0.0 (*)
| | +--- com.android.support:recyclerview-v7:25.0.0 (*)
| | \--- com.android.support:transition:25.0.0
| | \--- com.android.support:support-v4:25.0.0 (*)
| \--- com.google.android:flexbox:0.2.3
| \--- com.android.support:appcompat-v7:23.3.0 -> 25.0.0 (*)
\--- com.squareup.leakcanary:leakcanary-android:1.4
\--- com.squareup.leakcanary:leakcanary-analyzer:1.4
+--- com.squareup.haha:haha:2.0.3
\--- com.squareup.leakcanary:leakcanary-watcher:1.4
_debugUnitTestAnnotationProcessor - ## Internal use, do not manually configure ##
No dependencies
_debugUnitTestApk - ## Internal use, do not manually configure ##
\--- junit:junit:4.12
\--- org.hamcrest:hamcrest-core:1.3
_debugUnitTestCompile - ## Internal use, do not manually configure ##
\--- junit:junit:4.12
\--- org.hamcrest:hamcrest-core:1.3
_releaseAnnotationProcessor - ## Internal use, do not manually configure ##
No dependencies
_releaseApk - ## Internal use, do not manually configure ##
+--- io.realm:realm-annotations:2.0.0
+--- com.android.support:appcompat-v7:24.2.1 -> 25.0.0
| +--- com.android.support:support-v4:25.0.0
| | +--- com.android.support:support-compat:25.0.0
| | | \--- com.android.support:support-annotations:25.0.0
| | +--- com.android.support:support-media-compat:25.0.0
| | | \--- com.android.support:support-compat:25.0.0 (*)
| | +--- com.android.support:support-core-utils:25.0.0
| | | \--- com.android.support:support-compat:25.0.0 (*)
| | +--- com.android.support:support-core-ui:25.0.0
| | | \--- com.android.support:support-compat:25.0.0 (*)
| | \--- com.android.support:support-fragment:25.0.0
| | +--- com.android.support:support-compat:25.0.0 (*)
| | +--- com.android.support:support-media-compat:25.0.0 (*)
| | +--- com.android.support:support-core-ui:25.0.0 (*)
| | \--- com.android.support:support-core-utils:25.0.0 (*)
| +--- com.android.support:support-vector-drawable:25.0.0
| | \--- com.android.support:support-compat:25.0.0 (*)
| \--- com.android.support:animated-vector-drawable:25.0.0
| \--- com.android.support:support-vector-drawable:25.0.0 (*)
+--- com.android.support:recyclerview-v7:25.0.0
| +--- com.android.support:support-annotations:25.0.0
| +--- com.android.support:support-compat:25.0.0 (*)
| \--- com.android.support:support-core-ui:25.0.0 (*)
+--- com.github.CymChad:BaseRecyclerViewAdapterHelper:2.2.9
+--- com.youzan:titan:0.2.5
| \--- com.android.support:recyclerview-v7:23.3.0 -> 25.0.0 (*)
+--- com.android.support:customtabs:25.0.0
| \--- com.android.support:support-annotations:25.0.0
+--- com.squareup.okhttp3:logging-interceptor:3.4.1
+--- com.squareup.retrofit2:retrofit:2.1.0
+--- com.squareup.retrofit2:converter-gson:2.1.0
| \--- com.google.code.gson:gson:2.7
+--- com.squareup.retrofit2:adapter-rxjava:2.1.0
| \--- io.reactivex:rxjava:1.1.5 -> 1.1.6
+--- jp.wasabeef:picasso-transformations:2.1.0
+--- io.reactivex:rxandroid:1.2.1
+--- xiaofei.library:hermes-eventbus:0.2.0
| +--- xiaofei.library:concurrent-utils:0.1.4
| +--- org.greenrobot:eventbus:3.0.0
| \--- xiaofei.library:hermes:0.6.1
+--- com.facebook.stetho:stetho-okhttp3:1.4.1
| \--- com.google.code.findbugs:jsr305:2.0.1
+--- com.android.support:support-v4:25.0.0 (*)
+--- com.android.support:cardview-v7:25.0.0
| \--- com.android.support:support-annotations:25.0.0
+--- com.jakewharton:butterknife:8.3.0
| +--- com.jakewharton:butterknife-annotations:8.3.0
| | \--- com.android.support:support-annotations:24.1.0 -> 25.0.0
| \--- com.android.support:support-annotations:24.1.0 -> 25.0.0
+--- org.jsoup:jsoup:1.9.2
+--- com.google.code.gson:gson:2.7
+--- com.squareup.okhttp3:okhttp:3.4.1
| \--- com.squareup.okio:okio:1.9.0
+--- com.squareup.picasso:picasso:2.5.2
+--- io.reactivex:rxjava:1.1.6
+--- com.tencent.bugly:crashreport:2.2.2
+--- com.facebook.stetho:stetho:1.4.1
| +--- commons-cli:commons-cli:1.2
| \--- com.google.code.findbugs:jsr305:2.0.1
+--- com.facebook.stetho:stetho-js-rhino:1.4.1
| +--- com.google.code.findbugs:jsr305:2.0.1
| \--- org.mozilla:rhino:1.7.6
+--- io.realm:realm-android-library:2.0.0
| +--- io.realm:realm-annotations:2.0.0
| \--- com.getkeepsafe.relinker:relinker:1.2.2
+--- project :widget
| +--- com.android.support:appcompat-v7:25.0.0 (*)
| +--- com.android.support:design:25.0.0
| | +--- com.android.support:support-v4:25.0.0 (*)
| | +--- com.android.support:appcompat-v7:25.0.0 (*)
| | +--- com.android.support:recyclerview-v7:25.0.0 (*)
| | \--- com.android.support:transition:25.0.0
| | \--- com.android.support:support-v4:25.0.0 (*)
| \--- com.google.android:flexbox:0.2.3
| \--- com.android.support:appcompat-v7:23.3.0 -> 25.0.0 (*)
\--- com.squareup.leakcanary:leakcanary-android-no-op:1.4
_releaseCompile - ## Internal use, do not manually configure ##
+--- io.realm:realm-annotations:2.0.0
+--- com.android.support:appcompat-v7:24.2.1 -> 25.0.0
| +--- com.android.support:support-v4:25.0.0
| | +--- com.android.support:support-compat:25.0.0
| | | \--- com.android.support:support-annotations:25.0.0
| | +--- com.android.support:support-media-compat:25.0.0
| | | \--- com.android.support:support-compat:25.0.0 (*)
| | +--- com.android.support:support-core-utils:25.0.0
| | | \--- com.android.support:support-compat:25.0.0 (*)
| | +--- com.android.support:support-core-ui:25.0.0
| | | \--- com.android.support:support-compat:25.0.0 (*)
| | \--- com.android.support:support-fragment:25.0.0
| | +--- com.android.support:support-compat:25.0.0 (*)
| | +--- com.android.support:support-media-compat:25.0.0 (*)
| | +--- com.android.support:support-core-ui:25.0.0 (*)
| | \--- com.android.support:support-core-utils:25.0.0 (*)
| +--- com.android.support:support-vector-drawable:25.0.0
| | \--- com.android.support:support-compat:25.0.0 (*)
| \--- com.android.support:animated-vector-drawable:25.0.0
| \--- com.android.support:support-vector-drawable:25.0.0 (*)
+--- com.android.support:recyclerview-v7:25.0.0
| +--- com.android.support:support-annotations:25.0.0
| +--- com.android.support:support-compat:25.0.0 (*)
| \--- com.android.support:support-core-ui:25.0.0 (*)
+--- com.github.CymChad:BaseRecyclerViewAdapterHelper:2.2.9
+--- com.youzan:titan:0.2.5
| \--- com.android.support:recyclerview-v7:23.3.0 -> 25.0.0 (*)
+--- com.android.support:customtabs:25.0.0
| \--- com.android.support:support-annotations:25.0.0
+--- com.squareup.okhttp3:logging-interceptor:3.4.1
+--- com.squareup.retrofit2:retrofit:2.1.0
+--- com.squareup.retrofit2:converter-gson:2.1.0
| \--- com.google.code.gson:gson:2.7
+--- com.squareup.retrofit2:adapter-rxjava:2.1.0
| \--- io.reactivex:rxjava:1.1.5 -> 1.1.6
+--- jp.wasabeef:picasso-transformations:2.1.0
+--- io.reactivex:rxandroid:1.2.1
+--- xiaofei.library:hermes-eventbus:0.2.0
| +--- xiaofei.library:concurrent-utils:0.1.4
| +--- org.greenrobot:eventbus:3.0.0
| \--- xiaofei.library:hermes:0.6.1
+--- com.facebook.stetho:stetho-okhttp3:1.4.1
| \--- com.google.code.findbugs:jsr305:2.0.1
+--- com.android.support:support-v4:25.0.0 (*)
+--- com.android.support:cardview-v7:25.0.0
| \--- com.android.support:support-annotations:25.0.0
+--- com.jakewharton:butterknife:8.3.0
| +--- com.jakewharton:butterknife-annotations:8.3.0
| | \--- com.android.support:support-annotations:24.1.0 -> 25.0.0
| \--- com.android.support:support-annotations:24.1.0 -> 25.0.0
+--- org.jsoup:jsoup:1.9.2
+--- com.google.code.gson:gson:2.7
+--- com.squareup.okhttp3:okhttp:3.4.1
| \--- com.squareup.okio:okio:1.9.0
+--- com.squareup.picasso:picasso:2.5.2
+--- io.reactivex:rxjava:1.1.6
+--- com.tencent.bugly:crashreport:2.2.2
+--- com.facebook.stetho:stetho:1.4.1
| +--- commons-cli:commons-cli:1.2
| \--- com.google.code.findbugs:jsr305:2.0.1
+--- com.facebook.stetho:stetho-js-rhino:1.4.1
| +--- com.google.code.findbugs:jsr305:2.0.1
| \--- org.mozilla:rhino:1.7.6
+--- io.realm:realm-android-library:2.0.0
| +--- io.realm:realm-annotations:2.0.0
| \--- com.getkeepsafe.relinker:relinker:1.2.2
+--- project :widget
| +--- com.android.support:appcompat-v7:25.0.0 (*)
| +--- com.android.support:design:25.0.0
| | +--- com.android.support:support-v4:25.0.0 (*)
| | +--- com.android.support:appcompat-v7:25.0.0 (*)
| | +--- com.android.support:recyclerview-v7:25.0.0 (*)
| | \--- com.android.support:transition:25.0.0
| | \--- com.android.support:support-v4:25.0.0 (*)
| \--- com.google.android:flexbox:0.2.3
| \--- com.android.support:appcompat-v7:23.3.0 -> 25.0.0 (*)
\--- com.squareup.leakcanary:leakcanary-android-no-op:1.4
_releaseUnitTestAnnotationProcessor - ## Internal use, do not manually configure ##
No dependencies
_releaseUnitTestApk - ## Internal use, do not manually configure ##
\--- junit:junit:4.12
\--- org.hamcrest:hamcrest-core:1.3
_releaseUnitTestCompile - ## Internal use, do not manually configure ##
\--- junit:junit:4.12
\--- org.hamcrest:hamcrest-core:1.3
androidJacocoAgent - The Jacoco agent to use to get coverage data.
\--- org.jacoco:org.jacoco.agent:0.7.5.201505241946
androidJacocoAnt - The Jacoco ant tasks to use to get execute Gradle tasks.
\--- org.jacoco:org.jacoco.ant:0.7.5.201505241946
+--- org.jacoco:org.jacoco.core:0.7.5.201505241946
| \--- org.ow2.asm:asm-debug-all:5.0.1
+--- org.jacoco:org.jacoco.report:0.7.5.201505241946
| +--- org.jacoco:org.jacoco.core:0.7.5.201505241946 (*)
| \--- org.ow2.asm:asm-debug-all:5.0.1
\--- org.jacoco:org.jacoco.agent:0.7.5.201505241946
androidTestAnnotationProcessor - Classpath for the annotation processor for 'androidTest'.
No dependencies
androidTestApk - Classpath packaged with the compiled 'androidTest' classes.
No dependencies
androidTestApt
+--- io.realm:realm-annotations:2.0.0
\--- io.realm:realm-annotations-processor:2.0.0
+--- com.squareup:javawriter:2.5.0
\--- io.realm:realm-annotations:2.0.0
androidTestCompile - Classpath for compiling the androidTest sources.
No dependencies
androidTestProvided - Classpath for only compiling the androidTest sources.
No dependencies
androidTestWearApp - Link to a wear app to embed for object 'androidTest'.
No dependencies
annotationProcessor - Classpath for the annotation processor for 'main'.
No dependencies
apk - Classpath packaged with the compiled 'main' classes.
No dependencies
apt
+--- io.realm:realm-annotations:2.0.0
+--- io.realm:realm-annotations-processor:2.0.0
| +--- com.squareup:javawriter:2.5.0
| \--- io.realm:realm-annotations:2.0.0
+--- com.jakewharton:butterknife-compiler:8.3.0
| +--- com.jakewharton:butterknife-annotations:8.3.0
| | \--- com.android.support:support-annotations:24.1.0 -> 25.0.0
| +--- com.google.auto:auto-common:0.6
| | \--- com.google.guava:guava:18.0
| +--- com.google.auto.service:auto-service:1.0-rc2
| | +--- com.google.auto:auto-common:0.3 -> 0.6 (*)
| | \--- com.google.guava:guava:18.0
| \--- com.squareup:javapoet:1.7.0
+--- com.android.support:appcompat-v7:24.2.1
| \--- com.android.support:animated-vector-drawable:24.2.1
+--- com.android.support:recyclerview-v7:25.0.0
| +--- com.android.support:support-annotations:25.0.0
| +--- com.android.support:support-compat:25.0.0
| | \--- com.android.support:support-annotations:25.0.0
| \--- com.android.support:support-core-ui:25.0.0
| \--- com.android.support:support-compat:25.0.0 (*)
+--- com.github.CymChad:BaseRecyclerViewAdapterHelper:2.2.9
+--- com.youzan:titan:0.2.5
| \--- com.android.support:recyclerview-v7:23.3.0 -> 25.0.0 (*)
+--- com.android.support:customtabs:25.0.0
| \--- com.android.support:support-annotations:25.0.0
+--- com.squareup.okhttp3:logging-interceptor:3.4.1
+--- com.squareup.retrofit2:retrofit:2.1.0
+--- com.squareup.retrofit2:converter-gson:2.1.0
| \--- com.google.code.gson:gson:2.7
+--- com.squareup.retrofit2:adapter-rxjava:2.1.0
| \--- io.reactivex:rxjava:1.1.5 -> 1.1.6
+--- jp.wasabeef:picasso-transformations:2.1.0
+--- io.reactivex:rxandroid:1.2.1
+--- xiaofei.library:hermes-eventbus:0.2.0
| +--- xiaofei.library:concurrent-utils:0.1.4
| +--- org.greenrobot:eventbus:3.0.0
| \--- xiaofei.library:hermes:0.6.1
+--- com.facebook.stetho:stetho-okhttp3:1.4.1
| \--- com.google.code.findbugs:jsr305:2.0.1
+--- com.android.support:support-v4:25.0.0
| +--- com.android.support:support-compat:25.0.0 (*)
| +--- com.android.support:support-media-compat:25.0.0
| | \--- com.android.support:support-compat:25.0.0 (*)
| +--- com.android.support:support-core-utils:25.0.0
| | \--- com.android.support:support-compat:25.0.0 (*)
| +--- com.android.support:support-core-ui:25.0.0 (*)
| \--- com.android.support:support-fragment:25.0.0
| +--- com.android.support:support-compat:25.0.0 (*)
| +--- com.android.support:support-media-compat:25.0.0 (*)
| +--- com.android.support:support-core-ui:25.0.0 (*)
| \--- com.android.support:support-core-utils:25.0.0 (*)
+--- com.android.support:cardview-v7:25.0.0
| \--- com.android.support:support-annotations:25.0.0
+--- com.jakewharton:butterknife:8.3.0
| +--- com.jakewharton:butterknife-annotations:8.3.0 (*)
| \--- com.android.support:support-annotations:24.1.0 -> 25.0.0
+--- org.jsoup:jsoup:1.9.2
+--- com.google.code.gson:gson:2.7
+--- com.squareup.okhttp3:okhttp:3.4.1
| \--- com.squareup.okio:okio:1.9.0
+--- com.squareup.picasso:picasso:2.5.2
+--- io.reactivex:rxjava:1.1.6
+--- com.tencent.bugly:crashreport:2.2.2
+--- com.facebook.stetho:stetho:1.4.1
| +--- commons-cli:commons-cli:1.2
| \--- com.google.code.findbugs:jsr305:2.0.1
+--- com.facebook.stetho:stetho-js-rhino:1.4.1
| +--- com.google.code.findbugs:jsr305:2.0.1
| \--- org.mozilla:rhino:1.7.6
\--- io.realm:realm-android-library:2.0.0
+--- io.realm:realm-annotations:2.0.0
\--- com.getkeepsafe.relinker:relinker:1.2.2
archives - Configuration for archive artifacts.
No dependencies
compile - Classpath for compiling the main sources.
+--- io.realm:realm-annotations:2.0.0
+--- com.android.support:appcompat-v7:24.2.1
| \--- com.android.support:animated-vector-drawable:24.2.1
+--- com.android.support:recyclerview-v7:25.0.0
| +--- com.android.support:support-annotations:25.0.0
| +--- com.android.support:support-compat:25.0.0
| | \--- com.android.support:support-annotations:25.0.0
| \--- com.android.support:support-core-ui:25.0.0
| \--- com.android.support:support-compat:25.0.0 (*)
+--- com.github.CymChad:BaseRecyclerViewAdapterHelper:2.2.9
+--- com.youzan:titan:0.2.5
| \--- com.android.support:recyclerview-v7:23.3.0 -> 25.0.0 (*)
+--- com.android.support:customtabs:25.0.0
| \--- com.android.support:support-annotations:25.0.0
+--- com.squareup.okhttp3:logging-interceptor:3.4.1
+--- com.squareup.retrofit2:retrofit:2.1.0
+--- com.squareup.retrofit2:converter-gson:2.1.0
| \--- com.google.code.gson:gson:2.7
+--- com.squareup.retrofit2:adapter-rxjava:2.1.0
| \--- io.reactivex:rxjava:1.1.5 -> 1.1.6
+--- jp.wasabeef:picasso-transformations:2.1.0
+--- io.reactivex:rxandroid:1.2.1
+--- xiaofei.library:hermes-eventbus:0.2.0
| +--- xiaofei.library:concurrent-utils:0.1.4
| +--- org.greenrobot:eventbus:3.0.0
| \--- xiaofei.library:hermes:0.6.1
+--- com.facebook.stetho:stetho-okhttp3:1.4.1
| \--- com.google.code.findbugs:jsr305:2.0.1
+--- com.android.support:support-v4:25.0.0
| +--- com.android.support:support-compat:25.0.0 (*)
| +--- com.android.support:support-media-compat:25.0.0
| | \--- com.android.support:support-compat:25.0.0 (*)
| +--- com.android.support:support-core-utils:25.0.0
| | \--- com.android.support:support-compat:25.0.0 (*)
| +--- com.android.support:support-core-ui:25.0.0 (*)
| \--- com.android.support:support-fragment:25.0.0
| +--- com.android.support:support-compat:25.0.0 (*)
| +--- com.android.support:support-media-compat:25.0.0 (*)
| +--- com.android.support:support-core-ui:25.0.0 (*)
| \--- com.android.support:support-core-utils:25.0.0 (*)
+--- com.android.support:cardview-v7:25.0.0
| \--- com.android.support:support-annotations:25.0.0
+--- com.jakewharton:butterknife:8.3.0
| +--- com.jakewharton:butterknife-annotations:8.3.0
| | \--- com.android.support:support-annotations:24.1.0 -> 25.0.0
| \--- com.android.support:support-annotations:24.1.0 -> 25.0.0
+--- org.jsoup:jsoup:1.9.2
+--- com.google.code.gson:gson:2.7
+--- com.squareup.okhttp3:okhttp:3.4.1
| \--- com.squareup.okio:okio:1.9.0
+--- com.squareup.picasso:picasso:2.5.2
+--- io.reactivex:rxjava:1.1.6
+--- com.tencent.bugly:crashreport:2.2.2
+--- com.facebook.stetho:stetho:1.4.1
| +--- commons-cli:commons-cli:1.2
| \--- com.google.code.findbugs:jsr305:2.0.1
+--- com.facebook.stetho:stetho-js-rhino:1.4.1
| +--- com.google.code.findbugs:jsr305:2.0.1
| \--- org.mozilla:rhino:1.7.6
\--- io.realm:realm-android-library:2.0.0
+--- io.realm:realm-annotations:2.0.0
\--- com.getkeepsafe.relinker:relinker:1.2.2
debugAnnotationProcessor - Classpath for the annotation processor for 'debug'.
No dependencies
debugApk - Classpath packaged with the compiled 'debug' classes.
No dependencies
debugCompile - Classpath for compiling the debug sources.
+--- project :widget
| +--- com.android.support:appcompat-v7:25.0.0
| | +--- com.android.support:support-v4:25.0.0
| | | +--- com.android.support:support-compat:25.0.0
| | | | \--- com.android.support:support-annotations:25.0.0
| | | +--- com.android.support:support-media-compat:25.0.0
| | | | \--- com.android.support:support-compat:25.0.0 (*)
| | | +--- com.android.support:support-core-utils:25.0.0
| | | | \--- com.android.support:support-compat:25.0.0 (*)
| | | +--- com.android.support:support-core-ui:25.0.0
| | | | \--- com.android.support:support-compat:25.0.0 (*)
| | | \--- com.android.support:support-fragment:25.0.0
| | | +--- com.android.support:support-compat:25.0.0 (*)
| | | +--- com.android.support:support-media-compat:25.0.0 (*)
| | | +--- com.android.support:support-core-ui:25.0.0 (*)
| | | \--- com.android.support:support-core-utils:25.0.0 (*)
| | +--- com.android.support:support-vector-drawable:25.0.0
| | | \--- com.android.support:support-compat:25.0.0 (*)
| | \--- com.android.support:animated-vector-drawable:25.0.0
| | \--- com.android.support:support-vector-drawable:25.0.0 (*)
| +--- com.android.support:design:25.0.0
| | +--- com.android.support:support-v4:25.0.0 (*)
| | +--- com.android.support:appcompat-v7:25.0.0 (*)
| | +--- com.android.support:recyclerview-v7:25.0.0
| | | +--- com.android.support:support-annotations:25.0.0
| | | +--- com.android.support:support-compat:25.0.0 (*)
| | | \--- com.android.support:support-core-ui:25.0.0 (*)
| | \--- com.android.support:transition:25.0.0
| | \--- com.android.support:support-v4:25.0.0 (*)
| \--- com.google.android:flexbox:0.2.3
| \--- com.android.support:appcompat-v7:23.3.0 -> 25.0.0 (*)
\--- com.squareup.leakcanary:leakcanary-android:1.4
\--- com.squareup.leakcanary:leakcanary-analyzer:1.4
+--- com.squareup.haha:haha:2.0.3
\--- com.squareup.leakcanary:leakcanary-watcher:1.4
debugProvided - Classpath for only compiling the debug sources.
No dependencies
debugWearApp - Link to a wear app to embed for object 'debug'.
No dependencies
default - Configuration for default artifacts.
No dependencies
default-mapping - Configuration for default mapping artifacts.
No dependencies
default-metadata - Metadata for the produced APKs.
No dependencies
provided - Classpath for only compiling the main sources.
No dependencies
releaseAnnotationProcessor - Classpath for the annotation processor for 'release'.
No dependencies
releaseApk - Classpath packaged with the compiled 'release' classes.
No dependencies
releaseCompile - Classpath for compiling the release sources.
+--- project :widget
| +--- com.android.support:appcompat-v7:25.0.0
| | +--- com.android.support:support-v4:25.0.0
| | | +--- com.android.support:support-compat:25.0.0
| | | | \--- com.android.support:support-annotations:25.0.0
| | | +--- com.android.support:support-media-compat:25.0.0
| | | | \--- com.android.support:support-compat:25.0.0 (*)
| | | +--- com.android.support:support-core-utils:25.0.0
| | | | \--- com.android.support:support-compat:25.0.0 (*)
| | | +--- com.android.support:support-core-ui:25.0.0
| | | | \--- com.android.support:support-compat:25.0.0 (*)
| | | \--- com.android.support:support-fragment:25.0.0
| | | +--- com.android.support:support-compat:25.0.0 (*)
| | | +--- com.android.support:support-media-compat:25.0.0 (*)
| | | +--- com.android.support:support-core-ui:25.0.0 (*)
| | | \--- com.android.support:support-core-utils:25.0.0 (*)
| | +--- com.android.support:support-vector-drawable:25.0.0
| | | \--- com.android.support:support-compat:25.0.0 (*)
| | \--- com.android.support:animated-vector-drawable:25.0.0
| | \--- com.android.support:support-vector-drawable:25.0.0 (*)
| +--- com.android.support:design:25.0.0
| | +--- com.android.support:support-v4:25.0.0 (*)
| | +--- com.android.support:appcompat-v7:25.0.0 (*)
| | +--- com.android.support:recyclerview-v7:25.0.0
| | | +--- com.android.support:support-annotations:25.0.0
| | | +--- com.android.support:support-compat:25.0.0 (*)
| | | \--- com.android.support:support-core-ui:25.0.0 (*)
| | \--- com.android.support:transition:25.0.0
| | \--- com.android.support:support-v4:25.0.0 (*)
| \--- com.google.android:flexbox:0.2.3
| \--- com.android.support:appcompat-v7:23.3.0 -> 25.0.0 (*)
\--- com.squareup.leakcanary:leakcanary-android-no-op:1.4
releaseProvided - Classpath for only compiling the release sources.
No dependencies
releaseWearApp - Link to a wear app to embed for object 'release'.
No dependencies
retrolambdaConfig
\--- net.orfjackal.retrolambda:retrolambda:2.1.0
testAnnotationProcessor - Classpath for the annotation processor for 'test'.
No dependencies
testApk - Classpath packaged with the compiled 'test' classes.
No dependencies
testApt
\--- junit:junit:4.12
\--- org.hamcrest:hamcrest-core:1.3
testCompile - Classpath for compiling the test sources.
\--- junit:junit:4.12
\--- org.hamcrest:hamcrest-core:1.3
testDebugAnnotationProcessor - Classpath for the annotation processor for 'testDebug'.
No dependencies
testDebugApk - Classpath packaged with the compiled 'testDebug' classes.
No dependencies
testDebugCompile - Classpath for compiling the testDebug sources.
No dependencies
testDebugProvided - Classpath for only compiling the testDebug sources.
No dependencies
testDebugWearApp - Link to a wear app to embed for object 'testDebug'.
No dependencies
testProvided - Classpath for only compiling the test sources.
No dependencies
testReleaseAnnotationProcessor - Classpath for the annotation processor for 'testRelease'.
No dependencies
testReleaseApk - Classpath packaged with the compiled 'testRelease' classes.
No dependencies
testReleaseCompile - Classpath for compiling the testRelease sources.
No dependencies
testReleaseProvided - Classpath for only compiling the testRelease sources.
No dependencies
testReleaseWearApp - Link to a wear app to embed for object 'testRelease'.
No dependencies
testWearApp - Link to a wear app to embed for object 'test'.
No dependencies
wearApp - Link to a wear app to embed for object 'main'.
No dependencies

查看指定依赖树

gradle -q app:dependencies --configuration debug

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
panda:Gank panda$ gradle -q app:dependencies --configuration compile
------------------------------------------------------------
Project :app
------------------------------------------------------------
compile - Classpath for compiling the main sources.
+--- io.realm:realm-annotations:2.0.0
+--- com.android.support:appcompat-v7:24.2.1
| \--- com.android.support:animated-vector-drawable:24.2.1
+--- com.android.support:recyclerview-v7:25.0.0
| +--- com.android.support:support-annotations:25.0.0
| +--- com.android.support:support-compat:25.0.0
| | \--- com.android.support:support-annotations:25.0.0
| \--- com.android.support:support-core-ui:25.0.0
| \--- com.android.support:support-compat:25.0.0 (*)
+--- com.github.CymChad:BaseRecyclerViewAdapterHelper:2.2.9
+--- com.youzan:titan:0.2.5
| \--- com.android.support:recyclerview-v7:23.3.0 -> 25.0.0 (*)
+--- com.android.support:customtabs:25.0.0
| \--- com.android.support:support-annotations:25.0.0
+--- com.squareup.okhttp3:logging-interceptor:3.4.1
+--- com.squareup.retrofit2:retrofit:2.1.0
+--- com.squareup.retrofit2:converter-gson:2.1.0
| \--- com.google.code.gson:gson:2.7
+--- com.squareup.retrofit2:adapter-rxjava:2.1.0
| \--- io.reactivex:rxjava:1.1.5 -> 1.1.6
+--- jp.wasabeef:picasso-transformations:2.1.0
+--- io.reactivex:rxandroid:1.2.1
+--- xiaofei.library:hermes-eventbus:0.2.0
| +--- xiaofei.library:concurrent-utils:0.1.4
| +--- org.greenrobot:eventbus:3.0.0
| \--- xiaofei.library:hermes:0.6.1
+--- com.facebook.stetho:stetho-okhttp3:1.4.1
| \--- com.google.code.findbugs:jsr305:2.0.1
+--- com.android.support:support-v4:25.0.0
| +--- com.android.support:support-compat:25.0.0 (*)
| +--- com.android.support:support-media-compat:25.0.0
| | \--- com.android.support:support-compat:25.0.0 (*)
| +--- com.android.support:support-core-utils:25.0.0
| | \--- com.android.support:support-compat:25.0.0 (*)
| +--- com.android.support:support-core-ui:25.0.0 (*)
| \--- com.android.support:support-fragment:25.0.0
| +--- com.android.support:support-compat:25.0.0 (*)
| +--- com.android.support:support-media-compat:25.0.0 (*)
| +--- com.android.support:support-core-ui:25.0.0 (*)
| \--- com.android.support:support-core-utils:25.0.0 (*)
+--- com.android.support:cardview-v7:25.0.0
| \--- com.android.support:support-annotations:25.0.0
+--- com.jakewharton:butterknife:8.3.0
| +--- com.jakewharton:butterknife-annotations:8.3.0
| | \--- com.android.support:support-annotations:24.1.0 -> 25.0.0
| \--- com.android.support:support-annotations:24.1.0 -> 25.0.0
+--- org.jsoup:jsoup:1.9.2
+--- com.google.code.gson:gson:2.7
+--- com.squareup.okhttp3:okhttp:3.4.1
| \--- com.squareup.okio:okio:1.9.0
+--- com.squareup.picasso:picasso:2.5.2
+--- io.reactivex:rxjava:1.1.6
+--- com.tencent.bugly:crashreport:2.2.2
+--- com.facebook.stetho:stetho:1.4.1
| +--- commons-cli:commons-cli:1.2
| \--- com.google.code.findbugs:jsr305:2.0.1
+--- com.facebook.stetho:stetho-js-rhino:1.4.1
| +--- com.google.code.findbugs:jsr305:2.0.1
| \--- org.mozilla:rhino:1.7.6
\--- io.realm:realm-android-library:2.0.0
+--- io.realm:realm-annotations:2.0.0
\--- com.getkeepsafe.relinker:relinker:1.2.2
(*) - dependencies omitted (listed previously)

构建

先了解几个概念:

  1. Build Type: 构建类型。一般是 debug 和 release,也可以在 module 的 build.gradle 中自定义:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    android {
    ......
    ......
    buildTypes {
    debug {
    buildConfigField "String", "API_HOST", '"http://gank.io/api/"'
    debuggable true
    minifyEnabled false
    shrinkResources false
    zipAlignEnabled false
    signingConfig signingConfigs.debug
    }
    release {
    buildConfigField "String", "API_HOST", '"http://gank.io/api/"'
    minifyEnabled true
    shrinkResources true
    zipAlignEnabled true
    signingConfig signingConfigs.release
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    }
    ......
    ......
    }
  2. Product Flavor: 渠道名 比如下面我们配置的yingyongbaowandoujiabeta

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    productFlavors {
    yingyongbao {
    applicationId "com.sgb.gank"
    manifestPlaceholders = [APP_NAME: "Gank", CHANNEL_VALUE: 'yingyongbao', CHANNEL_ID: 1]
    }
    wandoujia {
    applicationId "com.sgb.gank"
    manifestPlaceholders = [APP_NAME: "Gank", CHANNEL_VALUE: 'wandoujia', CHANNEL_ID: 2]
    }
    beta {
    applicationId "com.sgb.gank.beta"
    manifestPlaceholders = [APP_NAME: "Gank.beta"]
    }
    }
  3. Build Variant: Product FlavorBuild Type的排列组合`

assemble+BuildType

./gradlew assembleRelease 构建所有渠道的 release 版本

assemble+ProductFlavor

./gradlew assembleYingyongbao 构建指定渠道的所有 Build Type 版本

asselmbe+BuildVariant

./gradlew assembleYingyongbaoRelease 构建指定渠道的指定版本

未完待续。。。