Android Studio freezes after updating to 2.0 - android

I have just updated my Android Studio from 1.4 to 2.0, on startup it freezes on splash-screen. is it possible to fix it or i have to download it again?

Its very strange. I have also updated to 2.0 in my MAC, Ubuntu and Windows 10. I didn't feel any issues till now in any of these.
Please note that 2.0 is still a preview. You may have to wait till Google releases the stable version.

Which operating system are you using?
For Windows, check the log of
C:\Users\<Username>\.AndroidStudioPreview2.0\system\log\idea.log
and paste here the last relevant entries on the bottom with a recent timestamp, containing an error message or indication of a possible freeze.
Also, check that you don't have any Android Studio, IntelliJ, or java-processes running before you start Android Studio.

This is an answer for my question, after trying many methods now it works fine.
This is how i resolved my problem by:
Updating Android SDK Tools and the latest SDK Platform
Removing the Android Studio cache folder situated in
C:\Users\<username>\.AndroidStudioPreview2.0
Running android studio again

At First Update Your Android SDK Tools (Support Repository )
Actually Android Studio creates a local directory . AndroidStudio to
cache its own data. In most environments, this is acceptable. However,
the size of the directory can easily exceed 300Mb and, if you have a
space constraint on your home drive (or a roaming profile in windows),
this may be better off in some other place.
The location of this directory is placed in an idea.properties file in the bin/ directory of your AS is installed.

Related

Can't uninstall Android Studio on Windows 10

I want to Uninstall Android Studio, but it's not showing in the control panel programs and features, and I can't find the uninstaller. Does anyone know how to uninstall it?
or reinstalling it for the matter?
I was running into the same issue, tried removing the folder and reinstalling Android Studio but same result. The entry was available in the "programs and features" but when I tried uninstalling I'd get something along "program already uninstalled, remove from list?" which was an error.
What fixed it for me was running geek uninstaller, it showed up there and when I double-clicked it it started the uninstall process normally.
That's probably because you have never installed it. You may have just downloaded the zip and clicked .exe
In that case you can easily download another/newer version and do the same.
It's also possible to have multiple versions on your drive and run them separately. (That's recommended if you use alpha channels, so you can switch to a stable channel if something is not working correctly)
I had the same issue. This is how I solved mine: I downloaded the zip file of an older Android Studio version from here (https://developer.android.com/studio/archive). For me, I picked Android Studio 4.1 Canary 2 released on Mar 9, 2019. I am guessing you can pick most of the older ones and it will have the uninstall.exe program in it. Without decompressing the zip file, I just opened the zip file found the uninstall.exe program at the bottom of list right away. I copied the uninstall.exe and pasted it on my current Android Studio file folder. Double clicked it, and Windows uninstalled the program completely. I made sure to check the box where you want to remove the Android User settings as well (up to you what you prefer).

Xamarin Blank Screen

I am trying to explore Xamarin, trying to create simple CURD project.
I was able to make some progress by watching youtube video's, but I am not sure what went wrong all of the sudden I am getting blank screen in my emulator when I am trying to deploy the project.
Firstly it showed me error stating
'the targetFrameWorkVersion is greater than my project version. You
need to increase the version for the project'.
I tried it, I increased my project version. This issue got resolved but gave birth new error.
Secondly
'To deploy this application, your deployment target should be running
Windows Universal Runtime version 10.0.16299.0 or higher. You
currently are running version 10.0.14393.2007. Please update your OS,
or change your deployment target to a device with the appropriate
version.'
I looked up for newer version of OS, but it seems my OS is already up to date.
I really appreciate if anyone help me out with tips or clue.
Environment is as follows
Visual Studio: 2017
Operating System: Windows 10
I am attaching ScreenShot of error
:
Try this
Set your android project as StartUp project
In your VS menu go to Build ->Configuration Manager
Uncheck the UWP project from both Build and Deploy, i hope your issue will be sorted.
first
its not your SDK, this is cause by old nugets in your project.
update all your nugets. at least xamarin.forms.dll
second
update your windows OS to latest. then
install appropriate microsft windows mobile sdk version. the link should appear when you right click your project and select install missing features
https://learn.microsoft.com/en-us/windows/uwp/updates-and-versions/choose-a-uwp-version

Android Studio 2 update not inside current program

I've got an issue with Android Studio: when there is an update and I want to install it in my Android Studio I must use web-link to get newest version. After I download it I got NEW Android Studio program in my computer, which I can run using android-studio/bin/studio64.exe. This is weird, cause I want to have update in Android Studio - which means initial update build-in my current Android Studio program`.
P.S. Website is something like this:
http://tools.android.com/download/studio/
or this:
https://sites.google.com/a/android.com/tools/download/studio/canary/latest.
I can only download it. Cannot update it via Android Studio...
Any ideas?
Normally you can update from within the IDE, but this is a preview version and somethings things go wrong, which was the case here:
Due to a bug, you can only patch from Android Studio 2.2 Preview 2, 3, 4 and 5. All other versions will need to download a complete install of the IDE.
Yes, with major updates of AndroidStudio, that's correct. Only minor updates can be updated from inside the studio.
First, make sure you know where your SDK lays. I'm just assuming the path to your studio installation is C:\Programs\android-studio
If your SDK is located in C:\Programs\android-studio\sdk (which it shouldn't be in newer versions), you have to copy that to any other location.
After that, rename your folder android-studio to something like android-studio_OLD. Then, copy the new version of android studio to your location (C:\Programs\android-studio).
Then you can try if it starts if you start C:\Programs\android-studio\bin\studio64.exe.
(Note: If you had your SDK inside your studio folder, you might have to enter the path to the new folder of your SDK for everything to work properly)
If the Studio is up and running as it should, you can delete android-studio_OLD.

Android Studio hangs at fetching documentation

Recently I experienced that Android Studio is hanging a lot. Right in the middle of typing in any editor it will hang and block me from doing anything else for a couple of seconds. Restarting or killing adb wouldn't help.
After a while I realized that this happens if the documentation is being loaded and displayed. This happens mostly for Android documentation, which is quite verbose and also seems to contain images and formatting.
I already tried switching off the Auto-update from source option, but that doesn't change anything.
Any ideas what could cause Android Studio to block while it's loading or displaying (or doing whatever with) the documentation?
I'm using Android Studio 2.1.1, the latest build with the security fix.
you can check this solution: https://stackoverflow.com/a/26149069/2133585
Here's what fixed it for me:
Make sure you have the Documentation package downloaded in SDK Manager.
Exit Studio if it's running.
Delete the file named "jdk.table.xml" located in ~/.AndroidStudioX.Y/config/options/ (remember to take a backup
first!).
Relaunch Android Studio. should work correctly now and it should regenerate the file automatically.
Note:
This worked for me on Ubuntu 14.04 & Android Studio 0.8.11 (EDIT: Several users are reporting this solution also works for
newer versions of Android Studio).
If it still doesn't work, try deleting and re-downloading the Documentation package from inside Android SDK Manager then try the
above steps.
If you're running Windows, the file is located at "%UserProfile%.AndroidStudio\config\options", and if you're running
OS X, it's located at "~/Library/Preferences/AndroidStudio/options"
(credits to #Gero and #Alex Lipov).
Fix still works for AS 2.2.3 and MacOS 10.12.2 Sierra

Why would Android Studio 1.0 rc start downloading Android SDK without detecting if there existing one?

I've installed Android Studio 1.0 rc and Android SDK in my Archlinux box. But when I try to create a new Android Application, the AS would try to download another set of SDK directly from dl-ssl.google.com. I mean why, why wouldn't it start first and let me configure the SDK path? (I am in mainland China, so the connect will be reset all the times, in another word, AS will not start to workspace.
Looks like that is in the known issues list: http://tools.android.com/knownissues
A bug in Android Studio 1.0 RC1 causes the Setup Wizard to show up and ask you to install an SDK on each startup. To work around this, you can edit the idea.properties file in the bin folder such that it has the below line as well:
disable.android.first.run=true
PLEASE NOTE: This will break patch updating to the next version. We now check full binary checksums on the whole installation to prevent various install corruption bugs as well as to preserve application signatures. Therefore, make a copy of this file first, and before updating, put it back. (Alternatively, just download the full image of RC2 when it is released.)

Categories

Resources