Where is the Android Support Library SDK in Android Studio 2.1? - android-studio

I'm following a tutorial on setting up Android Studio and the current version that I'm using (2.1.2) is different than what they are using. I'm in the stand alone SDK manager and it's not in the listed options. Below is a screenshot if that helps.

1.Open Project Structure (Press F4 on your project).
2.Select Modules on the left pane.
3.Choose your project and you will see Dependencies TAB above the third Column.
4.Click on the plus sign in the bottom. Then a tree-based directory chooser dialog will pop up, navigate to your folder containing
android-support-v4.jar, press OK.
5.Press OK.
(a progress bar will appear, and voila it should download what you need)
By the way, you should really install the latest android-sdk update. From your screenshot, it doesn't look like you have yet.
if nothing works right then try to visit the link below
Android Support Library Manual Download

Related

How to access "Configure Image Asset"

I want to manipulate my App's icon using "Image Asset Studio", usually I start it by following these instructions:
1- In the Project window, select the Android view.
2- Right-click the res folder and select New > Image Asset...
so I reach this window:
but for some reason I don't see this option "Image Asset" at the "New" menu.
NOTE: If I create a new project then I can see "New > Image Asset" normally.
Update:
I'm clicking on this directory.
I run this android studio on Ubuntu 18.04:
Android Studio 3.5
Build #AI-191.8026.42.35.5791312, built on August 9, 2019
JRE: 1.8.0_202-release-1483-b49-5587405 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-62-generic
There is actually an issue filed in GitHub related to this.
In your case, it seems that you treat a Flutter project as a regular Android project. AFAIK, Flutter projects are not Android projects.
So one of the workaround is also available:
open android studio File->Open folder->navigate to your flutter
project and select the Android folder. Wait for it to sync, then
navigate inside the Android studio folder and find the res folder
right click on it and choose New you will see the Image asset studio.
Also take note of this:
don't open the whole project of flutter using Android studio just open
the android folder found inside the flutter project with Android
studio, so the Android studio can treat it as a Android project rather
than flutter project, which will give you all Android features like
the one ur looking for #image asset studio
And you can also check this blog post about changing your Flutter app icons. And this YouTube video. You will only need your desired image for the icon and App Icon Generator.
To summarize what was written in the blog and discussed in the YouTube post, here are the simple steps you need to follow:
Step 1: Visit appicon.co and upload your intended image to convert to icons, select the types you would like to be generated and click “generate”. This will download a zip folder to your system. (You may skip this step if you have all resolutions in place with you.)
Step 2: Unzip the file. You’ll have two folders by the name of “android” and “Assets.xcassets”.
Step 3: Changing icons for Android App.
In your Flutter project, move to android/app/src/main/res which has a lot of folders starting with “mipmap-”. Delete all of them. And replace from your downloaded and unzipped AppIcons folder, everything that’s under android.
if you right click on res folder and Image Asset is not enabled just follow the following steps they are working for me.
File --> Open and select to open android(which is inside your project) in a new window.
Then if you go to the res folder (on the new window) and right click the Image Asset is enabled.

LogCat Missing from Android Studio 3.1.3

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.

WIX in VS 2012 Menu and Commands missing

I just installed WIX 3.10 and I'm using VS 2012 Ultimate. I have then successfully added a WIX setup project to my solution but that's about as far as I can go because the WIX menu is not showing up. The commands buttons that should appear at the top of the solution explorer window does not appear, neither does the shortcut button that appears just below the 'clean' button when you right click the project. I have tried uninstalling and restarting my PC several times but still the same.
snap shot of the solution explorer window.
I'm obviously missing something, but what? Thanks very much.
The designer you're looking for is from a 3rd party commercial product:
https://www.add-in-express.com/wix-designer/index.php
Normally one would write most Wix files by hand. It's relatively simple XML and the documentation isn't bad.
You can install the extension: Tools -> Extensions and Updates
Then in the search box type 'wix' and Enter.
The extension name is 'Designer for Visual Studio Wix Setup Projects':

Android Studio - How to Change Android SDK Path

When I open Android SDK Manager from Android Studio, the SDK Path displayed is:
\android-studio\sdk
I want to change this path. How do I do it?
From Android Studio 1.0.1
Go to
File -> project Structure into Project Structure
Left -> SDK Location
SDK location select Android SDK location (old version use Press +, add another sdk)
For projects default:
Close current Project (File->Close project)
You'll get a Welcome to Android Studio Dialog. In that:
Click on Configure -> Project Defaults -> Project Structure
Click on SDK Location in the left column
Put the path to the Android SDK in "Android SDK location" field.
(Example SDK location: C:\android-sdk; I have sub-folders like
add-ons, platforms etc under C:\android-sdk)
Click OK to save changes
Have fun!
Following steps were for older versions(<1.0) of Android Studio
In the middle column Click on Android SDK (with Android icon) OR click + on the top if you don't see an entry with Android icon.
Change SDK Home Path and select valid Target.
From the quick start window, choose Configure, then choose Project Defaults, and then choose Project Structure. Then on the left under Platform Settings choose SDKs. Then to the right of that choose the current android platform, mine was Android 4.2.2 Platform, and delete it using the red minus button at the top, then add a new android platform using the green plus button at the top and point it to your current SDK folder and that is it.
I Configured in this way
on
Welcome to Android Studio Screen
Click Configure Then
Project Defaults and then Project Structure
Then
Android SDK and Selected the path to my current location of Android SDK
Changing the sdk location in Project Settings will solve the problem partially. When Android Studio is used to download a new SDK, it will place the new SDK in the internal SDK folder (inside Android Studio).
Existing android developers will already have a large sdks folder (hereinafter referred to as external SDK folder) containing all the SDKs downloaded before Android Studio came around.
For Mac/Linux users though there is a good way out. Soft links!
Exit Android Studio and perform the following steps:
cp -r <Android Studio>/sdk/ <external SDK folder>/
cd <Android Studio>/
mv <Android Studio>/sdk/ mv <Android Studio>/sdk.orig
ln -s <external SDK folder>/ sdk
And we're good to go. Launch SDK Manager after starting Android Studio, watch as it discovers all your existing SDKs like a charm :).
EUREKA I found it!
With the current Studio 1.3 each project has a local.properties file where you can edit the SDK!
Here's how you can change the android sdk path in Android studio:
Open your required android project in Android studio
Click on the main project folder and press F4
Now click on "SDKs" under Platform Settings (Left hand side of the dialog box)
You should now see a plus sign on the top, click it and choose "Android SDK"
Now you would be asked to choose the required SDK folder
Select the required build target(if necessary) and click "ok"
Now you should see the new entry in the list of SDKs
Click "Modules" under Project Settings
Select your project folder and in the Dropdown for "Module SDK", select the new SDK entry and click "apply"
Now click "OK" and your done.
Note: If changes do not take effect, restarting android studio should fix the problem.
Make your life easy with shortcut keys ctrl+shift+alt+S
or
by going to file->project structure:
it will open this window, where you can select your SDK
Try this way i try in Android Studio 2.0
Step 1: File->Settings
Step 2: Settings->SDK options
Step 3: Click Edit option in Sdk Location
Step 4: Show "SDK Components Setup"
Step 5: Click on Three "..." in "SDK Components Wizad"
Step 6: Select your new SDK Path
I noticed that the latest version of Android Studio doesn't seem to have the option "SDKs" path that's mentioned in many of the answers. I'm guessing that disappeared in one of the updates, somewhere down the line?
The way i solved this issue (osx) was:
Go to Project Settings (Cmd + ;)
In SDK Location make sure you're pointing to the correct SDK location (typically /Applications/Android Studio.app/sdk) then hit Apply
Most important step - hit "Sync Project with Gradle files"
I wasn't doing Step 3 and that was throwing me off. After a sync all your source r belong to us....
goto menu File->Project Strucurt or key Ctrl + Alt + Shift + S
and example http://how-to-android-studio.blogspot.com/2014/11/set-sdk-location.html
You can also create the environment variable (in Windows) ANDROID_HOME to the location of the Android SDK and Android Studio will use that.
Above answers are pretty correct, but some times Android Studio, does not like to refresh after SDK path change, a quick solution is to make some change in you Build file, and click on Sync. It will refresh you project.
Happy coding... :)
While first installation There are two situations either you have pre-installed Android SDK if you had used it in past or you have nothing at all, At a time of installation Installer always ask user how you want to configure SDK with your studio.
You can simply give a path here or browse folder where sdk is available in local system. If you already have SDK, Another option as shown in below picture at Left down corner there is a nice option for download SDK, by clicking it you can download SDK with latest release right from there,You can also use third option see in right down corner setup Android SDK for me by clicking it you can step by step set your sdk.
Although you can also set it up when Android shows you list of available projects, a starting prompt window shown below
That's pretty easy, and also sometime if you want to change your SDK you can always change it right in your Android Studio from
On windows system
File --> Project Structure and then you will see SDK Location Option and from there you can set it up by providing a path or by browse it.
Or if you are on MAC system then from Platform settings.
In Android Studio 2.2.3 I think you can change default SDK location for all projects from the top menu:
File -> Project Structure...
A window like below shows up:
in windows press ctrl+shift+alt+s which will open project properties where you can find first option named SDK Location click on it and there you can change SDK path, JDK path and NDK path also
This may not be what you want, but being an eclipse user I had the same problem having duplicate sdk folders which were eating all my ssd space. Currently you can only change sdk path inside android studio project wide which is annoying. What I did instead was I copied all the previous android sdk files that I was using with eclipse to /Android Studio/sdk/ and then just changed the sdk path inside eclipse.
Now both android studio and eclipse are happy.
Here is some ways, as far as I know now.
Android Studio 3.3.2 (testing is OK)
method: 1
just following steps of the official docs, as bellow link shows
https://developer.android.com/studio/intro/studio-config#jdk
method: 2
following steps of the screen shortcuts, as bellow shows
method: 3
following steps of the screen shortcut, as bellow shows
Tap --> file --> close current project.
You'll Android Studio home page
Click on Configure -> Project Defaults -> Project Structure
Click on SDK Location in the left column and copy the path.
Paste the path in My computer --> Right Click -> Properties -> click on Advanced system settings -> Environment variables and change the android home path.
click on 'OK' to save the session.
Add tools and platforms tools in path and save the changes.
Open command prompt[window+R] and type adb + enter.
In Android Studio you can set the general Android SDK path in the file: %Home%.AndroidStudio2.1\config\options\jdk.table.xml
Click on File menu.
Select Project Structure.
Edit the path in SDK Location text box.
From the next time Android Studio will use this location for all your projects.
N.B.: Avoid having spaces in the path as it may sometimes lead to issues.
This is how its done,in Android Studio for windows
Done
For Android Studio 3.1.2:
Tools>> SDK Manager>> Edit "Android SDK Location" to new location
After that, Set environment variable $ANDROID_HOME to your new SDK location
I had the same problem, but with the sdk path pointing to a mounted drive. I found, that simply quit Android Studio, unmount the device and restart Android Studio made it ask for the sdk location, because it had none (Android Studio Beta 0.8.7).
Therefore I guess if you just quit Android Studio, delete \android-studio\sdk or move it somewhere else and start Android Studio again, it should ask for the sdk location aswell.
Though many of the above answers serve the purpose, there is one straight forward thing we can do in project itself.
In Eclipse, go to Window->Preferences, select "Android" from left side menu. On the right panel you will see "SDK Location". Provide the path here.
Good luck.
In Android studio 1.2.2 you can simply changes project based SDK,
Steps:
Right click on Module and select Open module setting or press F12
Select SDK location from left hand side
Now you can change SDK location as well as JDK location from this page
When I ran into trouble with this on Android Studio 3.1.4 the solution was to go into the app dropdown on my project, then Edit Configurations > Defaults > JAR Application where there is a JRE box on the initial Configuration tab. Setting that to my JRE path solved the problem for me.
Simple Answer Work For Sure...
Step 1: Right Click On The Project>> Select Open Module Setting -->
Step 2: Select SDK Location From the Right Side below image
Step 3: Now browse the SDK location from your computer as show below...
Step 4: Click on OK.
I'm guessing from the responses that people aren't understanding your question... If I'm right in that you want to have ~\Desktop\github\ then changing the SDK location isn't what you're after.
From Android Studio 3.2.1:
From the new project dialog, choose
Configure -> Preferences -> Tools -> Terminal -> Start Directory
Put the folder you want as your project default in the field.
e.g. Mine is set to
~/Desktop/github/
since all my work is in
~/Desktop/github/
Just go to
(Main Menu) File > "Sync Project With Gradle Files"
click ok on the popup, it will change your sdk directory.

How to add ajaxcontroltoolkit to toolbox in Visual Studio 2012

I have used the ajaxtoolkit with .NET 4 and Visual Studio 2010, and I was able to add a new tab to the toolbox and add the ajaxtoolkit controls to the toolbox. How do I do this in Visual Studio 2012?
I have added the ajaxtoolkit with NuGet, but I would like to see the controls in the toolbox, so I can drag the controls in. How is this done?
It's located in the packages folder created by Visual Studio 2012 after you use NuGet Package Manager to download it.
Create a tab in Visual Studio (you can name it Ajax Toolkit).
Right click on it and select: Choose Items..
Click Browse and navigate to the packages folder that Visual Studio 2012 creates with your source. Something like this: ..\packages\AjaxControlToolkit.7.0123\lib\40\AjaxControlToolkit.dll
Select AjaxControlToolKit.
I just installed it in Visual Studio 2013. Here's a summary of the process:
Click on solution and Manage Nuget Packages
Filter for AJAX and select the Ajax Control Toolkit
After NuGet installs this, it won't be in the toolbox!
Create a new toolbox group for AJAX CONTROL TOOLKIT
Add Items
Browse
Navigate to the toolkit URL. Project is Webapplication1 in the c:\temp folder so the toolkit was in: C:\temp\WebApplication1\packages\AjaxControlToolkit.7.1213\lib\45 (because I am using framework 4.5)
Click OK and the toolbox should be populated.
Slight sort cut for finding the dll folder, for example step 7 in the instruction set given by user3546149.
(Good job, I would up vote your answer but no reputation).
AjaxControlTookkit should show under References for the project. Right click it and select Properties. The Path property is the path to the AjaxControlToolkit.dll. Copy that Path property.Then for step 7 paste the Path property directly in the search box. Saves eye strain and clickity click oops syndrome.
(Works for VS 2013 also, maybe others).
The current version of the AJAX Control Toolkit does everything to install itself into the VS toolbox. First exit out of VS (it will tell you to exit if you don't) then click the Download button in AJAX Control Toolkit.
To install Ajax Control Toolkit, run the following command in the Package Manager Console
PM> Install-Package AjaxControlToolkit
this is install the Ajaxtoolkit in your current project..

Resources