freeline的使用

Download


Configure your project-level build.gradle to include freeline plugin:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.antfortune.freeline:gradle:0.8.6'
    }
}

Then, apply the freeline plugin in your android application module's build.gradle:

apply plugin: 'com.antfortune.freeline'

android {
    ...
}

Finally, execute the gradle task initFreeline to download freeline dependencies.

  • Windows[CMD]: gradlew initFreeline
  • Linux/Mac: ./gradlew initFreeline

For Chinese users, if you got stuck in the download process, you can execute gradlew initFreeline -Pmirror to speed up the progress.

Usage

You can install freeline plugin in Android Studio for quick usage.

How to install? In Android Studio, go to:

  • MacOS

    Android Studio → Preferences... → Plugins → Browse repositories...

  • Windows and Linux

    File → Settings... → Plugins → Browse repositories...

and search for freeline.

Just use the Run Freeline button and enjoy it.

The plugin will show you the latest update of Freeline, you can use this plugin to update Freeline.

Android 关于使用阿里Freeline遇到的问题

https://github.com/alibaba/freeline

http://www.jianshu.com/p/dd105d9720cc

https://mp.weixin.qq.com/s/bCYWDsOPzXv8W6U_iQE9VA

卡在运行python

报错:E:\Android\CustomVIew>python freeline.py -f
Traceback (most recent call last):
  File "freeline.py", line 7, in <module>
    from freeline_core.dispatcher import Dispatcher
  File "E:\Android\CustomVIew\freeline_core\dispatcher.py", line 8, in <module>
    from command import AbstractCommand
ImportError: No module named 'command'

解决:

使用python 2.7系列 可破。

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值