Visual studio 2015 First Ionic Application issue - ionic-framework

I am new in Ionic,I have installed Ionic project template, android sdk and select a new ionic tab and also use below code:
npm install -g cordova ionic
Project Folder as below :
After then select Android and run project but is gives below screen.
I dont know what to do next, I have also install task runer.
Thanks.

Related

Ionic plugins not installed

I have an issue only with android build, when I running on emulator or device android I get the error that ALL plugins are not installed, on ios emulator or device I dont have this issue
Any idea?
Thanks
Evripides
Maybe your plugins are not prepared.
Try cordova prepare then npm install and finally ionic cordova platform add <your_platform>
Your problem is specific with android so your platform should be android
remove node module and package.json.lock file manually
remove android platform using command ionic cordova platform rm android
npm i
ionic cordova platform add android
and install all plugins like below
ionic cordova plugin add cordova-plugin-file
npm install #ionic-native/file --save
Finaly I found the error on 1 plugin in-app-purchase, I removed it and reinstall it and now all are fine
Thank you all
sometimes android build fails dependencies mismatch so and re run fresh.
delete node_module
npm i
ionic cordova rm android
ionic cordova add platform android

Fail to build android Ionic version 1

I have an Ionic version 1 project and install Ionic version 4 on my linux machine.
When trying to build an Android using ionic build android e get this error message:
Unable to load PlatformApi from platform. Error: Cannot find module '/home/myuser/ionic/myapp/platforms/android/cordova/Api.js'
How can i solve this problem?
this issue in latest ionic and cordova versions. try to Run following steps
ionic cordova platform rm browser/android/ios
ionic cordova run --emulator

how to build apk from a ionic framework source code?

how do I build apk from an ionic framework source code? which app is used to build the apk?
I tried to build with Cordova but I don't know how to work on a existing code.
1) Install the node.js from here
2) open the terminal, npm install -g cordova ionic
3) open the folder of the project from the terminal
4) in the terminal npm install(make sure node.js is insta
5) ionic cordova build android
Being in the project root directory, run the below command:
npm install #ionic/app-scripts#latest --save-dev
If successful, connect your android device with Your laptop via USB & make sure, USB debugging enabled. Then try
ionic cordova run android
Again if you face issues, resubmit the trace. We'll check!

How to keep both ionic 1, 3, version in my system

Initaially i was working with ionic 1.7.6 version with many apps. And by today some how i have changed to version 3.0.0. Now when i open my old projects under package.json i see the version as 3.0.0 instead of 1.7.6. And when i do sudo ionic build android it throws me some error to upgrade the version.
So now i have uninstall the ionic & cordova from my system.
Now i want to keep ionic 1 version 1.7.6 as well as ionic 3 version 3.0.0 how can i do it now.
so when ever i open the ionic 1 project i need to work on angularjs with ionic 1 version.
And when ever i open the project that i have created with version 3 i need to work with latest version of angular is with ionic 3..
please some one expalain me what should i need to do ??
Thank in advance !
I suspect you have installed ionic globally. If you want to run the local/project version of ionic you need to sudo ./node_modules/ionic/ionic ....
This will be the version of ionic as defined in the package.json of the project.
You can tuck this nicely away however using npm scripts (in your package.json):
e.g.
"scripts": {
"ionic": "sudo ./node_modules/ionic/ionic build "
}
Ten simply execute npm run ionic -- android

Ionic2 Build folder structure missing

I'm starting to learn Ionic2, I have created a new project with ionic start myproject --v2 and everything works correctly if I do ionic serve.
The build folder is missing in ionic 2 project folder.
Whenever I am trying to download any existing Ionic2 template in that one also build folder missing.
ionic -v 2.0.0-beta.30
cordova -v 6.2.0
node -v v6.2.1
npm -v 3.9.5
your ionic serve build is under www. The native builds ( from ionic build) are under platform.
A little late but I had the same issue and was able to fix it by installing Gulp :
npm install -g gulp
Then I did gulp build.
This solved my issues and generated the build folder as it was supposed to.
First you need to add support for the platform/s you are working with, by executing from Ionic CLI console:
ionic platform add android
or
ionic platform add ios
And then you should build your project by executing:
ionic build android
or
ionic build ios