So far, I've run into a brick wall when trying to open Android Studio. Installation seems to run fine, but when I open the program for the first time, I am greeted with the setup wizard which informs me that it will be downloading components.
The first line in the dialog box tells me that the sdk has been installed in a specific location, which it then lists.
At the bottom, there are greyed-out navigation buttons for 'Back' 'Next' and 'Finish'. The 'Cancel' button is active, but when I click it, nothing happens.
There is no button for 'Show Details' to reveal what is going on behind the scenes.
Basically, this screen does not advance. I have tried on multiple different internet connections. I am not using a proxy.
When I hit cancel, the button becomes greyed-out, and nothing happens. The only way to exit the screen is to force close it in Task Manager.
I have tried running as an administrator.
I am currently running Windows 8.1.
Any ideas what is wrong?
You can download the latest components manually.
Go to C:\Users\Username\AppData\Local\Android\sdk
Open SDK Manager.exe
Update the packages.
Start Android Studio.
Solution for now was to use an older stable version. 1.0.2 worked fine.
Uninstall Android Studio and clean all the junk files, then reinstall it should fix that!
First, Run "Control Panel" ⇒ "Programs and Features" ⇒ Uninstall "Android Studio"
Then make sure to delete any of these files if exist:
C:\Users\username\AppData\Local\Android\Sdk (this directory contains the SDK).
C:\Users\username\.android
C:\Users\username\.AndroidStudioX.X
C:\Users\username\.gradle
C:\Users\username\AndroidStudioProjects (these are the Android projects written by you)
I deleted the folder /Users/USER_NAME/Library/Android/sdk and it worked.
Related
I recently installed Android Studio 3.1.3 on my laptop in order to start learning android/mobile development (I am still new to all of this). The LogCat option seems to be missing though (refer to images below)
What I tried to do in order to fix the problem:
-uninstalling and reinstalling android studio (along with updating it...)
-researching the problem (no useful results as all the solutions were to press alt-6 or go to View->Tool Windows)
It would be a huge help/relief if someone knows how to solve this problem.
Thanks in advance.
I know it is an old question, but I encountered this problem at least twice so it might help someone.
The problem seems to be the path of the project you're looking at.
It should be pointing to the folder containing the 'app' and 'gradle' folders inside your project.
Go to File > Open
Select the folder with the 'app' folder inside your project
Press 'Open'
If you see something like this you can now probably open the Logcat window with alt-6 or View->Tool Windows.
Note that for some reason, it didn't work for me at first until I opened the app folder, run a build and then opened the folder containing the app folder.
You need to sync your project and then Logcat will show up
Just in case anyone stumbles upon this as I did: If you are developing a react-native app, be sure that you import only the android folder of the project.
If you import the whole project, then among other things, logcat is nowhere to be found!
Try pressing Alt+6 on Windows or CMD+6 on Mac.
I closed "Logcat" by accident via right click -> "Remove From Sidebar".
I was able to restore it with these steps:
Launch your current App on an emulator.
This should create a "Run" Tab on the Sidebar.
Click on the "Run" Tab and find the "Modify Run Configuration..."
(Wrench) icon and launch it.
Change the tab to "Miscellaneous".
Check the box next to "Show logcat automatically"
This is not a solution if Logcat doesn't even show up in View->Tool Windows!
But if it does: click it and it may show up at a different location than it used to be. Without recognizing I had shoved it to the top left where the project tab is shown. You can now click on the gear wheel on the tab and select move to bottom left (that is the default location).
This was the solution for my "logcat not showing".
Press Alt+6 inside Android Studio to open Logcat monitor.
Then, Do the following steps:-
Open Android Studio.
Open Android Monitor Window(at the bottom of android studio).
Here you will see the drop down in right corner.
Select Show only selected Application.
Recenty I installed Android Studio on my laptop running Ubuntu 16.04.
When I created a new project and used Android Studio, this annoying popup kept showing: (Because my low reputation, I cannot post images, please click the link below)
https://i.stack.imgur.com/zNMbk.png
I tried to check the checkbox but it still display everytime I click on anywhere in Android Studio.
Help me, thanks in advance.
Try to use this for creating a desktop entry: desktop-file-install THE_DESKTOP_FILENAME_HERE.desktop
It might be the solution (if error it's because it localized the fileB, if ok it will copy to the correct localization /usr/share/applications) Restart then
After trying many times, I decided to reinstall Android Studio and the error disappeared! I don't know the reason clearly but maybe using Create Desktop Entry in Android Studio and creating a .desktop file manually (after installing Android Studio, I wanted to add Android Studio icon to launcher) caused conflicts.
goto settings in android studio
keymap-> main menu-> tools-> create desk entry
right-click on "create desktop entry"
you will get an option to turn off it.
I've got an application I've been working on and am having an issue with android studio. When I click "build->run" and then select my device, the application never runs on my phone (and the log in android-studio that automatically comes up does not have anything, whereas in the past when I have used this feature it usually says something like, "waiting for phone..." and then the application pops up and automatically opens on the phone and you get some other pertinent information). I have the phone already in developer mode with the install from unknown sources set to on. When I manually move the application from its gradle build location to the phone and then install it manually in file explorer, all is well and the application performs as expected. As I need to debug, however, this is not a very viable solution. Anybody have any advice as to how to get it to run from the IDE? I have tried rebuilding and invalidating the cache/restarting android studio, to no avail.
When I click the run tab at the bottom I have an empty window. When I click the debug tab, I see:
Waiting for device.
Target device: samsung-samsung_sm_g920a-randomIntegerId
Uploading file
local path: /home/eric/Documents/class/OOSE/final_project/2015-group-17/project_code/android/Place2B/app/build/outputs/apk/app-debug.apk
remote path: /data/local/tmp/oose2017.myApp
Note: I am building the application on a LUbuntu 15.04 VM on a windows 8 host, and am using the latest version of android studio.
EDIT: gradle console indicates a successful build as well (obviously since moving the .apk manually to the device works properly).
Open 'Run->Edit Configurations...', and look for your app module in the column on the left-hand side.
Select it, then go to the 'General' tab.
Under the 'Activity' section, there are a couple of radio buttons. Make sure that 'Launch default activity' is selected.
Every morning after start of Android Studio I became a dialog with information about new version of Android Studio (Beta). If I click on "Update & Restart" the patch will be downloaded (I see the progress bar and the growing file size). After that the Android Studio will be restarted but... the update is not installed! I can repeat it if I click on "Help/Check for update".
Has anybody an idea how to fix this?
P.S. Sure it is possible to download the full version and install it manually, but it would be so convenient to use automatically updates.
I've solved the problem. It is important how Android Studio was started. If I start it with a workspace parameter:
/android-studio/bin/studio.sh /<path_to_workspace>
then the update doesn't work.
So the solution is to start the Android Studio without any parameters.
I successfully updated my AS from 2.1.1 to 2.2.2, by the following way:
File > Close Project. Close AS.
restart AS, it will not open any project and show you a project list, but please don't open any project.
wait for AS to popup a dialog to remind you there is a new version.
click "update & restart".
after restart, it may remind you import previous configuration files.
import configuration, open a project, you will see the new version number.
hope this will help.
I actually created the issue and it seems they fixed it in the latest release and you have to download it manually from here and update mechanism should be fine.
Ah, it happened to me just now.
In case you installed the Android Studio via JetBrain's Toolbox then the button is disabled if you start the AS manually. You need to close the AS and open the Toolbox and then update from there.
I am using windows 8,android studio 0.4.0 jdk 7_45 and jre7 installed. JAVA_HOME and JAVA variables are also set in Environment Path Variables.
When I click on tools-> android->avd manager , it shows nothing (not even error anywhere) . Nothing at all happens.
What should i do? I guess this version is not very stable.
It Seems your AVD Manager is missing from root SDK directory please follow the Steps
1. Go to sdk\tools\lib\ and copy AVDManager.exe
2. Paste it to root of your sdk Directory.
Now you have sdk\AVD Manager.exe
Now try to run it.
Check the permission for your Android folder.
C:\Program Files (x86)\Android
I fixed the same issue by right-clicking on the Android directory then
Properties->Security then selected the user name and ticked Full control then hit OK
If all else fails run as Administrator - this worked for me
Maybe, you need to go to android directory at first time.
Try to run Android studio in projectName/android folder. Then button AVD Manager must be active.
Run monitor.bat from android/sdk/tools, It open Android Device monitor.
From Window menu select AVD manager and also sdk manager.
You can try to access AVD without the help of Android studio.
AVD can be found:
C:\Users\[user]\AppData\Local\Android\sdk\AVD Manager.exe
You will need to run this as administrator by right clicking and clicking 'Run as Administrator'
I got the same problem.
Check you don't have any errors on the bottom of android studio. I got one with sdk build. If you got the same click on the link in error log.
Next go to file -> settings -> Appearance&Behavior -> Menus and Toolbars.
Roll up Main menu -> Tools.
Choose Android.
Click on 'Apply' button and 'OK'.
Wait for a while (gradel progressbar on the bottom).
I hope that I solve your problem.