I'm just getting started with developing android apps with cordova/phonegab.
Everything is installed, blank sample app is running. However it seems changes are not shown. So basically it seems I'm stuck with the first build. I think cordova isn't making a build before running the debugger?!
How do I debug a cordova phonegap app with eclipse adt? Are there any best practices?
Another side question. ADT is either opening the browser or a simple text editor. Isn't were any code highlighting / code editor integrated into eclipse adt?
Thx. I really appreciate your help.
Seems you are following the process correctly but confused due to appname as everytime you create project with below command you app name will be Helloworld
phonegap create project_name
try creating a new project like this
phonegap create hello com.example.hello hello
then load it in eclipse and run.
Related
I added Cordova to an Angular Project, where I create an Angular build and populate it into the Cordova app:
ng build --prod --base-href . --output-path ./cordova/www/
I then run that app inside Android Studio so I can emulate what it'll look like on a device.
The Cordova app runs, but if I go and make updates to the Angular app and then run the build script again, the version Android Studio sees is the old version.
The only way I've found to get around this is whenever I Invalidate Caches, but that seems cumbersome and like there must be a better option.
I verified that the files inside the Cordova app are the updated build files (I checked for the version marker). I've tried stopping and starting the emulator, telling Android Studio to rebuild the app, as well as stopping and starting the app inside Android Studio.
Can someone please tell me what I'm missing? TIA.
So I recently started working with my friend on his app project and I've had trouble building his react-native based project. It's both ios and android.
On android, I can get as far as building, but when I run the app shuts down instantly or shows a red screen with some firebase error.
On ios, I get a build error.
My question is: what do I need to install when I first pull the repo from github? I run '''yarn install''' straight away and run '''pod install''' from the ios folder but that isn't enough. Anything I should run for android more than the yarn install command I had already used?
Thanks!
It seems your development environment is not set up yet. Follow this link to set up your environment.
I tried creating an Android workspace with Codenvy with the sample hello world app provided. I built and ran the project. Clicked on 1(execute the run command) and then on 2(preview).
I never saw the hello world activity in the emulator screen and I didn't even see the app installed in the APPS section.
Am I doing something wrong?
You need to follow this guide https://github.com/che-samples/mobile-android-hello-world/blob/master/README.md and install apk once an emulator is started.
I'm making my first steps in phonegap. I've been able to set up a project, install a plugin and build the app on my phone without errors. However, now, when I try to change the layout of my www/index.html in the project's root platforms/android/assets/www/index.html stays untouched whenever I (re)build the app.
I'm basically working in eclipse, only for html and javascript I use sublime. I've searched now for a couple of hours for a solution. The most promising approach was this thread: Changes to HTML files not showing on built phonegap 3.0 app ... but even that didn't work.
What can I have done wrong? There's no error, no warning (none resulting from the build process) and I don't know how I could debug the issue. I'm currently using phonegap/cordova 4.2.0
Any clue? Thanks
I still don't know the reason for my problem. However, installing the app via cordova CLI rather than eclipse seems to have solved the problem:
$ cordova prepare android
$ cordova run android
I am new to Phonegap. I am trying to run android hello world app using cordova 3.4.x. but when I try to run app It's give an error (com.ert.ertt) Unexpectedly stop working. I am using eclipse. I have follow many tutorial but problem still remain. Please help me regarding this.
Thank you in advance.
For cordova there is chrome extension which will ease your task
Riple Emulator is chrome app for phonegap developers
Try creating a new workspace in eclipse. I had the same problem and got fixed when i worked in a new workspace.