Starting a Gradle Daemon (subsequent builds will be faster)
…
…
…
Configure project :app
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
What went wrong: A problem occurred evaluating project ‘:app’. > Failed to apply plugin [id ‘com.android.application’]
** > Gradle version 2.10 is required. Current version is 4.9. If using the gradle wrapper, try editing the distributionUrl in /home/circleci/repo/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip**
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
A problem occurred evaluating project ‘:app’. > Failed to apply plugin [id ‘com.android.application’]
** > Gradle version 2.10 is required. Current version is 4.9. If using the gradle wrapper, try editing the distributionUrl in /home/circleci/repo/gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip**
Error:
1: I’m getting this when i use circleci/android:api-25-alpha as a docker image failed to find target with hash string ‘android-24’ in: /opt/android/sdk
2: When i use circleci/openjdk:8-jdk as a docker image, getting this error SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
Also find below the version code which is defined in my build.gradle
@swatisoni-ewebcore: please learn to use Markdown, it is the standard way of showing formatted text-based content. PDFs are not a good way to do this, as they collapse spaces when using the clipboard.