Run with -info or -debug option to get more log output.Įrror: /usr/src/app/platforms/android/gradlew: Command failed with exit code 1 Error output:įailed to build apk check logs above for errors. Or else only change gradle version with Click here 5.1. Run with -stacktrace option to get the stack trace. Update your Android studio editor with 3.4.2 or gradle version 5.1.1 you need to update your editor. We recommend the following steps for all users: Try running gradle help -scan and view the deprecations view of the generated build scan. With refreshVersions, you are done in 10 seconds See benchmarks here. gradle folder and then Wrapper directory and then delete the file folder with gradle version you are trying to install e.g. If using the gradle wrapper, try editing the distributionUrl in /usr/src/app/gradle/wrapper/gradle-wrapper.properties to With the gradle-versions-plugin it will take about 2 minutes. Go to /user/.gradle on Windows and on Mac by writing /.gradle/ in the spotlight search box. The assistant allows you to toggle the commands that will be executed on your project to upgrade to a higher version of AGP, preview exactly which files will be affected by the AGP upgrade, and lastly globally update deprecated configurations. I just started trying packaging with ionic pro.īuild file ‘/usr/src/app/platforms/android/adle’ line: 20Ī problem occurred evaluating root project ‘android’.įailed to apply plugin android studio to the latest gradle version how to update gradle from 2.x update gradle android gradle plugin android build gradle version upgrade. If 'preview tool' you saying is about the AGP Upgrade Assistant. Android Studio and the Android Gradle Plugin Studio 1.