Hello I'm trying to build a mobile app out of cordova but I have 0 knowledge on it so I read and tried documentation of cordova but it seems like I'm stuck on the emulation part after I input cordova build on terminal it compiles the project and notifies me that the build was a success.. But after I ran cordova emulate android it compiles for a few sec then gives an error message the error message is
anyone know whats the problem here?? Basically everything I've done was from the documentation of the cordova site. also my android emulator is running before I run the command cordova emulate android
Have you tried specifying the emulator to run the app with?
cordova run android --target=youremulatorname
or
cordova emulate android --target=youremulatorname
Also, check whether your emulator uses the API level between the indicated android:minSdkVersion and android:targetSdkVersion in the generated AndroidManifest.xml file.
The AndroidManifest.xml file can be found in
YourAppFolder/platforms/android/AndroidManifest.xml
You can check which API level your emulator uses through
SDK Manager > Tools > Manage AVDs
Related
Is there a version of zone.js that includes checking and handling this issue that I can use short of trying to edit the files myself. Getting the error when running project app for android. No problem when I run for the web using ng serve only when I try tns run android. I run tns build android fine, so it only fails when attempting to run the generated <.apk> on the android emulator. I am Woring on windows 8. The error is zone already loaded.
I can't run Android APK of my ionic apps on my tablets (Android version 4.4), I get the connection unsuccessful error. I have no idea why, it happens even if I start a ionic project from scratch and run the apk without modifying anything in the project. Weird thing is..I can run it on my Xperia celphone and also if I emulate a Nexus 9 tablet with android studio the Apk also works. How can I fix this? maybe build the apk with older android api? is there a way of doing this, or isn't this related?
Already tried setting loadUrlTimeoutValue to a high number, makes no difference.
Aaaaaaaaaaaaaaaaaaaaaaaaah finally got it FFS, had to add cordova crosswalk plugin to make it work. Followed this > https://github.com/codyteng/ionic2-android-crosswalk
ionic plugin add cordova-plugin-crosswalk-webview
ionic platform add android
ionic run android
VS2015 with Windows 10.
I am new to mobile development so I am trying a sample from Github for MS Cordova apps.
I was able to create a Hello World app that pushed to my Samsung Galaxy S5 without issue,
With this sample weather application, the application compiles fine for the Ripple (Galaxy) emulator. When I attempt to build for my Android device, I get the following error:
BLD401 Error : BLD00401 : Could not find module 'shelljs'. Please Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache and try building again.
I did clear the Cordova cache (a few times) and nothing seemed to help.
I tried updating the taco.json with 4.3.0 and 6.0.0 but it made no difference. The original value is 5.4.1. (This as per a similar question posed, and answered by the same person)
Any other suggestions? Any further information needed?
Thanks!
I have a problem...After the build of my project PhoneGap, I want to run the it on my device with this command:
cordova run android
When I run this command I receive this error:
WARNING : No target specified, deploying to emulator
So run the emulator...I woun't the emulator, it's very slow...I Enable USB debugging on my device...Where is the problem? Also I want use the library of AngularJs...Where must I put the library? Thanks!
I made a Netbeans Phonegap Blank Hello World App but it refuses to run giving me this error when i run using embedded browser:
Could not find cordova.js script tag. Plugin loading may fail. (22:45:04:262)
at public_html/js/libs/Cordova-2.9.0/cordova-2.9.0.js:6725
Falling back on PROMPT mode since _cordovaNative is missing. Expected for Android 3.2 and lower only. (22:45:04:265)
at public_html/js/libs/Cordova-2.9.0/cordova-2.9.0.js:982
Failed to load resource: Unexpected end of file from server (22:45:04:276 | error, network)
at http://localhost:8383/HTML5Application1/cordova_plugins.js
Removing
>
script type="text/javascript" src="js/libs/Cordova-2.9.0/cordova-2.9.0.js
makes it not run at all.
I've verified cordova, ant, adb, git, java from the command prompt.
I've installed the latest versions of netbeans,cordova,android sdk,git and ant.
I could not find a solution to this problem
Any help would be awesome!
The hello world template has some bugs that I haven't got the time to figure out why. The other templates work.