Unable to install android though ionic

$ ionic cordova build android

cordova build android
Android Studio project detected

cp: copyFileSync: could not write to dest file (code=EPERM):C:\Users\User\Desktop\baechat\platforms\android\app\src\main\assets\www\img\Thumbs.db

cp: copyFileSync: could not write to dest file (code=EPERM):C:\Users\User\Desktop\baechat\platforms\android\app\src\main\assets\www\lib\awlert\demo\resources\Thumbs.db

cp: copyFileSync: could not write to dest file (code=EPERM):C:\Users\User\Desktop\baechat\platforms\android\app\src\main\assets\www\lib\awlert\demo\resources\android\icon\Thumbs.db

cp: copyFileSync: could not write to dest file (code=EPERM):C:\Users\User\Desktop\baechat\platforms\android\app\src\main\assets\www\lib\awlert\demo\resources\ios\icon\Thumbs.db

cp: copyFileSync: could not write to dest file (code=EPERM):C:\Users\User\Desktop\baechat\platforms\android\app\src\main\assets\www\lib\ionic-ion-tinder-cards\example\www\res\icon\android\Thumbs.db

cp: copyFileSync: could not write to dest file (code=EPERM):C:\Users\User\Desktop\baechat\platforms\android\app\src\main\assets\www\lib\ionic-ion-tinder-cards\example\www\res\icon\bada-wac\Thumbs.db

cp: copyFileSync: could not write to dest file (code=EPERM):C:\Users\User\Desktop\baechat\platforms\android\app\src\main\assets\www\lib\ionic-ion-tinder-cards\example\www\res\icon\bada\Thumbs.db

cp: copyFileSync: could not write to dest file (code=EPERM):C:\Users\User\Desktop\baechat\platforms\android\app\src\main\assets\www\lib\ionic-ion-tinder-cards\example\www\res\icon\blackberry\Thumbs.db

cp: copyFileSync: could not write to dest file (code=EPERM):C:\Users\User\Desktop\baechat\platforms\android\app\src\main\assets\www\lib\ionic-ion-tinder-cards\example\www\res\icon\ios\Thumbs.db

cp: copyFileSync: could not write to dest file (code=EPERM):C:\Users\User\Desktop\baechat\platforms\android\app\src\main\assets\www\lib\ionic-ion-tinder-cards\example\www\res\icon\tizen\Thumbs.db

cp: copyFileSync: could not write to dest file (code=EPERM):C:\Users\User\Desktop\baechat\platforms\android\app\src\main\assets\www\lib\ionic-ion-tinder-cards\example\www\res\icon\webos\Thumbs.db

cp: copyFileSync: could not write to dest file (code=EPERM):C:\Users\User\Desktop\baechat\platforms\android\app\src\main\assets\www\lib\ionic-ion-tinder-cards\example\www\res\icon\windows-phone\Thumbs.db

Running command: “C:\Program Files\nodejs\node.exe” C:\Users\User\Desktop\baechat\hooks\after_prepare\010_add_platform_class.js C:\Users\User\Desktop\baechat

ANDROID_HOME=C:\Users\win8\android-sdks
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_161
studio
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon (subsequent builds will be faster)

publishNonDefault is deprecated and has no effect anymore. All variants are now published.
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_dvnle02kivhqqebpazfeb5cwn.run(C:\Users\User\Desktop\baechat\platforms\android\app\build.gradle:143)
:CordovaLib:preBuild
UP-TO-DATE
:CordovaLib:preDebugBuild
UP-TO-DATE

:CordovaLib:compileDebugAidl
UP-TO-DATE

:CordovaLib:compileDebugRenderscript

UP-TO-DATE
:CordovaLib:checkDebugManifest
UP-TO-DATE
:CordovaLib:generateDebugBuildConfig
UP-TO-DATE

:CordovaLib:prepareLintJar

UP-TO-DATE
:CordovaLib:generateDebugResValues
UP-TO-DATE
:CordovaLib:generateDebugResources
UP-TO-DATE
:CordovaLib:packageDebugResources

UP-TO-DATE

:CordovaLib:platformAttrExtractor
UP-TO-DATE

:CordovaLib:processDebugManifest
UP-TO-DATE
:CordovaLib:processDebugResources
UP-TO-DATE
:CordovaLib:generateDebugSources

UP-TO-DATE
:CordovaLib:javaPreCompileDebug

UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac

UP-TO-DATE
:CordovaLib:processDebugJavaRes

NO-SOURCE
:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
UP-TO-DATE

:app:preBuild
UP-TO-DATE
:app:preDebugBuild
UP-TO-DATE

:app:compileDebugAidl
UP-TO-DATE

:CordovaLib:packageDebugRenderscript
NO-SOURCE

:app:compileDebugRenderscript
UP-TO-DATE
:app:checkDebugManifest

UP-TO-DATE
:app:generateDebugBuildConfig
UP-TO-DATE

:app:prepareLintJar UP-TO-DATE
:app:generateDebugResValues
UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
UP-TO-DATE
:app:createDebugCompatibleScreenManifests
UP-TO-DATE

:app:processDebugManifest
UP-TO-DATE
:app:splitsDiscoveryTaskDebug
UP-TO-DATE

:app:processDebugResources
UP-TO-DATE

:app:generateDebugSources UP-TO-DATE
:app:javaPreCompileDebug
UP-TO-DATE

:app:compileDebugJavaWithJavac

UP-TO-DATE
:app:compileDebugNdk NO-SOURCE

:app:compileDebugSources

UP-TO-DATE
:CordovaLib:mergeDebugShaders
UP-TO-DATE
:CordovaLib:compileDebugShaders
UP-TO-DATE
:CordovaLib:generateDebugAssets
UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:app:mergeDebugShaders
UP-TO-DATE

:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets
UP-TO-DATE
:app:mergeDebugAssets
UP-TO-DATE

:app:extractTryWithResourcesSupportJarDebug UP-TO-DATE
:app:transformClassesWithStackFramesFixerForDebug

UP-TO-DATE
:app:transformClassesWithDesugarForDebug

UP-TO-DATE
:app:transformClassesWithDexBuilderForDebug
UP-TO-DATE

:app:transformDexArchiveWithExternalLibsDexMergerForDebug
UP-TO-DATE

:app:transformDexArchiveWithDexMergerForDebug

UP-TO-DATE
:CordovaLib:compileDebugNdk
NO-SOURCE

:CordovaLib:mergeDebugJniLibFolders
UP-TO-DATE
:CordovaLib:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNativeLibsWithIntermediateJniLibsForDebug
UP-TO-DATE
:app:mergeDebugJniLibFolders

UP-TO-DATE
:app:transformNativeLibsWithMergeJniLibsForDebug
UP-TO-DATE

:app:processDebugJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForDebug
UP-TO-DATE
:app:validateSigningDebug

:app:packageDebug
UP-TO-DATE
:app:assembleDebug
UP-TO-DATE
:app:cdvBuildDebug
UP-TO-DATE

BUILD SUCCESSFUL in 1m 2s
47 actionable tasks: 1 executed, 46 up-to-date
Built the following apk(s):
C:\Users\User\Desktop\baechat\platforms\android\app\build\outputs\apk\debug\app-debug.apk

Searching the forum for that error message should give you >100 useful results.

please help me out with the error.

Signing apk got error too

$ keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias bash: keytool: command not found