What went wrong:
Execution failed for task ':app:preDebugBuild'.
Android dependency 'com.android.support:support-v4' has different version for the compile (26.1.0) and runtime (27.1.1) classpath. You should manually set the same version via DependencyResolution
FAILURE: Build failed with an exception.
Execution failed for task ':app:preDebugBuild'.