title: Building phone gap app for Android failing
body: <p>When trying to build my phone gap app for android using</p>
  
  <pre><code>sudo phonegap build android
  </code></pre>
  
  <p>it fails with this error: </p>
  
  <pre><code>:compileDebugJava
  /Users/youssefsami/Library/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConvert/platforms/android/src/org/apache/cordova/inappbrowser/InAppBrowser.java:120: error: cannot find symbol
  
                                  || Config.isUrlWhiteListed(url)) {
                                           ^
  
    symbol:   method isUrlWhiteListed(String)
  
    location: class Config
  
  Note: Some input files use or override a deprecated API.
  
  Note: Recompile with -Xlint:deprecation for details.
  
  1 error
  
  
  FAILED
  
  
  
  FAILURE: 
  Build failed with an exception.
  
  
  
  * What went wrong:
  
  Execution failed for task ':compileDebugJava'.
  
  &gt; 
  Compilation failed; see the compiler error output for details.
  
  
  
  * Try:
  
  Run with 
  --stacktrace option to get the stack trace. Run with 
  --info or 
  --debug
   option to get more log output.
  
  
  
  BUILD FAILED
  
  
  Total time: 5.607 secs
  
  
  /Users/youssefsami/Library/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConvert/platforms/android/cordova/node_modules/q/q.js:126
                      throw e;
                            ^
  
  Error code 1 for command: /Users/youssefsami/Library/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConvert/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/youssefsami/Library/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConvert/platforms/android/build.gradle,-Dorg.gradle.daemon=true
  
  ERROR building one of the platforms: Error: /Users/youssefsami/Library/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConvert/platforms/android/cordova/build: Command failed with exit code 1
  You may not have the required environment or OS to build this project
  
  Error: /Users/youssefsami/Library/Mobile Documents/com~apple~CloudDocs/Developer/Mobile Apps/UzuConvert/platforms/android/cordova/build: Command failed with exit code 1
      at ChildProcess.whenDone (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
      at ChildProcess.emit (events.js:110:17)
      at maybeClose (child_process.js:1015:16)
      at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
  </code></pre>
  
  <p>I tried setting the java_home to the java alias in lib exec but still nothing. Any ideas on what maybe causing the problem?</p>