您好我正在尝试为我的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
答案 0 :(得分:0)
哦,现在我明白了,这个变量不是动态设置的,我必须在local.properties中自己设置它或类似的东西
android.jar=C:/Program Files (x86)/Android/android-sdk/platforms/android-17/android.jar