Flutter android studio in mac showing Please configure Android SDK in Logcat - macos

I'm using mac os Mojave and android studio for flutter. whenever I create a new Flutter project in the android studio, it is showing that please configure Android SDK. Android SDK is already configured and flutter doctor checked it successfully. I invalidate the cache and restarted the android studio but nothing worked for me. I configured flutter using official flutter website

I had the same problem, the solution as follows :
Open a Flutter project in Android Studio.
Click on File -> Project Structure.
Select the Project tab, under Project Settings.
At the main screen, we should see No SDK in red under the Project SDK section.
Click on the dropdown menu and select an API version installed. Example: Android API 30 platform.
Click OK.
Restart Android Studio (I prefer to restart your mac)

Related

Unable to see list of emulator devices for Xamarin Android in VS 2015

I am using VS 2015 enterprise update 3. After fresh installation, I created a new project--> cross platform tools--> Blank Xaml App(Xamarin.Forms Portable). then made Andriod project is default project from Solution explorer.
Tried select a device but none is available, altough when i open SDK Manager i can see 3 devices.
Andriod error
List of devices
Did you setup your android project as your startup project?
Werid because in your screenshot it shows your portable project as your startup project. This is how it looks like when i debug my android project.

Android SDK could not be found - Android SDK Location is correct

I've installed Xamarin and tried in Visual Studio to start with a small app and test the web view with this. So for this, I've installed the JDK, the Android SDK and Android NDK on my computer. I'm working throught a tutorial for a web view and I have the problem, when I run the Main.axml, it shows me the error, that my Android SDK could not be found (look at the first attachement). When I check my location paths for the JDK, SDK and NDK, it shows me the correct path and a green tick, so the path and files are correct (look at the second attachement). But my app don't recognize it. What's the problem here? I found some threads on stackoverflow for the same problem, but nothing helped me.
1. Attachement
2. Attachement
OS: Windows 8.1
IDE: MS Visual Studio 14.0.23
Xamarin: 4.2.0
EDIT:
I also tried to open my Android SDK Manager, but this one is disabled in my visual studio. I've installed Xamarin, so it should work:
Any ideas? Thanks.
I tried so many things and finally I have the solution for my problem:
Possible reason for the problem: I just installed the Xamarin, which installes also the JDK, Android SKD and Android NDK in it's wizzard, so I thought this should be the correct versions. After installing Xamarin, I opened my Visual Studio and checked the paths (Tool - Options - Xamarin - Android seetings) for my JDK, SDK and NDK. The paths show on the versions, which were installed by Xamarin. My Android SDK Manager was disabled.
Solution: Then I uninstall everything - the JDK, SDK and NDK and also the whole Xamarin and my old Android Studio. After that, I decided to install the newest JDK from the Java website, the newes Android SDK/NDK from the Android Studio website and a plane xamarin without the sdk/jdk installation. So I could be sure, that I have the correct versions. After the installation, I again opened Visual Studio - Tool - Options - Android seetings and set the paths to the new versions. Than I checked my Android SDK Manager and it was finally enabled and so I installed also the newest Android SDK Tools. After that I cleaned and builded my solution, start it and my android emulator opens my webview page. So I think, the best way is to install the required programms from their website and not automaticlly with xamarin. Now it works. Cheers.

Xamarin Installer doesn't recognize installed Android SDK on my Mac

Apparently this is not a problem and someone proposed a solution that apparently works on Windows, this issue still exists on Mac.
Although the SDK installed by Android Studio on its default path (/Users/user/Library/Android) exists, Xamarin installer still wants to download a "private copy of android sdk":
Does anybody know a workaround?
I had this same issue. You can either add the path to the downloaded SDK by clicking the + button, or create folders in the default Xamarin location and then copy the sdk there.
Even though I tried this, a new Android SDK had just been released. The Xamarin installer was intent on downloading the latest version though, and I eventually ended up leaving it to complete.
I was able to change the Android SDK Location in Xamarin Studio to use what was already installed on my mac:
Xamarin Studio top right menu
Xamarin Studio Community
Preferences
SDK Locations
Android
Android SDK Location : Browse and choose the location of your android install; it's usually at the following location on a mac -> user/Library/Android/sdk

Target iOS device drop down not shown in Visual Studio 2013 iOS toolbar

I use Visual Studio 2013 with Xamarin.VisualStudio 3.9.236. Also Mac 10.10 virtual machine in VMWare, with Xcode 6.3, Xamarin.iOS 8.6.0.51, Xamarin Build Host 3.9.0.234.
In Visual Studio, I select iOS project as startup project and set solution platform to iPhoneSimulator for debug mode, but in iOS toolbar there isn't Target iOS Device drop down to select simulator device.
I also check toolbar customization. How to display Target iOS Device drop down in iOS toolbar?
Note: Visual studio fully connected with Mac Build host, and simulator devices are works fine with Xcode and Xamarin studio inside Mac OS.
This problem solved after download and setup last version of Xamarin.
The cause of this error was iOS 8.3 was unsupported by used Xamarin.VisualStudio 3.9.236, that solved in last stable release.
After update Xamarin:
Use these links to download updates with download manager (links may not found in Xamarin website: Stable release: XamarinVS 3.9.547, iOS 8.3 API support and various bug fixes)
Windows:
Xamarin.VisualStudio_3.9.547.msi (20fd2f0)
Mac OS
1- XamarinStudio-5.8.3.1.dmg
2- monotouch-8.9.1.3.pkg
3- mono-android-4.20.2-1.pkg
OR may resolve problem by install older version of iOS Simulator on Mac than 8.3:
1- Open Xcode
2- Go to "Window" menu and click "Devices" menu
3- Follow steps in image:

How to launch iOS emulator from Xamarin Studio

Just beginning to use Xamarin Studio.
Purchased the indie addition
Uploaded all the certs and provisionning profiles
Compiled the entire solution
Now I would like to run the iOS part of the solution in iOS emulator. The problem is - I'm unable to find where in Xamarin Studio is the link or menu option to launch an iOS emulator. I also have the latest Xcode installed on the same Mac machine. So, how do I go about running the compiled iOS project in an emulator?
-Eugene
As it turns out, all I had to do was to switch the Project configuration from Debug to Debug iPhone Simulator: Project ->Active Configuration -> Debug iPhone Simulator.

Resources