Hey, I’m getting a build failure related to gradle. I’m sure for some reason an old version of gradle is trying to compile my project, but I’m not sure why because I have new versions specified in my gradle.build files.
Here is the error.
FAILURE: Build failed with an exception.
* Where:
Build file '/home/ubuntu/Android/app/build.gradle' line: 16
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not create plugin of type 'AppPlugin'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
export TERM="dumb"
if [ -e ./gradlew ]; then ./gradlew dependencies;else gradle dependencies;fi
returned exit code 1
Total time: 4.654 secs Action failed: gradle dependencies
It’s not liking this line, as Google has deprected the ‘android’ plugin name
apply plugin: 'com.android.application'
I have the following gradle dependency in my projects build.gradle
classpath 'com.android.tools.build:gradle:1.3.0'
I’m looking for other solutions, but is gradle baked into my container and needs to be upgraded or something else obvious?