BlueStacks and unity 3d? - android

i am trying to test android project developed in unity to be tested via BluStacks emulator since i don't have an android device. While trying to develop android project, i followed the ways like setting java sdk, android sdk, added sdk path, set the bundle identifier. I solved errors in the monodevelop like unrecognized variable and finally got the .apk file. I have successfully installed it in both android emulator and BlueStacks emulator. Now, when i click the installed app in the android emulator, it says "Unfotuately b has stopped", here b indicates my product name of the installed app. On the other hand,when i click the installed app in the BlueStacks,it says "BlueStacks Frontend has stopped working". When i search through the google, all it says reinstalling the BlueStacks, about graphics card problem etc. But i have installed it right and can play other online installed applications. I can not even find the logcat that could give me details about the error. When i search through the google, all i find about the logcat is involving the eclipse. But how can i set the adb logcat while my game development involves unity and BlueStacks instead of Eclipse and BlueStacks? Here i can say that there is less likely any problem with the BlueStacks emulator since i can play the online games and applications with it. I have been trying hard, please somebody knowledgeable give me your valuable suggestions.

Related

Xamarin Debugging on Android Device not working

I have an Xamarin project (On a Mac) that I'm working on. Up until today I was able to Launch it under debug, it would deploy the app and start it up attached so I could hit break points on the device. If I do this in an emulator, things work fine.
So when I run in Debug on Android, it deploys, I get no errors or messages that indicate an issue, but it just stops and is no longer running.
So what I've done
I've uninstalled and re-installed Visual Studio, no change
I've tried on multiple devices, with different OS versions
I've reset my project to be the same as others on the team, they have no issue
I've verified that the same project works fine on my Windows machine.
I've verified that I can run a Release version with no problem, I hit run, it deploys and launches the app just fine.
I can deply the iOS version in an emulator with no problems.
I've verified that if I set Debug Information to Full in the Release project, I have the same issue.
I've rebooted the device, the Mac, uninstalled the app on the device, it doesn't matter.
I'm at a loss, any help would be appreciated.
Well, there are a couple of things that connecting and deploying your app require, including setting the configuration and making sure you have the ADB installed correctly. You can check on Mac by following these steps to install Chrome and DevTools.
Another user suggested(in the comments under question):
"I would suggest trying to delete the Mono Shared Runtime and any Xamarin Android API-XX Support from the installed apps" on your targeted device.
These are the docs on Configuration Management in Xamarin
on Microsoft.com
I know it's very late answer but I had same problem and could solve it so may be it could be helpful for over people facing same problem.
Android csproj file must be located two levels lower than the .sln file. Android will disconnect when debugging if it is located in another location.
For example:
C:\Projects\Mobile\My.Xamarin.sln
C:\Projects\Mobile\My.Xamarin\My.Xamarin.Android\My.Xamarin.Android.csproj

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.

How to run Xamarin Android app from Visual Studio?

Coming from Android Studio I have already pushed apps to my Android device before (drivers and developer settings all setup), and running adb devices shows my device in the list.
What am I missing in order to be able to see my device in the Start list in Visual Studio for my Xamarin project?
Right now it just shows two virtual devices. How do I get my physical device to show up and deploy my app there?
Removed Android SDK and references in environmental variables, uninstalled Xamarin and reinstalled and let the installer create and download the SDK. Lo and behold it started to work.
Not sure what weird configuration I had prior.

Running a Cordova project on WP8 in VS2015

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.

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