question

Cristian Teaca avatar image
Cristian Teaca asked

Error:Gradle 2.4 requires Android Gradle plugin 1.2.0

Error:Gradle 2.4 requires Android Gradle plugin 1.2.0 (or newer) but project is using version 1.1.3. Please use Android Gradle plugin 1.2.0 or newer. Fix plugin version and sync project
fire tablet
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jamie Grossman avatar image
Jamie Grossman answered
Hi there, Thanks for the post. Your link doesn't work and I am not exactly sure what you are referring to, so any more information you could provide would be greatly appreciated. Thanks! Jamie
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mike Jirout avatar image
Mike Jirout answered
Jamie@Amazon, That is not a real link. That is the error message you get if we use the latest Amazon Gradle Build. The latest Amazon Gradle Build is 1.1.3 which is not supported by the lastest version of Android Studio since it uses Gradle 2.4.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Michael M. Desmond avatar image
Michael M. Desmond answered
I'm getting this message trying to build APK using Android Studio. Project built via cordova. Any additional information that you found back in July?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered
The problem could be related to the fact that Android Studio could be pointing to its own version of Gradle instead of the project Gradle wrapper. A workaround would be to go into File > Settings > "Build, Execution, Deployment" > "Build Tools" > Gradle and change it to "Use default gradle wrapper (recommended)". This can fix it without having to change the dependencies. Please give it a try and let us know whether it works for you. Thanks!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.