title: Error 'Unable to load PlatformApi from the platform' when trying to install Cordova Android Platform 9 and target Android API 29
body: <p>I have and app that run fine with Cordova 8.1.1 and Cordova Android Platform 8.1.2.
  Now, Google requires that all apps must be summitted using at least Android API 29. I already setup in the config.xml the following elements:</p>
  <pre><code>&lt;platorm name=&quot;android&quot;&gt;
          &lt;preference name=&quot;android-minSdkVersion&quot; value=&quot;22&quot; /&gt;
          &lt;preference name=&quot;android-targetSdkVersion&quot; value=&quot;29&quot; /&gt;
  &lt;/platorm&gt;
  </code></pre>
  <p>But cordova android 8.1.2 seems to ignore this requirement in the build steps.</p>
  <p>After reading the Cordova Blog Website I noticed that there's a new version for the Android platform. The new version 9.0.0 targets by default to API 29.</p>
  <p>I'm tried to install Cordova Android platform version 9:</p>
  <blockquote>
  <p>cordova platform add android@9.0.0</p>
  </blockquote>
  <p>but I get an error while doing it:</p>
  <pre><code>Unable to load PlatformApi from the platform. SyntaxError: Unexpected token {
  Unhandled &quot;error&quot; event. (The platform &quot;android&quot; does not appear to be a valid Cordova platform. It is missing API.js. android not supported.)
  </code></pre>
  <p>I'm currently using Cordova 8.1.2 and I need to update to Android platform version 9 so my app can be compiled with Android API 29 (requested by Google Play).</p>
  <ul>
  <li>Node version: v8.17.0</li>
  <li>Cordova version: 8.1.1</li>
  <li>Cordova Android: 9.0.0</li>
  </ul>
  <p>What I'm missing so I can add the Android platform and compile to API 29?</p>