安装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

相关文章:

  • 2021-09-09
  • 2021-09-07
  • 2021-12-13
  • 2021-11-13
  • 2021-08-19
  • 2021-08-20
  • 2021-06-25
  • 2021-07-26
猜你喜欢
  • 2021-11-18
  • 2021-11-16
  • 2021-11-16
  • 2021-09-06
  • 2021-12-15
相关资源
相似解决方案