Android Studio not working after update 1.3.0 - android

I've been running Android Studio on Windows 7 since January and haven't performed an update until today. I started having a problem last week in which AS caused my computer to crash every time I tried to run my application, so I decided to finally stop ignoring the popup which told me updates were available. After downloading and running the file from the Android site, I'm seeing a plethora of error messages along the lines of:
Unable to save settings. Failed to save settings. Please restart Android Studio
and
Cannot load settings from file ' (several different files have been listed) ': content truncated File content will be recreated"
and
Plugin Error
Problems found loading plugins: Plugin "Android Support" was not loaded: required plugin "Gradle" is disabled. Plugin "SDK Updater" was not loaded: required plugin "Gradle" is disabled. Plugin "Android NDK Support" was not loaded: required plugin "Gradle" is disabled. Plugin "Google Cloud Tools For Android Studio" was not loaded: required plugin "Gradle" is disabled. Plugin "Google Cloud Testing" was not loaded: required plugin "Gradle" is disabled. Plugin "Google Services" was not loaded: required plugin "Gradle" is disabled.
All of that might be ignored except for the fact that when opening my existing projects none of the files seem to load, meaning I can't do anything.
So basically I'm worse off now than I was before.
Restarting Android Studio multiple times has not resolved the problem. I also cleared the cache and tried removing the old .AndroidStudio file on the advice of another stackOverflow question, but to no avail. Can anyone help me out on this?

I got solution for
Cannot load settings from file ' (several different files have been
listed) ': content truncated File content will be recreated"
by just deleting recentProjects.xml from C:\Users\Username\.AndroidStudio1.3\config\options it worked for me.

I got a simple solution:
1. go to settings>plugins
2. Check all the boxes at your right(especially the one marked red)
3. Update or install the plugin if required(make sure the red marked texts disappears)
4. Finally restart your studio and you are good to go

I made a clean install and it worked for me.

I found a solution to the first error message:
Unable to save settings. Failed to save settings. Please restart Android Studio
After checking the log files I realised that the file .AndroidStudio1.3/config/inspection wasn't a directory as expected by Studio, but a regular file. After removing it and creating a directory with the same name instead, everything was working fine again.

if you see those errors then just below those errors there is some line in blue color that show INSTALL plugins click on that and it restart your studeo then it will work fine.

I faced the same error after i have installed genymotion with plugin but it was not working correctly so i uninstalled it from control panel. but plugin icon was still appearing in android studio.i reinstalled android studio but the error and icon was still there.
The following solution worked for me:
1) File->Settings->plugins;
2) in the plugin panel, check all the plugins except genymotion plugin.click apply.
3) Restart Android Studio and that's it.
Not confirmed about internet because i have tried without internet it was giving error but when i connected to internet it is done.

Related

Android Studio can't find runner

I cloned a project from git and built it in android studio without any problems but I don't have (Run app) in android studio and also when I run run-android I get this error:
Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`
but I can run my emulator from AVD manager!
I did every solutions that I found with search but they didn't work for me
For me, the reason was one of the following:
Gradle sync was in progress
Gradle sync had failed
For the second case, go to your top-level or app build file and click Try again or Sync button on the notification shown at the top of the file.
You could also just try to sync the IDE with Gradle with either of these buttons:
I faced a similar error. I was trying to import a built apk to profile it and ran into the scenario where the run button was grayed out.
Ultimately what worked. I went to File > Manage IDE Settings > Restore default settings.. and redid the android studio setup.
Note: Doing this will RESET the entire Android Studio and redownload everything.
1- Give the SDK path (to find the emulator path), Usually in User\YourUsername\AppData (is hidden by default)\Local\Android\Sdk. in File->Project structure, SDK location. Also the Java\Jdk path for (JDKs) and the path "...java\util\concurrent" exist
Do not reset the IDE Settings (because you need to reinstall a lot of things and it will not solve)
2 possibility - from File->Setting->Tools->Emulator to check the Launch in a tool window
3 possibility -

cannot acces 'android.app.Activity' which is a supertype of

I have just installed android studio and i'm trying to create my first application. As soon as i create the project i get this error. Obviously i did not write any code and all the lines you see are the default code of the project.
I tried to sync but, as you see in the terminal below, a license error appears.
How can i fix this problem?
I have installed android studio correctly, installing SDK, tools and so on.
Thank you in advance.
Following the advice of Peppe L-G (the guy who commented my question) i went to sdk manager and in the section "SDK platforms" i installed "Android 10.0(Q)" (API level 29).
Now everything works correctly.
I think when your internet connection was off-line. Because Gradle couldn't reach the library, it thought that was missing.Please check that .when you connected to internet and reopen /reinstalling fix the issue
else check your gradle version android version etc to fix the issue
Option 1:
File -> Sync Project with Gradle Files
Option 2:
File -> Invalidate Cache & Restart

Android Studio 3.0.1 - Unable to save settings: Failed to save settings. Please restart Android Studio

I know this a duplicated question but i didn't find any answer validated for the problem .
I made the all the solutions in this question: Android Studio 3.0 - Unable to save settings: Failed to save settings. Please restart Android Studio
but what if my project wasn't a local project and is a remote project on Git .
every time i pull the master from git , this problem is showed up .
the problem was also in Version 3.0 even after updating the Studio
my version of Android Studio is 3.0.1
This wasn't easy as the error doesn't look like others in the questions i mentioned above .
First
if your message error has word plugins in it you should see these answers Here
and these answers Here helps too .
In My Case
the error is found if i tried to Revert Font File in the project we worked on as the message appears every time i launched Android Studio. I work remotely with others on GIT. So this is a a change in the master i pulled and every change i make in my branch wouldn't save.
I don't know if this rule is important if you work with git but i finally didn't make Revert to the file so the error message didn't show again and in the next launch of Android Studio the Revert message didn't show
Recently I encounter the same issue, After updating the android studio I faced this issue and I tried all the possible solutions found on the internet.
My project has multiple modules and one of the modules is present inside a custom folder. (The same project has worked without any issue in the windows environment).
For example, In windows, the path for the module is "/internal/module name".
After importing the same project in mac the path should be changed to "./internal/module name".
After doing this the studio errors,
- Unable to save the setting
- Unable to find a matching configuration of the project.
All are resolved and I am able to build my project successfully.
Delete .idea and restart Android Studio.

Android Studio SDK Installation Failed

I am trying to install Android Studio in Mac OS 10.12.3
I downloaded Android Studio v2.3 for mac.
It installs successfully, but when setting up for the first time, it always shows this error.
An error occurred while trying to compute required packages.
On clicking finish, i get
Failed to determine required packages
When i try to open SDK Manager, all options are disabled and it shows [this][3]. Even if i click on set sdk location, it gives me the same error as before.
I searched a lot in stack overflow and tried many suggestions, but nothing worked till now.
Things i tried:
Changed proxy settings, and added *.dl.google.com, *.dl-ssl.google.com in bypass proxys.
In android studio preferences, changed it to 'Auto Detect Proxy Settings'
Disabled Tunnelblick (i use it for VPN).
Deleted ~/.android everytime before trying
Changed permission to selected SDK folder to 777
Tried to run installer with sudo
Different SDK installer location
Once you've failed the install, click Finish (I believe twice) to get to the Android SDK launcher. Click on Settings -> Appearance & Behavior -> System Settings -> Updates and change the Update Channel to "Canary Channel".
Close out of the SDK and relaunch the Android Studio. It should go forward w/o issue.
Ok, after a lot of search, and asking for help, i found something. Maybe it can help someone else.
I still didn't figure out what was the problem, but i got a workaround.
Since android studio couldn't install SDK, i used homebrew to install android-sdk separately, and then linked that folder as ANDROID_HOME and then set that path in Android Studio SDK, and it worked.
There was some more problems i faced in updating SDK Tools, but updating from command line did the trick.
Now all works fine.

Android Studio Gradle not Building Project

I was using my android Studio very well. I don't know what happened and now I am getting only Building "xxxx" Gradle project info whenever I want to create my new project. I am unable to open any new project. Please help. I don't have even 10 reputations to upload the screenshot.
I think my Gradle is not working. How can I reset or restart my Gradle ?
I think you have updated your gradle build tool.
Go to file>setting>build,execution deployment> gradle> check your gradle tool version
I had many hours trying to figure this out.
I have followed just about every Stack-overflow article on the issue.
The cause for me was my Anti-virus and Firewall settings. I turned these off, and restarted my Android Studio opened my application I was trying to build it all downloaded what it needed and sync'd nicely. Problem solved, relief as I have been literally days on this.
Add this line
File -> Settings -> Compiler -> Gradle -> VM Options:
-Xmx256m
I was failing a class because of this issue. I solved it by
1) Do not delete the Android Studio Version You Downloaded, Leave it intact
2) Google search an older version of Android Studio, in my case, 2.1.1
3) Download it and install, CHOOSE CUSTOM INSTALL
4) A message should appear saying approximately "Another version of Android Studio has been discovered, the installer will only download the missing files"
5) Confirm by starting a new project
I faced the same problem. Had to wait for 30 minutes for the project to built. But then it was working properly again. So maybe waiting is a solution.

Categories

Resources