Android Engineering uses Ali's freeline to quickly compile

Source: Internet
Author: User
Git address: Https://github.com/alibaba/freeline Originally compiled a few minutes or even a few 10 minutes of Android project, the use of freeline,1 minutes or even a few seconds to compile, such as, only 4.2 seconds, compile it's so fast!

Once the Gradle file is configured, the Freeline related package is automatically downloaded from the Web. Once downloaded, add Freelinecore.init (this) to the Ctripbaseapplication.java file. You will then need to run the cmd command under the project (shift+ right) to open the cmd command under the current folder and try it only on the cmd command line to execute the command. Execution: Gradlew.bat Initfreeline The first time you run or uninstall the app on your phone, you need to execute the command: Python freeline.py-f executes the command every time after it is executed: python freeline.py changed content: only need to input when submitting: Git add cttour/. Other Commitctripbaseapplication.java do not need to change the Gradle file: 1, three changes to modify the content: 1, 9 lines to unlock the comments: Jcenter ()//This is the default library, access difficulties 2, 20 line Add statement classpath ' com.antfortune.freeline:gradle:0.5.5 ' 3, 28 lines add: Jcenter () 2, 2 Modify the modified content: 8 line add: Apply plugin: ' Com.antfortune.freeline ' 17 line add: freeline {hack true} 3, 1 Modify 33 lines add: Compile ' com.antfortune.freeline:runtime:0.5.5 '

Android Engineering uses Ali's freeline to quickly compile

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.