title: Ionic Capacitor app give me lots of errors
body: <p>I'm on Windows 10 and I've created a Ionic 5.0.7 app with Capacitor 2.0.0.</p>
  
  <p>I use this command to build app:</p>
  
  <pre><code>ionic build
  </code></pre>
  
  <p>After, I use this command:</p>
  
  <pre><code>npx cap sync
  </code></pre>
  
  <p>And, to finish, I use this command to open Android Studio:</p>
  
  <pre><code>npx cap open android
  </code></pre>
  
  <p>The first problem come during building on Android Studio:</p>
  
  <blockquote>
    <p>org.gradle.api.reflect.ObjectInstantiationException: Could not create
    an instance of type
    com.novoda.release.internal.compat.gradle5_3.AndroidSoftwareComponentCompat_Gradle_5_3.</p>
    
    <p>Caused by: org.gradle.api.reflect.ObjectInstantiationException: Could not create 
    an instance of type
    com.novoda.release.internal.compat.gradle5_3.AndroidSoftwareComponentCompat_Gradle_5_3.</p>
  </blockquote>
  
  <p>And...</p>
  
  <blockquote>
    <p>java.lang.NoClassDefFoundError:
    org/gradle/api/internal/java/usagecontext/LazyConfigurationUsageContext</p>
    
    <p>Caused by: java.lang.NoClassDefFoundError:
    org/gradle/api/internal/java/usagecontext/LazyConfigurationUsageContext</p>
  </blockquote>
  
  <p>I've other random errors... It's weird...</p>