@jdm79, I have already tried this. It just changed the error to:
Error: /Users/danielkucal/Applications/Angular2/myApp/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
Build file ‘/Users/daniel/Applications/Angular2/myApp/platforms/android/build.gradle’ line: 20
- What went wrong:
A problem occurred evaluating root project ‘android’.
Failed to apply plugin [id ‘com.android.application’]
Gradle version 2.2 is required. Current version is 3.3. If using the gradle wrapper, try editing the distributionUrl in /Users/daniel/Applications/Angular2/myApp/gradle/wrapper/gradle-wrapper.properties to gradle-2.2-all.zip
But then I changed gradle version in
platform/android/cordova/lib/builders/GradleBuilder.js (like described here) and it finally works! Thanks.