Linux Mint + Android Studio - android-studio

I had got my system formatted. I have linux mint installed on laptop with 8gb ram and Intel i5 processor.
I have installed Android studio 2.1 stable version and have configured it for instant run. First it was running very well for few days but now my laptop is hanging frequently and I have to restart it in every while.
I had increased heap size to 15000mb in gradle.properties within .gradle folder for instant run to work properly.
I had installed jdk 1.8, android studio, chrome and postman setup in
system.
Any help to fix issue would be appreciated

Related

Android Studio using all the CPU and becoming unresponsive

I'm not doing anything intensive with AS - just working through developer.android.com/codelabs/android-room-with-a-view-kotlin
I've increased the ram available for AS to 4GB, but that hasn't helped. It just bogs down after a few minutes use, and I can see in the task manager that it is using up to 97% of the CPU. I've got a pretty decent laptop, 16Gb ram - and have used older versions of AS to create java apps without issues. This is my first effort with Kotlin, and first time with this version of AS.
I just have to close AS with the task manager and restart it, but I'm not getting any work done before it freezes again.
Android Studio Dolphin | 2021.3.1 Patch 1
Build #AI-213.7172.25.2113.9123335, built on September 30, 2022
Runtime version: 11.0.13+0-b1751.21-8125866 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 8
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
ide.instant.shutdown=false
Non-Bundled Plugins:
com.intellij.marketplace (213.7172.48)
com.thoughtworks.gauge (213.5744.125)
com.developerphil.adbidea (1.6.8)
How can I find out what's going wrong?
Thanks.
I found a solution for Windows:
The problem was with Android Studio itself not deleting all the folders when fresh reinstalling it. So, you must do so manually:
Backup your project
Uninstall Android Studio
In "Windows Explorer" enable the option "Hidden items"
Go to C:\Users[your_name]\AppData\Roaming\Google
Delete everything inside the folder
Go to C:\Program Files\Android
Delete everything inside the folder
Reinstall Android Studio (if prompted to import settings select "no")
If you have any other problem, comment below, and I will try to help you with the best of my knowledge.

Multiple Duplicate Openjdk binaries on start of android studios/ gradle sync failed, 96% RAM

System specifications: 16 GB RAM, GTX 1050 8GB, i7 8th gen, HP OMEN 17T(2018), Win 10.
On opening android studios(Fresh download), multiple(80+) OpenJDK platform binary files(consume 100MB each) are opened during Gradle build(binaries can be seen running on task manager in the given image). These files take 97% of my system RAM, following which android studio crashes due to failed Gradle sync/unable to start Gradle daemon(unable to allocate memory for object heap).
These rogue OpenJDK files do not close even after I terminate android studios and continue consuming RAM.
Uninstalling and reinstalling android studios do not seem to help.
my normal RAM consumption is 20-27% and all other system processes run fine, I have McAfee antivirus on at all times.
task manager at android studio runtime
I can't believe that this exact issue I've been facing for days was simply fixed by switching off the Hotspot in my windows 10
Don't ask me why or how I don't know,, it just fixed it,, in my case
Downgrading gradle worked for me! just open project structure in Android Studio and choose gradle version as 6.0 and plugin version as 3.6.4.
The problem was with Gradle itself, seems like a bug(as #Zoe mentioned in the comments). A temporary solution is to start Gradle in offline mode. You can let it connect to the internet once the Gradle build is complete(Gradle daemon started successfully).
I tried adding other unrelated java files in the bin folder and found those binaries to be duplicated in my task manager along with OpenJDK, hope the Studio dev team fixes this soon.

App Development using AMD | Visual Studio Code / Android Studio

Important: I have AMD Cpu and Windows 10 Home.
i want to start developing an app with flutter. I want to use Visual Studio Code or Android Studio as IDE.
But when i create a new virtual device and try to run it. Android Studio says:
"Intel HAXM is required to run this AVD.
HAXM is not installed. Install Intel HAXM for better emulation performance."
But if i continue with the install, it says error1 or error2
The log file suggestet in error2 says see here on screenshot
..
I also tried with Hyper-V but this doesn't work because I dont have have the Hyper-V folder installed.
I guess that's because i am using Windows 10 Home (the free one) and not Pro.
I also tried to activate SVM in die UEFI, it was already activated.
Update
Because i am using AMD cpu and donĀ“t own Windows 10 pro license.
There was no other way than to buy an intel processor or to buy windows 10 pro.
That's why i decided to upgrade windows, now it is working with Hyper-V...

Android Studio takes too long to launch or open

When I run Android Studio it takes too long to open. Approximately 30 minutes.
I have an i5 processor with 4 GB ram & 1 TB and run Android Studio version 2.2.3
I have tried many different versions but none of them are working properly, not one has ever opened.
Help me out with this. Tell me what I should do so that Android Studio will run a little bit faster!
You may consider the steps you applied during installation.
I'll suggest you use your command prompt window to check your jdk version. Run your command prompt terminal and type : java - version
Notice the build. If youy build is less than version 7, you would need to download the latest java jdk from the official site.
Hence you would need uninstall your android studio, upgrade your jdk, then re-install the android studio.

/dev/kvm not found in Android Studio (Windows 10)

I was using Android studio on windows 8.1 and it was working fine. Now I upgraded to windows 10 with a clean install and installed android studio. When I open AVD manager and creates a new emulator, it says /dev/kvm not found. I tried these after googling but nothing worked for me-
Go to sdk\extras\intel\Hardware_Accelerated_Execution_Manager and install intelhaxm-android.exe
Download a fresh copy of Intel HAXM and install, but it says failed to configure driver: unknown error. failed to open driver.
Re-install HAXM from SDK manager, but it says Windows blocked the installation of a digitally unsigned driver. Uninstall the program or device that uses the driver and check the publisher's website for a digitally signed version of the driver
Downloading workground patch for HAXM, extract to haxm folder and Run as administrator.
My System
OS- Windows 10
Processor- Intel Core i3 third gen
Intel Virtual Technology already enabled from bios.
Hyper-V is also unchecked
I found that, when I start my PC by disabling driver signature enforcement, the emulator is working fine..
At least its solved i justa instled the new HAXM version 6.0.4 at this will work:
Here is the link:
HAXM v6.0.4

Resources