some where on Xamarin forum i found that i did not had android>>BuildTool>>19.0,19.3 and all that. so i open up and installed all these pakages. But now i open visual studio and open project (Android App) this exception is comming on Main.axml
Exception:
The Android SDK could not be found. Make sure the path to the SDK is correctly configured in the Xamarin studio option and that you have installed the plateform tools and atleast one plateform SDK.
Please help me getting out of this exception .
Thanks!
Looks like you're missing the Android NDK. After the installation, if still doesn't work, try to double check the parts Java JDK (32 bit), Android SDK For more information check over here.
Try to change SDK path in Visual Studio Tools->Xamarin to:
"...Android SDK in a AppData folder that's hidden from the user"
Xamarin Forum which helped me
Related
anyone can help me with my android studio, so apparently I want to launch my emulators but it always counter same error. this are the things that I have done.
Firstly, I created a basic activity with java language and choose android 5.0(lollipop)
I have choose an pixel 3a(R) with API 30
I have downloaded android SDK also SDK tools which is Android SDK build-tools, Android emulator, Android SDK platform-Tools and also Intel x86 Emulator Accelerator
am I missing something?
this is the error message I constantly:
the error
Is there any solution so that I can launch my virtual phone without reinstalling the android studio back again?
I am really beginner so I hope that you can give the solution in a detailed step by step.
I am on current Visual Studio Version 15.8.4 which contain Xamarin.iOS 11.14.0.13. Today I updated my Visual Studio for Mac and automatically updated Xamarin.iOS to version 12.0.0.15 (based on he Xcode 10 final release) which is not compatible. I get the following error:
Xamarin.iOS versions mismatch
The Xamarin.iOS SDK version installed on
Max is not compatible with this version of Visual Studio. Would you
like us to install Xamarin.iOS '11.14' for you? This will overwrite
any existing Xamarin.iOS installation on your Mac.
When I click 'Install' then the following error occurs:
Error
There were problems installing Xamarin.iOS '11.14'. Please try
again and if the problem persists, try installing directly on the Mac
and connect again.
On the mac I chose Update channel: Stable. I also tried the other channels withoud success. I am not able to install version 11.14 at all at the moment.
Is my only option to wait until they fix that version mismatch?
Visual Studio Version 15.8.5 fixes this. The release notes contain the following text:
Visual Studio Tools for Xamarin now supports Xcode 10, which allows
you to build and debug apps for iOS 12, tvOS 12, and watchOS 5.
I am getting the same error after reading this blog post and following the upgrade suggestions.
https://blog.xamarin.com/ios-12-and-xcode-10/
But my first read through I missed this little tidbit.
"On Windows, Visual Studio 2017 will prompt for an update as it rolls out."
It appears as if the Visual Studio update might not be available yet. I allowed the prompt to downgrade the SDK and I can now connect again. My problem now is that I can no longer use the iOS Xamarin Simulator on my Windows machine. I get a device not found.
I figure the only way to fix this is to downgrade my Xcode back to 9. A workaround is to simply uncheck the "Remote Simulator to Windows" option in Visual Studio under Xamarin -> iOS Settings. That allows the simulator to launch my app on the Mac. I think I can live with this for now and hope that a new VS update is right around the corner.
Update: I also think it is important to mention that Matthew Clendening in the comments to the original post did provide a link to a preview release of the Visual Studio tools if any was unwilling to wait for an official release.
Update 2: We decided to try the pre-release versions of the Visual Studio tools that Matthew linked above and did verify that Pairing works after installing them. If people are not spooked off by pre-release software then it is a viable option.
Update 3: I spoke too soon. I am able to Pair with my Mac with XCode 10 installed but still cannot get the Simulator to run on my windows machine so I am essentially back to where I was when I down graded Xamarin.iOS SDK to 11.4. I am going to dig more to see if this is an unrelated issue.
Last Update: So, overnight as Todd mentioned Microsoft released 15.8.5 and after upgrading, everything is working normally again. Lesson learned ... don't upgrade ANYTHING until EVERYTHING is ready.
I have recently installed Win10, VS2017 Community and Xamarin Studio on my computer. My project is written in VS2017, and when I compile and run it on the device from VS2017 it all works fine, but when I open it in Xamarin studio, I get error "this project type requires Xamarin.Android to be installed". I installed monodevelop, gtk sharp, build tools fool. In Android SDK Manager I installed all I needed. Also, when I press "New solution" in Xamarin studio, it does not offer "Android project". None of the answers I found doesn't works for me. All of the above mentioned worked perfectly on Win7, except that that project was written in VS2015 Community! Need help. Thanks in advance!
I ran into this issue as well. I had been developing in Visual Studio 2017 and wanted to switch to Xamarin Studio for working on layouts, since the designer and AXML intellisense is so much better.
What I discovered is that I needed to install a seperate Xamarin.Android package. I downloaded it from this link https://store.xamarin.com/account/my/subscription/downloads. The universal installer didn't work for me; it only offered to install a remote iOS emulator, Xamarin Profiler, and Xamarin Workbooks, so I downloaded the separate installer and it cleared the issue up.
I came across this same error, and the search results brought me here. Unfortunately, the solutions above are now out of date.
I eventually solved my problem, by going to Preferences -> Projects -> SDK Locations -> Android. Where it immediately showed a popup "SDK needs repair". I had to leave it to download the necessary components.
FYI, Xamarin Studio is now Visual Studio for Mac.
I have just downloaded and installed Android studio 0.4.2 and loaded an android project. This project gives me this error:
Cause: failed to find target android-17
Please install the missing platform from the Android SDK Manager.
so great, I will now go into the SDK manager, and get the missing platform. The only problem is, I cannot access the SDK Manager. The SDK manager button is grayed out and when I go to tools, there is no option for android, so I can't go to toold
Any ideas on how I can fix this problem? I have used Eclipse with ADT before and never had this issue...
Close the project from
File > Close project
doing this will take ou to the Android Studio welcome screen. From there navigate to this path
Configure > Project Defaults > Project Structure > Android SDK
Set you Android SDK location here, you can check all API's level from he same screen inside SDKs tab.
Now import your project again. You can set project specific SDK after opening the project from
File > Project Structure
This is an old one, but since I fixed that, I'm just sharing.
I sorted it downloading the stand-alone SDK and pointing the SDK Location to the folder.
Download the SDK from the "Get the SDK for an existing IDE" https://developer.android.com/sdk/index.html
As #pyus13 said, from the Project structure, select the downloaded folder
Configure > Project Defaults > Project Structure > Android SDK
Now your SDK Manager tab in no longer grayed out and you can access it
Hope this help.
I found the bulls eye solution.
Download SDK zip file from developer.android.com
Extract the zip file.
Copy and paste that extracted folder into Applications/Android Studio/
Open Android Studio. Go to: (Quick Start) / Configure / Project Defaults / Project Structure / (Android SDK Location) and browse SDK folder.
Apply and save.
You and me finally solved this problem. :D
I'm trying to build my wp7 project under vs2012 express for wp. It uses the ad sdk, but I am getting the following errors:
Error 7 The name "AdControl" does not exist in the namespace
"clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=
Microsoft.Advertising.Mobile.UI".
Does anyone know why?
CLARIFICATION - i'm not trying to upgrade my project to wp8 at this time --- just trying to build for 7.1 like before using the new sdk.
Should I be also installing the old 7.1 phone sdk?
http://www.microsoft.com/en-us/download/details.aspx?id=27570
Thanks
I ran into this problem - deleting the Microsoft.Advertising.Mobile.UI reference from the project and readding it and a reference to Microsoft.Advertising.Mobile fixed it for me.
you can check on the following things:
Check whether you updated the target phone framework to "Windows Phone 8.0 OS"
check if you can see yellow exclamation icon in Advertising SDK dll in references folder in Solution Explorer. if yes, then delete that reference and add the reference again to advertising sdk dll from "Add Reference" dialog box.