I got stuck when trying to create my first PhoneGap application. I entered
cordova create hello com.example.hello HelloWorld in the command line and got this text:
Downloading cordova library for www...
I waited some minutes, but libraries didn't load. I guess it's a common problem for beginners.
Please, help me solve this problem and let me go further. Thanks a lot. :)
In the PhoneGap documentation, they state that it may take a while to create the app.
"It may take some time for the command to complete, so be patient. Running the command with the -d option displays information about its progress."
Try this:
$ cordova create hello com.example.hello HelloWorld -d
You can see the progress.
Related
I am looking to setup automated end to end UI testing for React Native App and its my first time doing it using detox.
I followed exact steps as mentioned in this article:
https://varunon9.medium.com/e2e-testing-of-react-native-app-android-using-detox-a-step-by-step-guide-bfb520c1a9ac
But every time I try to run build command i.e: detox build -c android.emu.debug. I get the following error:
[Here is the console log from when I run the command]
[1]: https://i.stack.imgur.com/zbLlO.png
Any help would be greatly appreciated
I was able to solve this. It was a stupid mistake instead of ./gradlew in build command I was supposed to use just gradlew as that's how the file was saved inside my android folder of the project
I use a mouthstick to opeate by android tablet(since i am paralysed and cant use a laptop)..
I know front end development and wanted to learn Vuejs2.
So i need to use the CLI that Vue js offers i.e vue-cli
So for the command line interface i downloaded the termux app from play store which is a terminal for Android and file with many Linux packages
Using this i installed nodejs and vue-cli
But for the next step to proceed i ha Ave to execute the command
npm install
And then
npm run dev
The vue-cli is getting installed without any errors but running the npm run dev is giving many errors in the terminal and the app is not being started
What shall i do?
Tried same with learning angular 2 but same issue
Any help and suggestions are appreciated
I ran into a similar problem. It turned out that I had created my project in a directory out side the "storage" directory created by Termux. I don't know the details as to why, but apparently that was the problem. I re-created the vue project in a directory underneath the "storage" directory and those problems resolved. I still haven't gotten the project to run, though. Now I'm getting a single error about an unhandled promise rejection. Still researching that one...
I am dealing with SQLite in my ionicframework project.
Every time I change the code in controller, I need to rerun the apps in my phone and see the console.log what was the output.
Anyone knows how to view SQLite in android / ios phone from PC?
It was so hard and takes so much time to make any changes in codes and
to rerun the project to see the result in console.log
Any helps will make my coding faster. Thanks for any helps.
You can use --livereload or -l in run command as mention in ionic cli docs
Run your app using this command
ionic run android -l
or
ionic run android --livereload
I am trying to build my app using kivy, and it is looking great so far. Everything compiles and runs just fine with buildozer.
I am trying to incorporate ads into my app with AdBuddiz according to this website
https://github.com/kivy/kivy/wiki/AdBuddiz-Android-advertisements-integration-for-Kivy-apps
I am stuck in 4th step, as I it gives the error that says
jnius.jnius.JavaException: javaclass definition missing
I installed jnius by downloading this
https://github.com/kivy/pyjnius
and used the command: sudo python setup.py install
If you could help me fix this error or help me understand the error, I would appreciate so much.
Thank you.
The adbuddiz code won't run on the desktop, you have to run this stuff on the Android device. If you want to run the program without it on linux, put it in an if statement that checks kivy.platform.
I have some simple question becuse phonegap docs is so hard to understand, also some tutorial for first basic steps are welcome.
Everything what I need to install to use phonegap?
Where is the folder of instaled phonegap?
How to start instalation (CMD, node.js) ?
I type in CMD:
C:\> npm install -g phonegap
and I get:
What is the next step? Please help?
Its not an error its just a warning.
It means its working, next type in the following in your command prompt
phonegap create myapp com.cordovaprogramming.hello Hello
This will create a myapp folder writes the application ID as com.cordovaprogramming.hello to the application’s configuration file and allows you to have an Hello as an application name.
For more information check http://www.kodkillerz.com/using-cordova-command-line-interface/
That is for cordova, just replace cordova with phonegap and all will work fine.
Thanks
you can refer the below article for installing Phonegap/Cordova.
http://thejackalofjavascript.com/phonegap-3-cli-setup-mac-windows/
http://coenraets.org/blog/cordova-phonegap-3-tutorial/
http://teusink.blogspot.in/2013/07/guide-phonegap-3-android-windows.html
http://sdk.revmobmobileadnetwork.com/phonegap_cordova.html
http://docs.phonegap.com/en/3.5.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide
Phonegap Cordova installation Windows