Android Studio crashes Mac OS due to symbolic link - android-studio

I'm using Android Studio 2.2.1 on Mac OSX El Captain.
Here are my Android Studio version details:
Android Studio 2.2.1 Build #AI-145.3330264, built on October 6, 2016
JRE: 1.8.0_112-release-b05 x86_64 JVM: OpenJDK 64-Bit Server VM by
JetBrains s.r.o
Here are my Mac details:
Model Name: MacBook Pro
Model Identifier: MacBookPro12,1
Processor Name: Intel Core i5
Processor Speed: 2,7 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache (per Core): 256 KB
L3 Cache: 3 MB Memory: 8 GB
Boot ROM Version: MBP121.0167.B17
SMC Version (system): 2.28f7
I'm using some cpp files in my android projects and it's on my module path. My module in ˜metehantoksoy/Repositories/MyProject/mymodule and cpp files in ˜metehantoksoy/Repositories/MyProject/cppmodule.
I created symbolic link from ˜metehantoksoy/Repositories/MyProject/mymodule/src/main/jni/c to ˜metehantoksoy/Repositories/MyProject/cppmodule .
When I try to open my cpp files through the Project Panel in the path of ˜metehantoksoy/Repositories/MyProject/mymodule/src/main/jni/c it opens and there is no exception. But when I try to open cpp file through the Project Panel in the path of ˜metehantoksoy/Repositories/MyProject/cppmodule Android Studio crashes and gives this error:
Crashed Thread: 27 Java: AWT-EventQueue-0 2.2#AI-145.3330264 Studio, eap:false, os
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000f2a93ca3
Exception Note: EXC_CORPSE_NOTIFY
Here is the paste for detailed Android Studio quit unexpectedly error.
I think this is symbolic link error but might be something else.
EDIT 1:
Also I saw this error for my all cpp files.
Failed to get the compiler information for file
Users/metehantoksoy/Repositories/MyProject/mymodule/src/main/jni/c/initialize.cpp

I had this problem with Android Studio 2.2.3 just installed on a new mac book air. On the bottom line of the frame of the Android Studio on main page is the familiar icon of a little green guy. This launched into a pat of the screen and then allowed me to detach it to run normally. All joy and light!

Related

Android studio: Bumblebee cannot save device screenshots or videos captured from logcat screen

Since updating my android studio to the following version:
Android Studio Bumblebee | 2021.1.1 Patch 2
Build #AI-211.7628.21.2111.8193401, built on February 17, 2022
Runtime version: 11.0.11+0-b60-7590822 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.15.7
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 12
Registry: external.system.auto.import.disabled=true, debugger.watches.in.variables=false
Non-Bundled Plugins: org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40)
I'm unable to save either screenshots or videos captured from real devices via the logcat screen.
I get as far as the popup asking the save location, and when I click on the save button nothing happens and android studio is completely locked.
The only option I have is to force quit android studio and restart it.
How can I restore this functionality?
It has never been an issue for me in the past 5 years with android studio.

Installing Android Emulator Hypervisor Driver for AMD Processors fails

I have installed latest Android Studio (on Windows 10):
Android Studio Bumblebee | 2021.1.1 Patch 2
Build #AI-211.7628.21.2111.8193401, built on February 17, 2022
Runtime version: 11.0.11+9-b60-7590822 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 4
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: Dart (211.7808), org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40), io.flutter (65.2.2)
...and have permanent problems with installation of Android Emulator for AMD CPUs. I am using currently AMD Ryzen 2200G with 16 GB of RAM. Virtualization is enabled in BIOS.
I got such error mesage in Android Studio:
Using CPUID I got:
Hypervisor feature flag 0
Hypervisor signature
I know this is quite common problem with AS emulators on AMD CPU, but so far I did not find working solution.

Webpack not accessible in Chrome/Edge Developer Tools

I'm working on some webview pages and need to debug it on Android Emulator. When I open "chrome://inspect/#devices" in the Chrome Browser, I can find the emulator device which I use, then inspect the webview page I programmed, but I can't find the Webpack folder in the developer tools.
https://s3.bmp.ovh/imgs/2022/02/22b5d078b93d07e8.png
the strange thing is that I can find the webpack file by open the browser and type in my local dev url like: http:127.0.0.1:7000
like this:
https://i.bmp.ovh/imgs/2022/02/0cacb2fa243843d7.png
I have already enable the source map for JS in developer tool settings.
the application version:
Android Studio Bumblebee | 2021.1.1 Patch 1
Build #AI-211.7628.21.2111.8139111, built on February 2, 2022
Runtime version: 11.0.11+9-b60-7590822 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 20
Registry: external.system.auto.import.disabled=true
Chrome: Version 98.0.4758.82 (Official Build) (64-bit)

Installing Kotlin Plugin 1.4.31 causes Android Studio to not highlight syntax errors for a single file

Syntax error highlighting isn't working for a single file in my project. I've tried:
Restart Android Studio
Restart Computer
Invalidate Caches and Restart
Clean and Rebuild Project
Sync Project with Gradle Files
Make sure I am not in Power Save Mode
Run Analyze -> Inspect Code on the file in question (no errors found)
I don't see any plugin errors when starting up Android Studio
If I make a syntax error in any other file, the offending piece of code is underlined immediately in red. When I build, the build fails because of the syntax errors.
Android Studio Info:
Android Studio 4.1.2
Build #AI-201.8743.12.41.7042882, built on December 19, 2020
Runtime version: 1.8.0_242-release-1644-b01 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1246M
Cores: 4
Registry: ide.new.welcome.screen.force=true, external.system.auto.import.disabled=true
Non-Bundled Plugins: com.thoughtworks.gauge, org.intellij.plugins.markdown, com.intellij.marketplace, org.jetbrains.kotlin
Reported as a bug here: https://issuetracker.google.com/issues/181717941
This is fixed by File -> Manage IDE Settings -> Restore Default Settings
It can be reproduced by installing the new Kotlin plugin

Android studio adds wrong xcodeproj location in KMP/KMM/KN

I'm trying to run both a brand new KMM application, and an existing KMM application I had created before, and when I try to run the iOS version out of Android Studio I don't have an iOS configuration.
When I go create an iOS configuration I get an error that must be fixed first. When I push on "fix it" button, the gradle.properties file creates a new line of xcodeproj=iosApp/iosApp.xcodeproj
This is both wrong, and duplicated.
If I remove either of the duplicated xcodeproj lines, the error continues and I get a new line when I fix it (again).
If you repeat this process you can also end up with many of the new xcodeproj lines, all with the wrong location.
Modifying the location to the correct location also doesn't solve the problem.
Any thoughts? Seems like a bug in Android Studio 4.1.2.
Here are the details of the Android Studio version:
Android Studio 4.1.2
Build #AI-201.8743.12.41.7042882, built on December 19, 2020
Runtime version: 1.8.0_242-release-1644-b3-6915495 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.7
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Registry: ide.new.welcome.screen.force=true, external.system.auto.import.disabled=true, debugger.watches.in.variables=false
Non-Bundled Plugins: com.intellij.lang.jsgraphql, org.jetbrains.kotlin, com.jetbrains.kmm

Resources