Not generating android apk


#1
[12:36:37]  build dev started ...
[12:36:37]  clean started ...
[12:36:37]  clean finished in 53 ms
[12:36:37]  copy started ...
[12:36:38]  copy finished in 663 ms
[12:36:38]  deeplinks started ...
[12:36:39]  deeplinks finished in 845 ms
[12:36:39]  transpile started ...
[12:36:49]  transpile finished in 10.04 s
[12:36:49]  preprocess started ...
[12:36:49]  preprocess finished in 1 ms
[12:36:49]  webpack started ...
[12:37:06]  webpack finished in 17.46 s
[12:37:06]  sass started ...
[12:37:09]  sass finished in 2.77 s
[12:37:09]  postprocess started ...
[12:37:09]  postprocess finished in 69 ms
[12:37:09]  lint started ...
[12:37:09]  build dev finished in 32.06 s
> cordova build android
Running command: "C:\Program Files\nodejs\node.exe" I:\locumkit\hooks\after_prepare\ionic-minify.js I:\locumkit

[12:37:23]  lint finished in 13.80 s
Preparing Firebase on Android
ANDROID_HOME=I:\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_151
Subproject Path: CordovaLib
google-services plugin could not detect any version for com.google.android.gms or com.google.firebase, default version: 9.0.0 will be used.                                                                                                     please apply google-services plugin at the bottom of the build file.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_est8k3w1kya2ozvc2i2kf8lvz.run(I:\locumkit\platforms\android\build.gradle:146)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.

Incremental java compilation is an incubating feature.

The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
:preBuild
 UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:preReleaseBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
 UP-TO-DATE

:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint UP-TO-DATE
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders
 UP-TO-DATE

:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
:CordovaLib:bundleDebug UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
 UP-TO-DATE

:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:copyReleaseLint
 UP-TO-DATE
:CordovaLib:mergeReleaseShaders
 UP-TO-DATE
:CordovaLib:compileReleaseShaders
 UP-TO-DATE

:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets
 UP-TO-DATE

:CordovaLib:mergeReleaseProguardFiles
 UP-TO-DATE
:CordovaLib:packageReleaseRenderscript
 UP-TO-DATE
:CordovaLib:compileReleaseRenderscript
 UP-TO-DATE

:CordovaLib:generateReleaseResValues
 UP-TO-DATE

:CordovaLib:generateReleaseResources
 UP-TO-DATE
:CordovaLib:packageReleaseResources
 UP-TO-DATE
:CordovaLib:processReleaseManifest UP-TO-DATE
:CordovaLib:generateReleaseBuildConfig UP-TO-DATE
:CordovaLib:processReleaseResources
 UP-TO-DATE

:CordovaLib:generateReleaseSources UP-TO-DATE
:CordovaLib:incrementalReleaseJavaCompilationSafeguard
 UP-TO-DATE
:CordovaLib:compileReleaseJavaWithJavac
 UP-TO-DATE
:CordovaLib:processReleaseJavaRes
 UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease
 UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
 UP-TO-DATE
:CordovaLib:mergeReleaseJniLibFolders
 UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
 UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
:CordovaLib:bundleRelease
 UP-TO-DATE
:prepareAndroidArchLifecycleRuntime100Library UP-TO-DATE
:preDebugAndroidTestBuild UP-TO-DATE
:prepareComAndroidSupportMultidex101Library
 UP-TO-DATE
:prepareComAndroidSupportSupportCompat2610Library
 UP-TO-DATE
:prepareComAndroidSupportSupportCoreUi2610Library UP-TO-DATE
:prepareComAndroidSupportSupportCoreUtils2610Library UP-TO-DATE
:prepareComAndroidSupportSupportFragment2610Library UP-TO-DATE
:prepareComAndroidSupportSupportMediaCompat2610Library

UP-TO-DATE
:prepareComAndroidSupportSupportV132610Library
 UP-TO-DATE
:prepareComAndroidSupportSupportV42610Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl1200Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesAnalyticsImplLicense1200Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesBase1200Library
 UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesBaseLicense1200Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesBasement1200Library
 UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesBasementLicense1200Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesTagmanager1200Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesTagmanagerApi1200Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesTagmanagerApiLicense1200Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesTagmanagerLicense1200Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesTasks1200Library UP-TO-DATE
:prepareComGoogleAndroidGmsPlayServicesTasksLicense1200Library UP-TO-DATE
:prepareComGoogleFirebaseFirebaseAnalytics1200Library UP-TO-DATE
:prepareComGoogleFirebaseFirebaseAnalyticsImpl1200Library
 UP-TO-DATE
:prepareComGoogleFirebaseFirebaseAnalyticsImplLicense1200Library
 UP-TO-DATE
:prepareComGoogleFirebaseFirebaseAnalyticsLicense1200Library
 UP-TO-DATE

:prepareComGoogleFirebaseFirebaseAuth1200Library
 UP-TO-DATE
:prepareComGoogleFirebaseFirebaseAuthLicense1200Library
 UP-TO-DATE

:prepareComGoogleFirebaseFirebaseCommon1200Library
 UP-TO-DATE
:prepareComGoogleFirebaseFirebaseCommonLicense1200Library
 UP-TO-DATE
:prepareComGoogleFirebaseFirebaseConfig1200Library
 UP-TO-DATE
:prepareComGoogleFirebaseFirebaseConfigLicense1200Library

UP-TO-DATE
:prepareComGoogleFirebaseFirebaseCore1200Library
 UP-TO-DATE
:prepareComGoogleFirebaseFirebaseCrash1200Library
 UP-TO-DATE
:prepareComGoogleFirebaseFirebaseCrashLicense1200Library
 UP-TO-DATE
:prepareComGoogleFirebaseFirebaseIid1200Library
 UP-TO-DATE
:prepareComGoogleFirebaseFirebaseIidLicense1200Library
 UP-TO-DATE
:prepareComGoogleFirebaseFirebaseMessaging1200Library
 UP-TO-DATE
:prepareComGoogleFirebaseFirebaseMessagingLicense1200Library UP-TO-DATE
:prepareComPaypalSdkPaypalAndroidSdk2153Library UP-TO-DATE
:prepareIoCardAndroidSdk540Library UP-TO-DATE
:prepareMeLeolinShortcutBadger1117Library UP-TO-DATE
:prepareOrgApacheCordovaCordovaLib630DebugLibrary UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl
 UP-TO-DATE
:compileDebugRenderscript
 UP-TO-DATE

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugGoogleServices'.
> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.0.0.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
:generateDebugBuildConfig UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:processDebugGoogleServices
Found com.google.android.gms:play-services-tagmanager:+, but version 9.0.0 is needed for the google-services plugin.
:processDebugGoogleServices FAILED

BUILD FAILED

Total time: 7.229 secs
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugGoogleServices'.
> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.0.0.                                                     
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

[ERROR] An error occurred while running cordova build android (exit code 1).

run ionic info

I removed all plugin
installled new but still getting errors


#2

Your Cordova tooling seems to be out of date, which might be causing all kinds of problems.
You can read about how to figure out the current Cordova versions and how to update CLI, platforms and plugins here: https://ionic.zone/cordova/update