Setting up Syntastic for Android Java Development

I am trying to use VIM and Syntastic for Java Android development. I am getting many "package does not exist" and "cannot find symbol" errors. I tried to set my path in the .vimrc class using let g:syntastic_java_javac_config_file_enabled=1 let g:syntastic_java_javac_classpath = "path/to/sdk:path/to/project/app/libs"

However, there are still errors coming from Syntastic in Vim. Android Studio shows no errors, project build is fine.

I would like to use Vim for editing and Android Studio for creating and importing, etc.

I tried to run javac

in a file and get the same errors, maybe I need to add paths to the CLASSPATH environment variable?

+3


source to share


1 answer


This link will help you solve this problem.



Note. In my case, adding /<path to android-sdk>/platforms/android-21/*.jar

to SyntasticJavacEditClasspath

will still complain about on android.support.v7 as it is in my gradle dependency list.

0


source







All Articles