Infer初體驗 for Android

安裝Pythonandroid

Infer下載地址:https://github.com/facebook/infergit

配置環境變量github

vi ~/.bash_profilebash

#infergradle

export PATH=${PATH}:/Users/zbtu/Documents/Develope/infer/infer/binui

 

source ~/.bash_profile(當即生效).net

 

進入android project目錄it

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

相關文章
相關標籤/搜索