I'm implementing CI process with my project using Jenkins tool. Seems that there's compile issue when using kotlin, here's my console output for the build:
What went wrong:
A problem occurred evaluating project ':TestProject'.
Plugin with id 'kotlin-android' not found.
ANDROID_HOME is set where the jenkins runs.
EDIT 1:
the issue fixed when i added 'ext.kotlin_version = '1.2.21'' to the buildscript.
Now the build fails because of dependency declaration:
What went wrong:
A problem occurred evaluating project ':TestProject'.
Could not find method api() for arguments [com.android.support:appcompat-v7:27.0.2] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
I'm declaring my dependencies with api annotation, since it's a submodule:
api "com.android.support:appcompat-v7:$android_support_version"
Jenkins won't recognise the api method