ionic framework error when run the command ionic capacitor build android - ionic-framework

I am using the ionic framework. I am trying to run the command ionic capacitor run android,
i got the error like the attachment.
Can any one help me to resolve this issue.

I just replace the ...\AppData\Roaming\npm with my old data. Then it is working fine.

Related

Error when trying using Device plugin ionic 4

I am trying to use the “Device” plugin in ionic 4 (4.10.2) with the same commands indicated in the ionic page and when trying to run the app I get the following error.
Ionic Error
PS: I’m trying to make a console.log of the device version.
console.log(this.device.uuid);
Ionic doc: https://ionicframework.com/docs/native/device#usage
Any solution?
Thank you

Baqend is not working with emulator or real device using ionic

I'm developing an app using Baqend and ionic. When I run ionic serve the app runs fine in the browser and it is able to call Baqend. However, when I run ionic cordova emulate ios suddenly Baqend is not working in the Xcode emulator and it does not produce any errors in the console even with adding the --consolelog parameter.
I also tried:
Opening the project inside of Xcode and running it from there but same result.
Running the ionic/Baqend starter (https://github.com/baqend/ionic1-starter) and same result.
How can I debug this issue?
Update: I just tested it with Android using ionic cordova emulate android and it worked fine. So it seems that the issue only exist with ios.
The issue was solved by adding <allow-navigation href="https://*.app.baqend.com/*" /> in config.xml file.

ionic v2 error ionic view

I'm developing an ionic v2 app but even working on ionic lab it gets a complete white screen on the ionic view. If I do the same withe the ionic v1 it works.
ionic start sample --v2
cd sample
ionic lab
ionic upload
It shows white but
ionic start sample
cd sample
ionic lab
ionic upload
It works perfectly. No changes on the code at all
Thanks
ionic 2 needs at least 4.4 android to work, lost a lot of time on this and there is nothing on the ionic website informing about that. Writing down here to help anyone in the future.
Ionic v2 supports android 4.4 and up. The older browser on pre-4.4 devices do not have the features needed for ionic2 and angular 2 to work. Though this can be fixed with crosswalk.
The supported platforms are list here:
http://ionicframework.com/docs/overview/#browser-support
You can go back to 4.1 with crosswalk it states.
ionic 2 needs at least 4.4 android to work,.. for more info debug app in chrome.
from ionic 2 Ionic officially stops to use ionic lab.
You can run and test your app in browser using command "ionic serve".
Ionic2 app was initially created with --v2 flag but now they removed it . So nothing happens with --v2
Better way to solve the code 1st time by running directly into android devices by
Ionic cordova run android or
Ionic run android
Then connect your device with your system and open chrome and enter chrome://inspect to the url
Now you can console log the the error and can find the way of solutions.
Now try to run by ionic view
Remove the platform and then add it again.
please try eionic start sample --type=ionic-angular

How do I install a specific version of crosswalk using ionic cli2

I currently have an ionic 1 project, but have just switched to using ionic cli2. I previously used to add crosswalk into my project, by running the following command, as mentioned here.
ionic browser add crosswalk
However, ionic cli2 no longer supports the browser command, and I am unsure how to install it in the correct way.
Any help would be appreciated.
It seems the answer is as follows:
I need to run
ionic plugin add cordova-plugin-crosswalk-webview

Error on ionic build command

i am facing this error when i want to run ionic build android command.
i tried everything and obviously i have no idea what to do here .
i have SDK and JDK , Gradle and other things .
if i run the ionic serve command it works with no problem and the app shown in the browser but i can't build the app with build command .
i installed the cordova and ionic using this tutorial http://learn.ionicframework.com/videos/windows-android/ and i think i dont miss anything around here .
when i run android command , it shown up the android sdk manager with the API installed , when i run gradle it works . but this one does not work
here is the picture of the error :
This happens to me with ios builds and re-installing the platform will always worked for me. try that
ionic platform remove android
ionic platform add android
read here on almost the same thing (but with ios)
HTH