你好,我正在尝试为我的android项目运行findbugs
我已经定义了
<auxClasspath path="${android.jar}" />
但是findbugs仍然试图分析文件,并且var似乎没有被定义为
[echo] ${android.jar}
[findbugs] Executing findbugs FindBugsTask from ant task
[findbugs] Running FindBugs...
[findbugs] Nov 06, 2014 1:52:13 PM java.util.prefs.WindowsPreferences <init>
[findbugs] The following errors occurred during analysis:
[findbugs] File not found: filesystem:APPDIRHIDDEN${android.jar}
[findbugs] The following classes needed for analysis were missing:
[findbugs] android.app.Activity
[findbugs] android.view.MenuItem
[findbugs] android.os.Bundle
[findbugs] android.view.Menu
[findbugs] android.view.MenuInflater
[findbugs] android.util.Log
[findbugs]
[findbugs] Missing classes: 4
[findbugs] Analysis errors: 1
[findbugs] Calculating exit code...
[findbugs] Setting 'errors encountered' flag (4)
[findbugs] Setting 'missing class' flag (2)
[findbugs] Exit code set to: 6
[findbugs] Java Result: 6
哦,现在我得到了它,这个变量不是动态设置的,我必须在local.properties或类似的东西中自己设置它
android.jar=C:/Program Files (x86)/Android/android-sdk/platforms/android-17/android.jar