Infer初体验 for Android
安装Python
Infer下载地址:https://github.com/facebook/infer
配置环境变量
vi ~/.bash_profile
#infer
export PATH=${PATH}:/Users/zbtu/Documents/Develope/infer/infer/bin
source ~/.bash_profile(立即生效)
进入android project目录
cd /Users/zbtu/Documents/Develope/infer/examples/android_hello
./gradlew clean(重新编译)
infer -- ./gradlew build(执行)
等待执行完毕,就可以查看到输出结果了
inferTraceBugs(更详细的报告)
references:http://infer.liaohuqiu.net
https://github.com/facebook/infer
---------------------------------------------------------------------------------------------------------------------------------
copyright:http://www.cnblogs.com/anee/