So here's the problem android studio works perfect earlier for me
but now whenever i open project it android studio would start normally up to the point where background task tell its's indexing file then my computer would stop
my log file is here github link
here's things i already did:
reinstall android studio with diffrent drive
reinstall windows 10
update sdk components
please help..
Maybe the problem is in the configuration folder. There is a hiden folder with all the configuration options. I had the same problem in Ubuntu, and I just delete this folder, and start again to configurate the IDE, but it doesn't shutdown nothing anymore
Related
I'm currently running Android Studio Bumblebee 2021.1.1 in windows 10.
The problem I have is each time I start android studio the device list is stuck in loading devices.
I tried these solutions
android studio device list stuck on loading/51101178
android device list showing in android studio got stuck/65177069
The soulutions provided in the threads sometimes work and sometimes don't but the real problem is even if I did fix it in the run time, The next time I open android studio it's still there.
I already tried updating android studio to latest version, reinstalling android studio, deleting all the caches and plugins and resetting it to default. Completely Deleting Sdk folder and downloading again. But nothing helped I don't know where this problem could be originate from
In my case deleting the "platform-tools" folder as Dyenal said didn't work because it said that the folder was open elsewhere (even when I had shut down android studio). If that's your case too, do this.
Close android studio
Go to your task manager
Go to the "Details" tab and look for "adb.exe" as seen in the image below.
Right-click on it and "End task".
Open android studio and pretend you weren't interrupted. Cheers :)
Go to SDK folder delete platform-tools folder.. invalidate and restart the studio..works for me!
After hours of research and try and error I finally figured out what was going on.
Turns out my adb configuration was conflicting with genymotion's. Nothing could have done at the side of android studio. I went to the genymotion settings ADB tab and changed from Use Genymotion Android Tools to Use custom Android SDK Tools and it went away at last
This is a temporary solution. Open terminal and type adb devices. Once your device starts showing up in terminal, it will start showing up in loading devices too.
This problem occurs due to Windows folder accessing especially when you change the AVD folder.
Windows prevent access to Windows partition root. you have multi options for solving this problem.
Move AVD folder to another driver. Then define it on the Environment variable
Move the AVD to C:\Users\<User>\.android\avd folder. this folder is accessible for Android studio.
Run emulator from device manager, then type adb devices in cmd prompt
Restarting my computer fixed the problem for me
When using Android Studio, or any other IDE which use their own ADB, it is necessary to set Genymotion to use the correct ADB instead of its inbuilt one. It is documented here: https://docs.genymotion.com/desktop/02_Application/#use-third-party-adbsdk
I only opened task manager and there were a bunch of adb.exe open so i ended all of them while android studio is running in the background so then adb.exe started again and then i go to android studio and find out that the issue was resolved.
I have been using Android studio for quite a while now, but one day the application just suddenly go wrong. When I try to click on my directories to find the files to import or open, the application gets incredibly slow and not responsive at all. When I finally successfully switch to the intended directory where my file is stored, the directory doesn't show anything that can be opened (as shown in the screenshot, where I try to open a file from my download folder but it doesn't show anything).
This error message kept showing up as well (open file operation failed: The open file operation failed to connect to the open and save panel service.)
I have tried to uninstall and re-download Android studio for several times but the problem still remains.
I'm on the latest macOS beta - I've seen the same issue with Artic Fox build of AS.
I upgraded to the Beta Previews of AS and this issue went away.
https://developer.android.com/studio/preview/index.html
This is stable WORKAROUND:
Launch Android studio (stable)
Help - Edit Custom VM Options
Put this options -Dide.mac.file.chooser.native=false
Restart Android studio
I'm having the same issue. Not sure what is going on, but I'm opening from the command line in the meantime to get to the correct directory:
open -a /Applications/Android\ Studio.app /path/to/my_android_project
my project was working well but suddenly when I ran it on my phone, Android Studio freezes and I should stop it from task manager.
before this happens I installed "Geny motion" & "Virtual Box", but when the error occurred I uninstalled them. but the problem insisted.
Solutions I've tried
I uninstalled it and installed it again
I unplugged and plugged in my device
I disabled android indexing from setting
None of the above solutions worked.
I had today this exact problem. None of the above helped me until I found simple solution here
Just run File -> Invalidate Cache and Restart
That simple and it works!!!
Delete all Android Studio data - .gradle .android .androidstudio folders from your home folder. And all project build folders gradle and iml files.
This worked for me.
1.Close the project
2.Remove the project
3.Close Android Studio
4.Open it again
5.Open the project
Enjoy Coding!
I checked my java file and I saw somehow all the code in one of my java files was replaced with "NULL NULL NULL NULL....."
I deleted the file and the application runs without a problem.
Android Studio (3.1.3) froze on me while editing a source file. I waited and finally killed the process in Task Manager (Windows). Twice I tried to start up again and both times it got stuck with the "indexing..." message in the lower right. Both times I ended the process in Task Manager.
I looked in the source folder of the project I was working on. The source file I had been editing when it froze was "Receipt.java". There was another file in the src folder "Receipt.java__jb_tmp__". I deleted that file and Android Studio started up fine. It looks like I lost some edits, though.
When I did start up, it detected there had been some error and offered to submit a report.
If the project is large & has a lot of modules, you might need to increase the Allocated Heap Size for Android Studio.
Go to Edit Custom VM Options from Help menu and increase the value for -Xms and -Xmx
This is what I'm using
-Xms2048m
-Xmx8192m
-XX:MaxPermSize=2048m
-XX:ReservedCodeCacheSize=1024m
-XX:+UseCompressedOops
In my case color was declared as invalid, Android Studio ignored that and during building it froze. I had to remove the file, let it index, paste it back and fix the color string (it gave me error when I entered the pasted file)
just rename project folder then open IDE, it will show
now rename back to origin folder name, click open project
it work on my case
I have older project with sdk version 22, when I open it in android studio 3.1.2 on macOS. It keep indexing forever, everything was installed and configured properly but indexing loop never stopped.
Following worked for me
File > Invalidate caches/restart… > Invalidate caches/restart
Go to the File menu and click the option Invalidate Caches / Restart This will solve the problem ! Enjoy ;)
Ok, here is the thing:
I am using Xamarin.Form to build an app that targets both iOS and Android. I am using Xamarin Studio for Mac
I create the app and the solution creates App, App.Droid, App.iOS project.
In every project there is an indication that show some packages need to be updated.
I run the Droid project in a Samsung S5 API 21, without doing the update, and the app is installed in the device.
I do the update of the packages, to update Xamarin.Form in 20.0.+ version base on the feedback of this question: https://forums.xamarin.com/discussion/57283/unable-to-find-a-version-of-xf-compatible-with so I just update the Xamarin.Form package.
I run again in a Samsung S5 21 but there are some errors : /Users/crs/Projects/time.al/Droid: Error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and extract it to the /Users/crs/.local/share/Xamarin/Android.Support.v4/23.0.1.3/content directory. (XA5209) (time.al.Droid)
What can I do, because I need to update the Xamarin.Forms to the latest version, but I am stuck with this for a long time.
You should:
1-Download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip
2-Go to: /Users/crs/.local/share/Xamarin/Android.Support.v4/23.0.1.3/content
3-Copy the repository downloaded here and unzipped
This worked for me
You should:
Download https://dlssl.google.com/android/repository/android_m2repository_r22.zip
Then go [username]\AppData(hidder folder)\Local\Xamarin\zip
and delete any zip file from there. then rebuild you project and goto step 2 location you should found there something like 96659D653BDE??????????.zip file which visual studio try to download stop build and copy step 1. downloaded file in step 2 location and rename that file with this 96659D653BDE?????????? and remove 96659D653BDE??????????.zip file which is uncompleted.
Then go to visual studio and rebuild your project wait and Viola you got rebuild success. Good Luck
Just remove the corrupted file (android_m2repository_r22.zip) and try again. This happend me like two times by the bad internet connection.
I have a problem with Android Studio. Since this morning I can't edit my layouts through the Design interface. It's stuck on "Initializing Rendering Library" and the IDE freezes. All my layouts were working well yesterday and I haven't changed anything since then.
I have tried to invalidate the cache and restart but without any result.
Try that steps :
1.Update Android SDK and Android Developer Tools.
2.If that will not help, reinstall Android Studio using the newest available version (remember to do a backup of your data and projects).
3.If that will not help, install other IDE for example Eclipse and import all your projects to it.
Good luck !
For me helped such steps:
Remove .gradle folder from the project folder, all *.iml files and
.idea
Remove C:\Users\username.AndroidStudioPreview1.2
Run Android Studio without importing settings. This will allow to see a dialog where you can open your project from scratch. If you
import settings then Android Studio will open previously opened
*.xml files which caused the problem (hanging "Initializing Rendering Library") and the situation will happen again
Run Gradle cleanup
Sync project
Invalidate cache and Restart
Build the project from command line. If use Build from AndroidStudio I got hanging "scanning files to index..."
I reinstalled my android studio without success,
Then, I downloaded the sdk again, and change my old sdk-path to the new one
After I restarted my studio, it works.
The most mysterious thing is, I rechange my sdk-path back to my older one, then every thing is ok,I don't know why,but it solved the problem