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.
Related
Im trying this version of Android Studio
Android Studio Bumblebee | 2021.1.1 Beta 4
Build #AI-211.7628.21.2111.7905991, built on November 11, 2021
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
Non-Bundled Plugins: org.jetbrains.kotlin (211-1.6.0-release-798-AS7442.40)
I realise its a Beta release, however Im having difficulty with the App Inspection tool.
Its fine at the start of the day, once I have stopped it and attempt to restart it consistently fails.
Ive tried closing and reopening Android Studio, restarting Android Studio, invalidating cache and restarting Android Studio, clear file system cache and local history and restarting Android Studio
none of these actions can resolve the error state of
Could not launch inspector androidx.sqlite.inspection: Inspector with the given id androidx.sqlite.inspection already exists. It was launched by project MyProject
Is there an approach I should be taking to resolve this issue?
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
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.
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.
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