Androidstudio 3.0 Upgrade Compile, Implementation brief description

Source: Internet
Author: User

1. Phenomena
Androidstudio before upgrading to 3.0, the Complie used by the reference library becomes implementation as follows:     3. Before    0 '    io.reactivex.rxjava2:rxandroid:2.0.1 ' io.reactivex.rxjava2:rxjava:2.1.3 '    3. After    0     ' io.reactivex.rxjava2:rxandroid:2.0.1 ' Io.reactivex.rxjava2:rxjava : 2.1.3 ' In addition to the above, there are the following: Androidtestcompile (former)   androidtestimplementation (after)   Testcompile (former) Testimplementation (rear)

As shown:

above two instruction description
compile: 如有模块之间存在依赖的话,引用是正常的。implementation: 引用的库只能在当前模块中使用,即便模块之间存在依赖关系的话,也不可以引用。说到以上,举一个不是很恰当的例子,有点像:Java中 public 与 private

Androidstudio 3.0 Upgrade Compile, Implementation brief description

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.