Hi guys,
help me
how to resolve this following issue…
I simply created the new project and
I build the app using
ionic Cordova build android --prod,
it builds fine without any issue.
but when I add the one signal plugin in my project using
ionic cordova plugin add onesignal-cordova-plugin
npm install --save @ionic-native/onesignal
when again build the application using
ionic Cordova build android --prod
it creates the following error
app:preDebugBuild
FAILED
14 actionable tasks: 1 executed, 13 up-to-date
FAILURE: Build failed with an exception.
*What went wrong:
Could not resolve all files for configuration ‘:app:debugCompileClasspath’.
> Could not find support-v4.aar (com.android.support:support-v4:27.1.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/27.1.1/support-v4-27.1.1.aar
*Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log out
put.
*Get more help at https://help.gradle.org
BUILD FAILED in 26s
(node:9756) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
*What went wrong:
Could not resolve all files for configuration ‘:app:debugCompileClasspath’.
> Could not find support-v4.aar (com.android.support:support-v4:27.1.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/27.1.1/support-v4-27.1.1.aar
*Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log out
put.
*Get more help at https://help.gradle.org
BUILD FAILED in 26s
how to resolve
this issue…
here my project info
`> F:\testing\onesignal> ionic info
cli packages: (C:\Users\master\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.2.0
Cordova Platforms : android 7.0.0
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
Node : v6.11.1
npm : 6.4.1
OS : Windows 10
Environment Variables:
ANDROID_HOME : C:\Sdk
Misc:
backend: pro
PS F:\testing\onesignal>`