Plugin 'org.jetbrains.android' failed to initialize and will be disabled. Please restart Android Studio - android-studio

I left my computer to sleep with Android Studio open and this suddenly happens to me now.
I get this error when Android Studio starts and it forces me to restart it. Also, when it does restart, I have a bunch of errors of other plugins telling me that the plugin “Android Support” is disabled. I tried the solution of this answer with no avail.
Now, in the menu, under tools, I don't even have the AVD Manager nor the SDK Manager anymore!!!
I am at my workplace getting crazy with this. Please help!!
Thank you

it was not a sleep problem, it happens to me all the time whenever i try to change my system's language to other than ENGLISH.
for example when i try to install android studio on a PC that has its default system language HINDI, then this problem comes. because by changing this, date time formats becomes unreadable to android studio.
Simple solution is- dont change your system language and keep it as English.

Related

Android Studio 4.0 doesn't recognize any previous virtual devices

First post--be gentle. Can't find any posts on Android Studio 4.0, so I hope this isn't a repeat. I updated Android Studio from 3.6.3 to 4.0 on Windows 10 (1909). Had created a couple of virtual devices in 3.6.3 (a Pixel 2 running API 28 and a Pixel 3 running API 29)--both worked great in AS-3.6.3 and I could develop apps, compile, load, and run them with no problem.
After the update to AS-4.0, the virtual devices no longer appear in the devices box at the top of the GUI--it just says "No Devices". When I open the AVD Manager, I can see them, and I can start them (although when I start them I get a pop-up saying "AVD Manager: Unable to locate adb"), but I can't get any code to download and execute on it. On the Pixel 3 emulator, I also get another pop-up saying "Detected ADB: Could not automatically detect an ADB binary.", and it gives instructions to resolve it, which don't make any difference (jump into extended controls and toggle "Use detected ADB location").
When I try to open a past project and run it, I get the same behavior--no devices found.
I've also tried making new emulators, hoping the new setup would recognize them, but to no avail. Tried starting and restarting AS, as well as the computer, also to no avail. I have Android SDK Build-Tools 30-rc4, the latest Android SDK Command-line Tools, Android Emulator 30.0.12 Android SDK Platform-Tools 30.0.1, and the Intel x86 Emulator Accelerator all installed.
I've Googled and spoken words of fierce power over this for several days now. Any suggestions for how to get AS-4.0 to recognize the emulators? I've resisted uninstalling everything and starting over--was hoping it was just a configuration thing.
Thanks in advance,
Uber
After some more Googling, I found the answer here (I think my constraint of wanting an answer for AS-4.0 specifically kept me from finding it):
Could not automatically detect an ADB binary - Android Studio
I had to redownload the SDK platform-tools zip file and reinstall it. I don't know why the old one got messed up with the migration from AS-3.6.3 to 4.0, but there you go--such is life with complicated software.
As soon as I replaced the old platform-tools directory with the new one, all my old emulators showed up and I was back in business.
Thanks anyway!
Uber

How to resolve symbols #mipmap and #style in Flutter project?

A while ago my designed Flutter app was running like it should in simulation (virtual device) in Android Studio. After some updates of both Flutter as Android studio I am not able to get the app in simulation. I am new to Flutter and Android studio (have a little knowledge of Xcode, 2 apps in the store) so I have looked at stackoverflow first to find a solution. All tried suggestions did not worked for me and I am hoping somebody can help me.
I have an original version of the project which was running in simulation mode. Now I am working in a duplicated version to find out how to get things up and running again. It worked before but why does Flutter or Android Studio give an error now? The folders and content do exist. Perhaps it is a simple thing to solve but it is not in my knowledge.
What to do to solve the error message I get as shown in the screendump?
The problem seems to be with the resources,
this should help.
Android Studio error: cannot resolve symbol in Xml
Or try to run "flutter clean" (usually solves many problems)
Flutter studio sometimes does not resolve those (no idea why).
Try opening the same Android project in Android studio and check it from there.
Once back, try File->Invalidate Caches/Restart
If they exist and the name is right (without extension), then it could be it.

Android Studio 3.0 VERY VERY VERY slow on run

I have a very big problem using Android Studio.
Every time I make a code changing, I have to check if all has gone well launching my app; but as soon as I click the "Run app" or the "Apply changes", it's the end: it starts the Gradle build process, which take even 30 minutes to complete, and furthermore Android Studio take the full control of my computer, not allowing to do nothing anymore (like open the browser, open notepad++, and so on...).
Can anyone help me?
Thanks
If you use Eclipse you won't have this problem anymore. but if you want to stick with android studio and gradle you can run your emulator and gradle once and whenever you want to compile your code run it on the already built gradle. this means that do not close the emulator and run your program on it again and again. this way you will not have to spent alot of time on loading the emulator and gradle
Android Studio is not a very light software.It uses a lot of your system RAM and CPU power.So if you are using an old system then it is obvious that android studio will run slow.If possible then upgrade your system.
And one more thing it's better to use actual device rather than Virtual Emulator for our application working test.

emulator not showing up on android studio

I've searched all over the web for the past 3 days and can't seem to find a solution. I've done everything mentioned in this post:
Android emulator not showing in Visual Studio
It seems all the 'working' solutions to this problem has been stated in what this guy says he did in his original post, including restarting ADB server (kill and start), restarting my computer, reinstalling emulator and HAMX, installing and running as an admin, changing the timeout delay, reinstalling almost everything, making sure my emulator is installed, etc.
It keeps saying Gradle build finished in 475ms, etc and then waiting for target device to come online for like 5-10 minutes and nothing happens. No emulator shows up. I can't seem to find the solution to this and I am on the verge of giving up, I really need Android Studio to work so I can start on my app.
Can I please get some guidance with this?
If it's relevant, I'm using a Mac.
Have you tried this. Go to the emulator settings and set the Graphics Emulation mode to Software GLES. The default mode will be automatic. I am not sure how it works, but that worked for me on two Linux machines. Being software emulation, the performance of the emulator will not be as good as when using hardware graphics. It seems to be a bug with the SDK.
For me the only thing that worked in macos was to disable docker before starting Studio.
Wipe the data of your Android virtual Device and then start the emulator.
I was using Android studio 4.2 and faced this issue.
No Solutions worked for me so I just erased android studio files. Updated to Android Studio Arctic Fox.
Link to remove android studio files from mac : How to completely uninstall Android Studio on Mac?
For Windows : How to completely uninstall Android Studio from windows(v10)?

Android Studio doesn't open AVD and SDK Manager - "android.bat" not found

Short Story - Android Studio doesn't open AVD and SDK Manager all of a sudden. It throws an error 4:18:46 PM ProcessNotCreatedException: Cannot run program "C:\Users\xxxxx\AppData\Local\Android\android-studio1\sdk\tools\android.bat": CreateProcess error=2, The system cannot find the file specified:..
Long Story - This may sound impossible but here is what has happened. I have been using Studio for a week now and have been running a few AVDs since day 1. Today, I opened Studio again, executed my app on one AVD, closed AVD, made some changes, reexcuted my app and waited for available AVD dialog box to open.. but instead got above mentioned error. Just like that. I didn't do anything else. It was working like a minute ago. I checked various related questions on stackoverflow but couldn't solve it. Just thought of mentioning it if it helps solving the problem.
I checked various related locations and here is what I found - no android.bat, SDK Manager or AVD Manager. While I am surely interested in finding how they disappeared all of a sudden, I am currently more interested in fixing this issue (AVD and SDK Manager not opening).
C:\Users\xxxxx\AppData\Local\Android\android-studio1\sdk
C:\Users\xxxxx\AppData\Local\Android\android-studio1\sdk\tools
C:\Users\thakkap\AppData\Local\Android\android-studio1\sdk\tools\lib
C:\Users\xxxxx\AppData\Local\Android\android-studio1\sdk\build-tools
C:\Users\xxxxx\AppData\Local\Android\android-studio1\sdk\platform-tools
Probably somehow you just lost Android Sdk Tools which was installed before. Just download Android Sdk Tools again and you will be able to open sdk manager. Don't forget to run Android Studio as an administrator.

Resources