I did a fresh install of Xamarin Studio on Windows 7. Tried to run the simple Hello world Tasky app....
"Could not find android.jar for API Level 10."
Alarm bells! Here we go again...so in the Android SDK Manager I can see that API 10 SDK was indeed not installed so I tried to install from Manager but came up with the following error:-
Downloading SDK Platform Android 2.3.3, API 10, revision 2
URL not found: C:\PROGRA~2\Android\ANDROI~1\temp\android-2.3.3_r02-linux.zip (Access is denied)
Done. Nothing was installed.
MOre alarm bells...So, I had to physically give my self write access to the folder in Windows and then also the platforms folder in the android sdk folder...hard work!
So now the solution builds, but still won't run! ... the default Galaxy Nexus emulator starts but then doesn't run Tasky..... Its enough to drive you nuts man.
There seems to be a lack of robustness like checking which android API is targeted for the project against an appropriate emulator version? Thats without even mentioning the Windows file permissions!.
What do I need to do get Xamarin Studio to run the simple Tasky demo app?
This happens when you don't run the SDK Manager with elevated permissions.
Run the SDK Manager as Administrator
I ran the API 15 Emulator and it spun up the demo app, but Xamarin Studio has crashed out a few times on Windows so probably best to use Visual Studio as you will get better Intellisense, code completion etc
Related
I have a question about running an app through the emulator on android studio.
My emulator device is able to turn on, but when running the app, install never completes so the app times out. I have tried invalidating cache and restarting, and I have installed the sdk platforms that are the same as the emulators and project, but these changes did not work. My computer cannot install emulator hypervisor driver for AMD processors or intel x86 Emulator accelerator, but I don't think it is necessary for the app to run since my emulator can turn on, right? also, any app has never successfully run on android studio.
The is no code other than the hello world that comes up automatically. This is an empty project with a minimum sdk of api: android 4.1. The device I am using is a pixel 2 with an api of 22. (size on disk 3.5 GB) for tools, I have android SDK build-tools 33, android emulator (31.3.10), and android sdk platform- tools (33.0.3) installed.
I have tried every forum that has the same issue as me but if you think there is one that can help me, please share it thanks.
Android Emulators aren't always the best so expect random failures. This is what I would try:
Make sure the app compiles properly (make sure you see BUILD SUCCESSFUL in your bottom "Build" Tab in Android Studio)
Make sure you have updated Android Studio and Android Emulator, Android Build Tools, SDKs etc.
Create and use a device with a higher API version. Ideally one with Play Store.
Depending on your development machine you might want to try a different architecture (ABI). Try x86 or x86_64 instead of what you've already tried.
In rare cases your existing emulator images get corrupted. Uninstall them in your SDK manager (Show Package Details) and install them again.
If possible try running the app on a real device (follow online instructions to enable USB debugging etc.) to verify the emulator is the problem.
I am new to Xamarin and ran into immediate trouble while doing a basic Hello World example. When I click Debug, the Android emulator starts but never finishes even after 20 minutes. The emulator just sits on a black screen. I never see the Android boot sequence. I can build the solution with no errors. I can also open the emulator by itself through AVD without any errors. My laptop is VS 2017 Community, Win10 Fall Creator, i5-6200, 8GB RAM, GeForce 940M, and 50GB free on SSD. I have tried:
Reinstalling VS
Reinstalling Java SDK and Android
Updating Android SDK packages
Changing registry location of SDK
Turning off Fast Deploy
Creating new AVD's
Try updating your SDK's its under Tools > Android > Android SDK Manager.
This happens to me before, i did reinstall only to find out it was the emulator issue. to avoid yourself in reinstalling the visual studio and save you time... you can try it on your actual android device. then let me know how it goes. hope it helps.
After wasting many hours on this, I finally can across the answer. You can't use the standard AVD and SDK managers. Google removed support for them after SDK Tools version 26.0.1. https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/
If you need to make an Oreo 8.0 or 8.1 emulator, install Xamarin Android SDK Manager. Caution, this will prevent you from using the built-in AVD and SDK managers. From then on, you will use this new SDK manager and the command line to create and launch AVD's.
I just recently installed Android Studio (Version 2.3) so I could use the SDK / AVD GUI manager built in now that the standalone is deprecated. I'm on Windows 10 and this is a fresh install. My goal is to be able to setup a virtual device as well as setup my own android device to run a NativeScript app. After install the SDK button is available, but the AVD button is disabled (below).
I have the Android 7.1.1 (Nougat) SDK Platform installed and the Intel x86 Emulator Acc. installed (below). This is all default installs so far.
I've tried installing / reinstalling as admin as well as opening as admin per this post to no avail.
The Android SDK home path, build target, and Java SDK are setup in the project structure by default correctly as well.
Any thoughts on what I'm missing here?
As a side note the android help page for creating AVD's lists a menu option (tools -> android ) which doesn't exist.
My issue was Android Studio does not understand where to load the nativescript android project even after adding android as a platform (If someone knows a way around this, feel free to post). In my particular case I'm testing the angular-seed-advanced. To at least get the command line working (AVD manager is still greyed out):
Create a new blank android "test" project in android studio
The AVD Manager becomes available
Setup an virtual devices as necessary
Reopen nativescript project
use command npm run start.android
prepare, build, run and livesync will work as expected now.
Hope this helps someone else get started.
I have created a Helloworld cross platform project from Visual Studio .
The project builded successfully and while running the android project using the emulator (Nexus4 KitKat Android 4.4 ) I am getting this warning
Xamarin Android player Beta has expired ,Please update
And once I press OK I am getting message
There were deployment errors . Do you want to continue?
How can I fix this issue? Did I missed any components during the installation of xamarin for visual studio?
Xamarin Android player is cancelled officially , so my recommendations for you are three Emulators.
Visual Studio Emulator for Android: For me this is the best emulator available. However it requires that Hyper-V feature to be enabled.
Genymotion: I see this as a better alternative for Xamarin Android Player. However it needs a license.
Android Emulator which is provided by Android SDK. By default it is a slow emulator however there is a tweek you can do to make it faster:
Go and download HAXM from here
Go to your android sdk manager from your visual studio
Go down to Extras and install Intel x86 Emulator Accelerator
By doing this , now you can use the emulators which comes with Android SDK and they are great.
I installed Appcelerator on Windows, am trying to see android output.
I managed to add an android device by downloading - launching an android emulator called Genymotion. Now I have an IP address added to the Run menu, when I activate it Appcelerator tries to launch: console messages appear. But after 1minute or so I get a message saying I should download an SDK API level 23.
I had an old version of Android Studio, I updated it, opened its SDK manager tool and downloaded everything I could find, rebooted, but error persists. I can see Android version 23 in the list.
Here is the error message:
[ERROR] : No valid Android SDK targets found.
[ERROR] : Please download an Android SDK target API level 23 or newer from the Android SDK Manager and try again
I had the same issue recently and it turned out to be the java JDK missing from my path.
Take a close look at the Appcelerator environment variable documentation for windows.
Below are some java directories included in my path on my new Windows 10 machine:
C:\ProgramData\Oracle\Java\java;
C:\android-sdk-win\tools;
C:\android-sdk-win\platform-tools;
C:\Program Files (x86)\Java\jdk1.8.0_65\bin;
Also, I really suggest using GenyMotion (which I avoided for years) to run your emulators, turns out to be incredibly fast, easy to setup and they have free Basic Version.
Best of luck.
Now I have an IP address added to the Run menu
Studio should detect Android & Genymotion emulators and allow you to select from a list. No need to enter the IP. If you don't see the emulators, run appc ti info -t android to see if there's any issues that need fixing.