Running a Cordova project on WP8 in VS2015 - android

I've just started a blank Cordova project on Visual Studio 2015, the intention being to use it to develop mobile apps in the future. I've been able to get it to run in the emulator on Android and even onto an iOS device (through a Mac), but I haven't been able to figure out how to run straight onto a WP8.1/Android device, or on a WP8 emulator. When I try, I get this message:
Error running one or more of the platforms: Error: cmd: Command failed with exit code 2
You may not have the required environment or OS to run this project
The Android device also says, above that:
ERROR: Failed to deploy to device, no devices found.
There's very little documentation online, and because it's all so new, Google hasn't been particularly enlightening. It's possible that I'm missing some software, but I don't know what.
For the devices, it could be that I'm supposed to select the device from a list somewhere, but I can't see anywhere that could be. For the emulator, I'm assuming I'm missing software, or a setting is wrong on my PC, but have no idea what it could be.

To fix the issue with WP8:
I had been playing around with different versions of VS... un-installing and re-installing 2013 and 2015 and eventually hit the same issue as you.
The solution here worked for me:
No Emulator lists to deploy windows phone app
I do not have an android phone to test with t the moment, so I have not seen the android device issue.

Related

Android Studio not connecting to devices

I am having an issue with Android Studio not connecting to any devices. This includes physical devices, as well as emulators. Everything was working, but I updated AS to the latest version, and now it is not working. The devices still show as connected when I use adb on the command line, so I am able to run commands through that. However, I can not run anything from Android Studio, or debug, or use logcat. What could possible be the issue where adb is connected to the devices, but Android Studio is not?
Even using the connection assistant shows that I have a pixel connected, but AS does not recognize it as an android device.
This is for Android Studio 3.6.2, updated recently: Directory 'platform-tools' contains a directory of the same name, and I made the hypothesis that this was a bug and that the lower dir should not the there. Using the Mac Finder, I copied all files and directories from the lower dir to the upper one, I closed and restarted Android Studio, and voila, the Run > Select Device... can see my tablet, and I could run the app on it.
I'm running on a mac with Yosemite. I tried running old versions of Android Studio that were laying around which was a waste of time. So I got drastic.
This is a really bad solution, but has allowed me to actually get back to work.
Completely uninstall Android Studio and the Android SDK (the sdk might have been over-kill, but I'll let someone else figure that out). If you like, here's a website that helps uninstall AS. https://nektony.com/how-to/uninstall-android-studio-on-mac
Re-install Android Studio using an older version. I used 3.5.2 because I liked that color of green better than the new one. The link to find it: https://developer.android.com/studio/archive (you'll have to agree to their terms before being able to even look at the list!).
Run the newly-installed AS. Connect your device (remember to turn dev-mode!)...voila!
Well, it worked for me. And I only wasted 1 day.

No supported devices connected(Flutter/android emulator)

i tried youtube, researching using google, and even read a few threads on here but i didnt find anything which could help
im using a windows 10 operating system , ive used flutter on android studio and everything works fine, i enrolled in a course and the IDE used is VSCODE for flutter app development , whenever i try launching the emulator from cmd, it says "no connected devices" , i downloaded an extension on VScode and even when the emulated device is running and i type "flutter run" it still says no connected devices
im not looking to test this on a physical device and would rather use an emulator due to reasons
I am sure you would have started the emulator before running the flutter run. I had faced the same problem earlier. I did these two things to make it work,
Setup path for in your system variables
Restart the system to bring this into consideration,
https://developer.android.com/studio/intro/studio-config

trying to run Xamarin Android app results in "Could not access the Package Manager"

I decided to give Xamarin a try. So I followed the various articles at https://developer.xamarin.com/guides/cross-platform/getting_started/ to install Xamarin, then build an Android app. That was pretty easy, especially since I already have Visual Studio 2017 installed. The code compiled fine. I set up an Android Virtual Device and tried to debug/run the app in that AVD. Everything I've tried results in:
Build succeeded.
Unexpected install output: Error: Could not access the Package Manager. Is the system running?
Deploy failed on ...[AVD device here]
I have VS 2017 running on Windows 10.
The development experience was encouraging, since I've been using VS/C# for such a long time now, but getting past this emulator issue has, so far, been a complete roadblock. Any help would be appreciated.
Could not access the Package Manager. Is the system running?
Are you using ARM based emulator ? They are extremely slow and take lots of time to boot up. As Anubhav Ranjan said, just wait until emulator be loaded completely, once it finished it should work.
Try using an x86 based emulator, and use the Hardware Acceleration. Those run much faster, still a little on the slow side, but bearable.

ADB not working from Android Studio after installing Xamarin

Android Studio (Windows 7) is giving me the "Unable to create debug bridge" error, as this person describes:
Unable to create Debug Bridge: Unable to start adb server: Unable to obtain result of 'adb version'
I have tried pretty much every solution I've found and then realized that I just recently installed Xamarin for Visual Studio 2015 as well, and I'm thinking that has screwed up Android Studio. adb works fine from the command line. A Google search didn't turn up any relevant results for this issue but I'm hoping someone can at least confirm that these IDEs don't play nicely together, and ideally even present a solution. I can do my installation from the command line but of course that's a pain compared to just clicking a button in the IDE, not to mention the inconvenience of using the command line to view logcat.
When you installed Xamarin, did you see if another SDK was installed in a different location in your computer? Because this happened to me. I had Android Studio installed then I installed VS 2015 with Xamarin but I didn't realize that the option to install android SDK (with adb and etc) was enabled. After realizing that, I changed Xamarin configs to point to my older SDK folder (the one used by Android Studio as well), then everything worked.

Monodroid with Visual Studios Pro 2010

I know the basics of the integration of the plugins and have done this before but lately I keep getting basic errors.
This time I don't even get a error the emulator is up and I can see it in running devices and it even deployed to the AndroidVM (my emulator name). Also saying it was a success and nothing happens and it was never installed on the device.
You can't deploy monodroid based apps to your device unless you've the full version of MonoDroid tools

Categories

Resources