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.
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系列 可破。