使用Vim Syntastic与
android项目. (例如com.myproject.project)它不知道在我的项目中但在当前文件之外声明的类.例如以下标志错误:
import com.myproject.project.SomeClass; ... SomeClass someclass = new SomeClass();
看到这篇文章
Configure syntastic to work fine with Android projects解决了这个问题:
方法1:
内部vim编辑器
:SyntasticJavacEditClasspath
/path-to-your-app/bin/classes /path-to-your-android-sdk/platforms/android-19/*.jar
let g:syntastic_java_javac_classpath = "/<path-to-your-app>/bin/classes:/<path-to-your-android-sdk>/platforms/android-19/*.jar"