Android sdk manager not working in visual studio 2022 for mac monterey - android-sdk-manager

I'm becoming crazy...
I tried three times to reinstall Monterey and Visual Studio 2022 Enterprise for Mac.
Fresh install of Monterey last version at today on mac intel (12.4).
Install of visual studio 2022 enterprise for mac last version at today (17.0.1 build 72).
Android SDK Manager does not work.
How to reproduce the problem:
Open Android sdk manager (Tools > Android Sdk Manager).
Click on Android 9.0 - Pie check box to install Android SDK Platform28 (as an example)
Click on "Apply Changes" pushbutton.
"Apply Changes" becomes disabled for a moment but nothing happens.
"Apply Changes" becomes enabled, click on it another time.
Android 9.0 - Pie check box becomes unchecked and nothing happens,
sometimes a crash is recorded to be sent to Microsoft.
Android SDK Location and Java SDK Location are ok.
I cannot use "Report a Problem because it does not work.
I can open "Report a Problem" but if i click on "Report a New Problem" button nothing happens and sometimes Visual Studio crashes.
Please, help me.

I have the same problem. I worked around it, by using the SDK Command Prompt in Visual Studio 2022 (Tools->SDK Command Prompt). I have version 17.0.2 (build 8) Community Version.
Once in the terminal, change into cmdline-tools/[version]/bin.
You can then list available packages:
./sdkmanager --list
You can install various packages:
./sdkmanager --install "system-images;android-26;default;x86"
./sdkmanager --install "platforms;android-26"
Restart Visual Studio to see the changes applied. I was then able to create a device for testing.

Related

Visual Studio not installed and Install Desktop Development with C++ [duplicate]

My Flutter Doctor is saying:
Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all
of its default components.
How can I fix this problem?
It's basically saying that if you want to develop your Flutter application for Windows you will need to install Visual Studio 2022 and while installing Visual Studio 2022 you will need to download this: Desktop development with C++
Also, you have to install the third link in this: Visual-studio
You could also get desktop development with the C++ tool after installing Visual Studio and then navigating to tool → Get tools and features → Desktop development with C++.
The error means install Visual Studio, and this is different from Visual Studio Code. It's an IDE from Microsoft.
For those who may be using a weak computer and can't afford to install the full Visual Studio, you only need to install a few components from Visual Studio to get Flutter to run on your computer without errors. These components are:
MSVC v142 - Visual Studio 2022 C++ x64/86 build tools.
Windows 10 SDK (for Windows 10 users)
C++ CMake tools for Windows.
In total, they should occupy around 8 GB or so.
As it states, you need to download Visual Studio (which is different from Visual Studio Code).
When installing it, remember to select the required package Desktop development with C++:
This will not prevent you from developing Mobile apps, but it's a requirement only for Windows Development.
Is unnecessary to install the "Desktop development with C++" if you don't want to develop desktop applications for Windows using Flutter.
If you only want to develop mobile apps using Flutter, you can run
flutter config --no-enable-windows-desktop
to disable the desktop support for your Flutter projects. After that, when you run the flutter doctor command again, you will no longer see the warning.
Read more at: https://fig.io/manual/flutter/config
Only two steps are required.
Install Visual Studio 2022 (Link: https://visualstudio.microsoft.com/downloads/)
Install Visual Studio Code (Link: https://code.visualstudio.com/)
Your code will run smoothly.
My solution was a bit simpler. Uninstall everything all build system's from VS. Then reinstall Visual Studio Community 2022, restart then try again. Might get a warning about nuget but it should fix the issue.
With the newest android installer "android-studio-2022.1.1.19-windows" there would be a jbr and jre folder existing, hence creating a link from jre to jbr would not work.
What you can do is copy the contents of the items in jbr into the jre folder and this would resolve the error.
Make sure to install Visual Studio Code.
Open the Visual Studio download page:

Visual Studio not installed; this is necessary for Windows development

My Flutter Doctor is saying:
Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all
of its default components.
How can I fix this problem?
It's basically saying that if you want to develop your Flutter application for Windows you will need to install Visual Studio 2022 and while installing Visual Studio 2022 you will need to download this: Desktop development with C++
Also, you have to install the third link in this: Visual-studio
You could also get desktop development with the C++ tool after installing Visual Studio and then navigating to tool → Get tools and features → Desktop development with C++.
The error means install Visual Studio, and this is different from Visual Studio Code. It's an IDE from Microsoft.
For those who may be using a weak computer and can't afford to install the full Visual Studio, you only need to install a few components from Visual Studio to get Flutter to run on your computer without errors. These components are:
MSVC v142 - Visual Studio 2022 C++ x64/86 build tools.
Windows 10 SDK (for Windows 10 users)
C++ CMake tools for Windows.
In total, they should occupy around 8 GB or so.
As it states, you need to download Visual Studio (which is different from Visual Studio Code).
When installing it, remember to select the required package Desktop development with C++:
This will not prevent you from developing Mobile apps, but it's a requirement only for Windows Development.
Is unnecessary to install the "Desktop development with C++" if you don't want to develop desktop applications for Windows using Flutter.
If you only want to develop mobile apps using Flutter, you can run
flutter config --no-enable-windows-desktop
to disable the desktop support for your Flutter projects. After that, when you run the flutter doctor command again, you will no longer see the warning.
Read more at: https://fig.io/manual/flutter/config
Only two steps are required.
Install Visual Studio 2022 (Link: https://visualstudio.microsoft.com/downloads/)
Install Visual Studio Code (Link: https://code.visualstudio.com/)
Your code will run smoothly.
My solution was a bit simpler. Uninstall everything all build system's from VS. Then reinstall Visual Studio Community 2022, restart then try again. Might get a warning about nuget but it should fix the issue.
With the newest android installer "android-studio-2022.1.1.19-windows" there would be a jbr and jre folder existing, hence creating a link from jre to jbr would not work.
What you can do is copy the contents of the items in jbr into the jre folder and this would resolve the error.
Make sure to install Visual Studio Code.
Open the Visual Studio download page:

android studio 4.2.1 upgrade problems

Android Studio 4.2.1 on Windows 10. Latest stable Flutter version.
If I create a Flutter project I have no database inspector, no profiler and no emulator window, no evd manager under tools menu. Also Device File explorer is gone and i cannot search my database adb file.
Flutter doctor gives no error.
Everything worked fine until the upgrade to 4.2.1
What’s going on? how can i get those tools back? Thank you

VS2015RC Pre-release version of Visual Studio Emulator for Android has Expired

Using Xamarin Forms, when I attempt to launch the Android app in VS2015RC, I receive the following error:
The pre-release version of Android Emulator has expired. Please
upgrade to a newer version.
I have searched the web and am unable to figure out where to upgrade for the latest version?
You can update it from Visual Studio > Tools menu > Extensions and Updates > Updates > Visual Studio Gallery.
Alternatively, you can download it from the Visual Studio Extensions Gallery.

Visual Studio Preview 2015 is missing "VS Emulator Android Phone"

Being exited with the new release of VS preview I downloaded and installed it.
I wanted to try out the new Android Emulator and created a new Cordova project. I was expecting similar choices listed in this screenshot:
However I was only presented with the first five (Device, Android Emulator, Ripple ...) but missing VS Emulator Android Phone and VS Emulator Android Tablet.
If I try to run the application using option "Android Emulator" I get the following error in the output console:
2> WARNING : no emulator specified, defaulting to MonoForAndroid_API_10
2> Waiting for emulator...
2> emulator: ERROR: This AVD's configuration is missing a kernel file!!
Should the Android Emulator be included in the VS 2015 Preview release, or do I have to install something else?
The Microsoft Visual Studio Emulator for Android is installed by a secondary installer that should pop up after installing Microsoft Visual Studio 2015 Preview. There should have been an item in that list that needed to be checked.
If you can verify in Add/Remove Programs that "Microsoft Visual Studio Emulator for Android" is installed and that you are running Windows 8/8.1 Pro 64-bit or better, that would be appreciated. The Microsoft Visual Studio Emulator for Android requires Hyper-V to be installed on the machine.
It also looks like by the error you provided that you may be missing some items in your Android SDK installation. Please go to C:\Program Files (x86)\Android\android-sdk and run SDK Manager.exe as administrator and ensure that under Android 4.4.2 (API 19), both the ARM EABI v7a System Image and the Intel x86 Atom System Image are installed as well as the SDK Platform. Those are necessary for the default Google Emulator
Thanks
--Pierson