Ionic Build Getting Error After Installing Onesingle Plugin
After executing $ ionic cordova build android getting this error before adding OneSingle Plugin it was working fine but after add OneSingle plugin using $ ionic cordova plugin ad
Solution 1:
first you remove below files on your project
./node_modules
./plugins
./platforms
./www
then remove ionic
and cordova
after that remove the npm
then re-install npm
, ionic
and cordova
after that run
npm install
then you can run ionic serve
or ionic cordova build android
Enjoy :)
Solution 2:
I had the same issue which is I think related to the last update of ionic CLI. In my case going back to ionic@4.0.3
with last npm fixed the issue :
npm i -g ionic@4.0.3
npm i -g npm
Hope it helps save some time & headhacks.
Solution 3:
You have to do some changes in your "build.gradle" file located at platforms/android as follows: Please find below code:
allprojects {
repositories {
mavenCentral();
jcenter()
}
}
Replace it with below code:
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
Post a Comment for "Ionic Build Getting Error After Installing Onesingle Plugin"