Ionic build android failes

Hello guys after installing few ngCordova plugins ionic build android started to fail
I have update the sdk to the latest… but still got this error. Any thoughts about this issue ?

Following things can be seen as errors:

-compile:
[javac] Compiling 4 source files to C:\Users\PC\bazar\platforms\android\ant- build\classes 
[javac] warning: [options] source value 1.5 is obsolete and will be removed
in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed
in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use
-Xlint:-options.
    [javac] C:\Users\PC\bazar\platforms\android\src\org\apache\cordova\file\Loca
lFilesystem.java:414: error: cannot find symbol
    [javac]         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {

[javac]                                                         ^
[javac]   symbol:   variable LOLLIPOP
[javac]   location: class VERSION_CODES
[javac] C:\Users\PC\bazar\platforms\android\src\org\apache\cordova\file\Loca
lFilesystem.java:416: error: cannot find symbol
    [javac]             for (File f : context.getExternalMediaDirs()) {
    [javac]                                  ^
    [javac]   symbol:   method getExternalMediaDirs()
    [javac]   location: variable context of type Context
    [javac] 2 errors
    [javac] 3 warnings
1 Like

I’m getting this exact same error. Did you ever figure out how to solve yours?