Menu bar not showing in Android Studio - macos

I have a problem with my Android Studio app on macOS Sierra.
It seems like the app is not really open, because usually, when an app is open, there is a dot under its icon in the dock, but on my computer there is none...
The true problem is that the menu bar options like "File", "Build", ... don't show up, and I can't access them. Instead I have the options of the next open app. Once again, it looks as if Android Studio were not open. It's very annoying because I can't use all the tools.
Except these problems, I can edit my code, I can launch an app on a device using a USB wire, etc. It's very weird, and I haven't seen any similar issues on the Web. I tried restarting the app and restarting my computer, none of these worked...
Have you ever experienced the same problem with Android Studio (or with any other app)?

This was fixed by Apple. Upgrading macOS to 10.13.2 Beta 4 (17C79a) resolved the issue for me.

According to IDEA-175658 this is a known bug in High Sierra. But it seems to be a bug of Java and not Jetbrains products.
The workaround by the time being is installing Apple legacy Java 6 runtime. I can confirm it works over here.

Related

Loading SDK component information failed in Android SDK Manager, Android SDK Instance could not be loaded in Android Device Manager

for this project I am using VS 2017. I want to note that everything in Android SDK Manager and in Android Device Manager has always been working fine for me, but today my laptop's account password was expiring, so I changed it, and right after that I started having a lot of issues with VS (I thought maybe this was important to note).
So, when opening Android SDK Manager, I am suddenly seeing this:
And the solution to navigate to the gear icon and change the Repository to "Google" doesn't help me, in fact, it was already set to Google (I tried setting it to Microsoft, closing the manager, and then resetting to Google, didn't work).
Retrying doesn't help.
Does anyone know what to do? I am really stuck at this point, I tried restarting my PC and restarting VS, and in regards to my problem I also tried signing out and signing back in VS just in case, but it also didn't work. Any help much appreciated
Edit:
I also tried actually setting the SDK Location in SDK Manager, but that didn't work:
Switching the source to the approved list helped for me.
Leaving out the latest versions, but at least works...
->Click on the gear and select

Running on Android Studio on my Mac is becoming impossible

I have a 2019 MacBook Pro 13" with a 10th gen i5 and 8 gb of ram. Whenever I try to run android studio on my Mac. My life becomes a nightmare. If I even try to change some of the preferences, it just stops responding, and the weird part is that everything else keeps running perfectly, there are absolutely no issues with any other app running while android studio is frozen I am learning how to code and use such programs and I have no idea why this is happening when I've seen people use 6-7 year old MacBook Airs to run it and it works. I have no plugins installed, just the basic out-of-the-box settings. Can someone please help me.
Android Studio freezes on macOS Big Sur
On machines running macOS Big Sur, Android Studio 4.1 might freeze when you open a dialog.
To work around this issue, do one of the following:
Go to the Apple Menu, select System Preferences > General. In the
Prefer tabs when opening documents option, select "never". Then
restart Android Studio.
Upgrade to Android Studio 4.2, currently available in the Beta channel.
As mentioned by Android Studio Itself

Mac Visual Studio 8.2.6.26 update not showing any iOS simulators, only Generic Simulator

Yesterday I updated my Visual Studio and Xcode. Immediately afterward I lost any listing of available iOS simulators for my Xamarin project in Visual Studio. I can plug my iPhone in however and deploy my project onto it just fine, but I'm used to working with Preview in VS and also running a simulator for quicker response.
I'm currently running the following versions:
• Updated to Xcode 11 (11A420a)
• Visual Studio Mac 8.2.6.26
• Mac OS 10.14.6
• iOS 13.0 on iPhone 7+
Now Visual Studio shows the only available simulator as being the Generic Simulator with a hammer, which doesn't launch anything that I can tell. When I look at the list to choose a simulator I see the message line: "Lower the 'Deployment Target' to see older simulators or check your Apple SDK path"
When I launch a test project directly from within Xcode, it offers iPhone 8, 8+, 11, 11 Pro and others as available simulators and those indeed work. In Visual Studio I have changed each Deployment Target from 6.0 to 12.2 and not one of those makes available any simulators.
I'm not sure what the Apple SDK path is about, how to check it and where it needs to be pointing.
Does anyone have any thoughts about what adjustments need to be made to regain my iOS simulators in Visual Studio Mac again after these updates?
Thanks so much :)
After trying a bunch of suggestions, this simple fix worked for me. First I changed my deployment target in the info.plist from 9.3 to 11. After checking that my Apple SDK path in VS was pointing at Xcode11 and the iOS SDK version on my Mac was 13.0, I simply force quit Visual Studio and Restarted my computer. Then I began to see iPhone8 & iPhone11 simulators. Goodluck.
Updating both XCode and Visual Studio for Mac worked for me.
Just updating XCode did not work.
I also fidgeted with the Deployment Target which I believe refreshed the simulators list.
UPDATE: I confirm again that when I go to info.plist and just click on the deployment target drop down, the simulators list gets update. Little funny.
Ran into this issue many times for the last updates. Nothing really helped, until I came across a Microsoft forum where someone mentioned the Apple SDK path needs a trailing slash, which is not added when using the Browse button to navigate to the Apple SDK Location.
So when using Visual Studio for Mac, navigate to Visual Studio -> Preferences -> Projects -> SDK Locations -> Apple and please note your Apple SDK Location should be something like:
/Applications/Xcode.app/
rather than
/Applications/Xcode.app
Changing the "Minimum System Version" did the trick for me.
Eg. I had 14.4 and I changed it to 14.0 and restart VS the all the simulators appreared.
I resolved the issue as well by going under the Visual Studio --> Check for Updates menu and switching the channel to "Xcode 11 Previews". Finally some updates were available and I updated everything normally. I also updated everything in the "Stable" and "Preview" channels as well. Now I have iPhone 8 and iPhone 11 simulators working, however I no longer have any of the other simulators like iPhone 7, etc. like I did before.
After updating Xcode via the app store, restart your machine. The simulators should reappear.
UPDATE
This didn't work for me after the latest update. However, setting the startup project to Android, then switching back to iOS was enough to repopulate the list for me after restarting my machine.
info.plist has an option called Minimum supported version which says which version of the iOS you are targeting.
in my case it was 10.3 earlier, when i have upgraded xcode (12.4) and vs for mac(8.9.6) to support iOS14. this caused the conflict between the xcode supported iOS version and plist version.
I changed it to 14 in plist for the Minimum supported version and it worked for me.
In summary check the xcode supported version and update the minimum supported version accordingly
Same here, just need to change 'Minimum system version' on your info.plist file in my case was 12.0 and then updated to 12.1 and vualaaaaa the simulator list refresh it.
I had the same problem when the iOS 14 updates were first installed. I had already installed both XCode and VS updates.
What I did is: I restarted the Mac and I had to install the XCode Command-line tools from VS separately. Then the simulators were visible.
What always works for me is connecting an iPhone device. After I connect it, the simulators appear. I guess connecting a physical device also refreshes the simulators list.
This time, nothing was working for me, until I deleted /Library/Caches/Xamarin/XMA and /Library/Caches/Xamarin/mtbs and restarted VS. That helped.
Here's the actual solution if updating everything else still doesn't work. Open terminal, type in "instruments -s devices" to see a list of all the installed simulators.
In your info.plist set "Minimum System Version" to match the lowest simulator version you have installed.
After plugging in my physical phone with the usb cable, the list of simulator devices appeared in like 2 seconds... Before plugging in my phone, only the generic simulator and my phone were shown as deployment options
Just restart of my Mac worked...

Xamarin iOS simulator issues - The device was not found

I am trying to use the Xamarin iOS simulator but it fails on launch with a "The device {guid} was not found".
I have my environment settings like...
and when I run I see...
then...
researching the error, the recommendation is to explicitly set the XCode path which I have done, but I get the same error. Also, notice I am connected to our build Mac.
I have a coworker connected to the same Mac with the same computer and VS version I am on, and his iOS simulator works fine. I have uninstalled/reinstalled the simulator and restarted Visual Studio (2017RC).
I appreciate any pointers someone might have!
UPDATE
I reinstalled my Windows 10 OS thinking I had a corrupt install. Unfortunately on a clean machine with 2017RC, the simulator still fails in the same way as I described above.
In my case: UnCheck Remote Simulator to Windows
I am facing the same issue from last two days and solved this as well by removing the latest version of XCode 12.5.
Download the previous version of code i.e 12.4 from apple site and install
Move the downloaded xcode file in application and check on windows
It works fine
Latest version of XCode 12.5 is not stable
I confirm the issue is currently (May 2021) caused by Xcode 12.5 upgrade.
After I downgraded back to Xcode 12.4, the simulators started to work again with no problem.
I tried to upgrade Visual Studio for Windows to latest version 16.9.4, did not help. I launched Visual Studio Installer to reinstall Xamarin, did not help either.
Only when I removed Xcode 12.5 (using this shell script https://onexlab-io.medium.com/uninstall-xcode-from-macos-eca1b69dc836) and installed version 12.4 (from XIP archive from here How to download Xcode DMG or XIP file?) it started to work.
You may need to uncheck "Remote Simulator to Windows." I just fixed this issue for myself by doing so. However, I was trying to launch on the iOS simulator on my Mac side (running Windows vm via Parallels). It seems you might be trying to launch the simulator in windows.
If you need a quick solution, downgrade the version of VS and Xcode, for me this works:
VS 2019 - 16.9.3
Xcode - 12.4
Xamarin.iOS - 14.14.2.5
And for physical devices make sure Hot Restart is not enabled in Tools > Options > Xamarin > iOS settings
Just had the same problem after upgrading mac to Big Sur and Xcode 12.5 yesterday. Reboots and deleting obj/bin/.vs folders made no difference. The fix was to explicitly type the Xcode path into Xamarin options iOS settings - even though it was the default - untick Remote Simulator to Windows then pair/connect to mac from that options dialog. After closing the dialog and reopening it Remote Simulator was checked again. I unchecked it, closed the dialog and reopened it to check again - it was closed this time. All works fine now.
I also ran mac VS and let it update in the midst of all this.
I have the same issue since yesterday, to resolve that I uninstall the "Xamarin iOS simulator" and now it works...
it may be a solution for your issue!
Did you resolved the issue already?
I bumped onto the same issue today. I tried opening Xcode on Mac and it says it need to install additional tools. I let it install and try open/quit Visual Studio for Mac, Xcode, Simulator again (not sure if it is related)
Now to remote simulator works fine again.
I had the same issue and i resolved it by realizing that my PC with VS was on a different network than my Mac with Xcode. Once i put both machines on the same network the issue went away. Hope it helps.

Dialog Box issues with Android Studio on OSX

Recently, whenever I have Android Studio in fullscreen mode, and a dialog box is presented, the dialog box disappears and I am unable to bring it back into focus so that I can start using the IDE again. I need to force quit the IDE and re-open and it is fine until the next dialog box is presented.
The issue seems to be from OSX 10.11 onwards, and has been reported by a number of users: https://code.google.com/p/android/issues/detail?id=192746
I experienced the same issues on Android Studio v1.5. To save the hassle, I updated to Android Studio 2.0+ on the beta channel, which did not resolve the issue.
I agree, it is very annoying. Hopefully a workaround or patch will come soon.

Resources