-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug phoneGap android app running on genymotion/Virtual Box emulator #188
Comments
@kadia8161 if you run Once adb can connect to the emulator, from there you should be able to treat it as a device in vscode. You can verify this by trying to run |
Hi @kadia8161, thanks for reaching out to us. Please let us know if there is anything else we can do to help you. |
sorry for late replay @mbraude i will let you know if i have any other issue. |
hi @MSLaguana , @mbraude
Launching for android (This may take a while)...
No scripts found for hook "before_run". Ln 4, Col 10Spaces: 4UTF-8LFJSON Note : I am able to run same app using phoneGap windows application on virtual device can you help me out... |
For your first issue there, that For the second issue, what happens if you try to run |
@MSLaguana
Launching for android (This may take a while)... but on second time run there is no effect in chrome and i get this message Launching for android (This may take a while)... and for cordova run android from command prompt D:\Mobile Development\Android Project\HelloWorld\HelloWorld>cordova build android i have installed gradle and other required files i have one more doubt regarding cordova |
Regarding your issue with building android, according to http://stackoverflow.com/questions/30692085/cannot-build-project-using-cordova it may be due to a corrupt gradle download. For your first issue, I believe it may possibly be caused by having the inappbrowser plugin installed twice. You have both Your project should only use one version of the plugin, so I suggest removing the outdated org.apache.cordova.inappbrowser instance, make sure it is uninstalled from the project, and then see if that works for you. |
@MSLaguana But i have one more doubt when i use cordvoa build android or try to Run android on device it give me error (probably because of corrupted gradle files) and yes i have downloaded separately gradle all zip file from its site how can i use it with vscode so vs code will reference it instead of previous one ? |
When you simulate your project in the browser, it does not use any of the native implementation, just the html, css, and javascript in your project. We provide a fake "native" implementation of plugins so you can test things out, but we don't actually build the native project. Did you try the suggested fix in the stack overflow question? Deleting / replacing the gradle zip in your user directory? |
in my project it uses gradle-2.13 while i have downloaded higher version of gradle Version 3.0 (while downloading i thought it would be better to use latest version) so right now i am looking for way to change version of gradle it use during build and how can i set to use gradle from different path (set manually) rather than using from C:\Users If you have any idea or you can provide some reference link regarding this it will helpful. I think there should be option to set path ,version and other details for other libraries we used during cordova build so we can specify manually also. I will update as soon as i sort out this gradle error. |
I haven't done this myself, but it looks like http://stackoverflow.com/questions/30413485/install-gradle-for-using-in-cordova-build-android has instructions for using a specific version of gradle. We don't explicitly reference/require gradle anywhere in our extension, so I'm inclined to leave things with cordova configuration like the above. If you strongly disagree, we can discuss possible changes. |
This looks pretty old. @kadia8161, I'm going to close this but feel free to reopen if you're still experiencing any problems w/ debugging |
I have Created a project in phoneGap and running it on Oracle Virtual box Android Emulator(downloaded using genymotion).
I need to know how can i debug project using vs-cdoe
I have added extension for cordvoa tools in vs code
The text was updated successfully, but these errors were encountered: