title: InAppBrowser build cannot find symbol
body: <p>I'm building a Cordova App from VS2017 with Tools for Apache Cordova, the app is deadly simple, it uses:</p>
  
  <ul>
  <li>Cordova 6.3.1</li>
  <li>node.js 443</li>
  <li>npm 1.15.0</li>
  <li>cordova-simulate 0.3.13</li>
  <li>cordova-android 5.2.1</li>
  <li>cordova-ios 4.2.0</li>
  <li>cordova-plugin-inappbrowser 3.1.0</li>
  <li>cordova-plugin-whitelist 1.2.2</li>
  </ul>
  
  <p>config.xml content:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;widget defaultlocale="it-IT" id="com.test.test" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:vs="http://schemas.microsoft.com/appx/2014/htmlapps"&gt;
    &lt;name&gt;Test&lt;/name&gt;
    &lt;description&gt;Test&lt;/description&gt;
    &lt;author email="dev@cordova.apache.org" href="http://cordova.io"&gt;test&lt;/author&gt;
    &lt;vs:template-name&gt;BlankJS&lt;/vs:template-name&gt;
    &lt;content src="index.html" /&gt;
    &lt;preference name="SplashScreen" value="screen" /&gt;
    &lt;preference name="windows-target-version" value="10.0" /&gt;
    &lt;plugin name="cordova-plugin-whitelist" spec="1.2.2" /&gt;
    &lt;access origin="*" /&gt;
    &lt;allow-intent href="*" /&gt;
    &lt;allow-navigation href="*" /&gt;
    &lt;platform name="android"&gt;
      &lt;allow-intent href="market:*" /&gt;
    &lt;/platform&gt;
    &lt;platform name="ios"&gt;
      &lt;allow-intent href="itms:*" /&gt;
      &lt;allow-intent href="itms-apps:*" /&gt;
    &lt;/platform&gt;
    &lt;platform name="android"&gt;
      &lt;icon density="ldpi" src="res/icons/android/icon-36-ldpi.png" /&gt;
      &lt;icon density="mdpi" src="res/icons/android/icon-48-mdpi.png" /&gt;
      &lt;icon density="hdpi" src="res/icons/android/icon-72-hdpi.png" /&gt;
      &lt;icon density="xhdpi" src="res/icons/android/icon-96-xhdpi.png" /&gt;
    &lt;/platform&gt;
    &lt;platform name="ios"&gt;
      &lt;icon height="180" src="res/icons/ios/icon-60-3x.png" width="180" /&gt;
      &lt;icon height="60" src="res/icons/ios/icon-60.png" width="60" /&gt;
      &lt;icon height="120" src="res/icons/ios/icon-60-2x.png" width="120" /&gt;
      &lt;icon height="76" src="res/icons/ios/icon-76.png" width="76" /&gt;
      &lt;icon height="152" src="res/icons/ios/icon-76-2x.png" width="152" /&gt;
      &lt;icon height="40" src="res/icons/ios/icon-40.png" width="40" /&gt;
      &lt;icon height="80" src="res/icons/ios/icon-40-2x.png" width="80" /&gt;
      &lt;icon height="57" src="res/icons/ios/icon-57.png" width="57" /&gt;
      &lt;icon height="114" src="res/icons/ios/icon-57-2x.png" width="114" /&gt;
      &lt;icon height="72" src="res/icons/ios/icon-72.png" width="72" /&gt;
      &lt;icon height="144" src="res/icons/ios/icon-72-2x.png" width="144" /&gt;
      &lt;icon height="29" src="res/icons/ios/icon-small.png" width="29" /&gt;
      &lt;icon height="58" src="res/icons/ios/icon-small-2x.png" width="58" /&gt;
      &lt;icon height="50" src="res/icons/ios/icon-50.png" width="50" /&gt;
      &lt;icon height="100" src="res/icons/ios/icon-50-2x.png" width="100" /&gt;
    &lt;/platform&gt;
    &lt;platform name="windows"&gt;
      &lt;icon height="150" src="res/icons/windows/Square150x150Logo.scale-100.png" width="150" /&gt;
      &lt;icon height="360" src="res/icons/windows/Square150x150Logo.scale-240.png" width="360" /&gt;
      &lt;icon height="30" src="res/icons/windows/Square30x30Logo.scale-100.png" width="30" /&gt;
      &lt;icon height="310" src="res/icons/windows/Square310x310Logo.scale-100.png" width="310" /&gt;
      &lt;icon height="44" src="res/icons/windows/Square44x44Logo.scale-100.png" width="44" /&gt;
      &lt;icon height="106" src="res/icons/windows/Square44x44Logo.scale-240.png" width="106" /&gt;
      &lt;icon height="70" src="res/icons/windows/Square70x70Logo.scale-100.png" width="70" /&gt;
      &lt;icon height="71" src="res/icons/windows/Square71x71Logo.scale-100.png" width="71" /&gt;
      &lt;icon height="170" src="res/icons/windows/Square71x71Logo.scale-240.png" width="170" /&gt;
      &lt;icon height="50" src="res/icons/windows/StoreLogo.scale-100.png" width="50" /&gt;
      &lt;icon height="120" src="res/icons/windows/StoreLogo.scale-240.png" width="120" /&gt;
      &lt;icon height="150" src="res/icons/windows/Wide310x150Logo.scale-100.png" width="310" /&gt;
      &lt;icon height="360" src="res/icons/windows/Wide310x150Logo.scale-240.png" width="744" /&gt;
    &lt;/platform&gt;
    &lt;platform name="android"&gt;
      &lt;splash density="land-hdpi" src="res/screens/android/screen-hdpi-landscape.png" /&gt;
      &lt;splash density="land-ldpi" src="res/screens/android/screen-ldpi-landscape.png" /&gt;
      &lt;splash density="land-mdpi" src="res/screens/android/screen-mdpi-landscape.png" /&gt;
      &lt;splash density="land-xhdpi" src="res/screens/android/screen-xhdpi-landscape.png" /&gt;
      &lt;splash density="port-hdpi" src="res/screens/android/screen-hdpi-portrait.png" /&gt;
      &lt;splash density="port-ldpi" src="res/screens/android/screen-ldpi-portrait.png" /&gt;
      &lt;splash density="port-mdpi" src="res/screens/android/screen-mdpi-portrait.png" /&gt;
      &lt;splash density="port-xhdpi" src="res/screens/android/screen-xhdpi-portrait.png" /&gt;
    &lt;/platform&gt;
    &lt;platform name="ios"&gt;
      &lt;splash height="480" src="res/screens/ios/screen-iphone-portrait.png" width="320" /&gt;
      &lt;splash height="960" src="res/screens/ios/screen-iphone-portrait-2x.png" width="640" /&gt;
      &lt;splash height="1024" src="res/screens/ios/screen-ipad-portrait.png" width="768" /&gt;
      &lt;splash height="2048" src="res/screens/ios/screen-ipad-portrait-2x.png" width="1536" /&gt;
      &lt;splash height="768" src="res/screens/ios/screen-ipad-landscape.png" width="1024" /&gt;
      &lt;splash height="1536" src="res/screens/ios/screen-ipad-landscape-2x.png" width="2048" /&gt;
      &lt;splash height="1136" src="res/screens/ios/screen-iphone-568h-2x.png" width="640" /&gt;
      &lt;splash height="1334" src="res/screens/ios/screen-iphone-portrait-667h.png" width="750" /&gt;
      &lt;splash height="2208" src="res/screens/ios/screen-iphone-portrait-736h.png" width="1242" /&gt;
      &lt;splash height="1242" src="res/screens/ios/screen-iphone-landscape-736h.png" width="2208" /&gt;
    &lt;/platform&gt;
    &lt;platform name="windows"&gt;
      &lt;splash height="300" src="res/screens/windows/SplashScreen.scale-100.png" width="620" /&gt;
      &lt;splash height="1920" src="res/screens/windows/SplashScreen.scale-240.png" width="1152" /&gt;
      &lt;splash height="1920" src="res/screens/windows/SplashScreenPhone.scale-240.png" width="1152" /&gt;
    &lt;/platform&gt;
    &lt;plugin name="cordova-plugin-inappbrowser" spec="~3.1.0" /&gt;
    &lt;preference name="Fullscreen" value="True" /&gt;
    &lt;preference name="android-minSdkVersion" value="15" /&gt;
    &lt;preference name="android-targetSdkVersion" value="28" /&gt;
    &lt;vs:toolsetVersion&gt;6.3.1&lt;/vs:toolsetVersion&gt;
    &lt;engine name="android" spec="~5.2.1" /&gt;
    &lt;engine name="ios" spec="~4.2.0" /&gt;
    &lt;engine name="windows" spec="~4.4.2" /&gt;
  &lt;/widget&gt;
  </code></pre>
  
  <p>when I build Android I get:</p>
  
  <blockquote>
    <p>1>MSBUILD : cordova-build error :
    c:\DemoApp\platforms\android\src\org\apache\cordova\inappbrowser\InAppBrowser.java:1190:
    error: cannot find symbol 1>MSBUILD : cordova-build error : 
    @TargetApi(Build.VERSION_CODES.N) 1>MSBUILD : cordova-build error :  ^
    1>MSBUILD : cordova-build error :  symbol: variable N 1>MSBUILD :
    cordova-build error :  location: class VERSION_CODES 1>MSBUILD :
    cordova-build error :
    c:\DemoApp\platforms\android\src\org\apache\cordova\inappbrowser\InAppBrowser.java:268:
    error: cannot find symbol 1>MSBUILD : cordova-build error :  if
    (android.os.Build.VERSION.SDK_INT &lt; android.os.Build.VERSION_CODES.O)
    1>MSBUILD : cordova-build error :  ^ 1>MSBUILD : cordova-build error :
    symbol: variable O 1>MSBUILD : cordova-build error :  location: class
    VERSION_CODES 1>MSBUILD : cordova-build error :
    c:\DemoApp\platforms\android\src\org\apache\cordova\inappbrowser\InAppBrowser.java:272:
    error: cannot find symbol 1>MSBUILD : cordova-build error : 
    ((InAppBrowserClient)inAppWebView.getWebViewClient()).waitForBeforeload
    = false; 1>MSBUILD : cordova-build error :  ^ 1>MSBUILD : cordova-build error :  symbol: method getWebViewClient() 1>MSBUILD :
    cordova-build error :  location: variable inAppWebView of type WebView
    1>MSBUILD : cordova-build error :
    c:\DemoApp\platforms\android\src\org\apache\cordova\inappbrowser\InAppBrowser.java:1191:
    error: method does not override or implement a method from a supertype
    1>MSBUILD : cordova-build error :  @Override 1>MSBUILD : cordova-build
    error :  ^</p>
  </blockquote>
  
  <p>I have the following Android SDK's:
  <a href="https://i.stack.imgur.com/Nht9p.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nht9p.png" alt="enter image description here"></a></p>
  
  <p>I tried to use the VS <code>Take latest patch</code> check and to update cordova-android to 8.0.0 from CLI, but Visual Studio still shows 5.2.1 in thr GUI and the issue remain.</p>