Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

317,950

Downloads of v 3.0.0.18:

1,658

Last Update:

27 Oct 2017

Package Maintainer(s):

Software Author(s):

  • Google

Tags:

google android androidstudio admin

Android Studio

This is not the latest version of Android Studio available.

  • 1
  • 2
  • 3

3.0.0.18 | Updated: 27 Oct 2017

Downloads:

317,950

Downloads of v 3.0.0.18:

1,658

Software Author(s):

  • Google

Android Studio 3.0.0.18

This is not the latest version of Android Studio available.

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Exemption for this package version only:

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Android Studio, run the following command from the command line or from PowerShell:

>

To upgrade Android Studio, run the following command from the command line or from PowerShell:

>

To uninstall Android Studio, run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade androidstudio -y --source="'INTERNAL REPO URL'" --version="'3.0.0.18'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade androidstudio -y --source="'INTERNAL REPO URL'" --version="'3.0.0.18'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install androidstudio
  win_chocolatey:
    name: androidstudio
    version: '3.0.0.18'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'androidstudio' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '3.0.0.18'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller androidstudio
{
    Name     = "androidstudio"
    Version  = "3.0.0.18"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'androidstudio':
  ensure   => '3.0.0.18',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved as a trusted package on 27 Oct 2017.

Description

Android Studio is the official IDE for Android development.

Package Parameters

The following package parameters can be set:

  • /PinnedToTaskbar - this put a shortcut on your taskbar to Android Studio.
  • /AddToDesktop - this puts a shortcut on your desktop to Android Studio.

These parameters can be passed to the installer with the use of -params.
For example: -params '"/PinnedToTaskbar:true /AddToDesktop:true"'.


tools\common.ps1
$package = 'AndroidStudio'
$majorVersion = '3.0.0.18'
$buildVersion = '171.4408382'
$checksum = '627D7F346BF4825A405A9B99123E7E92D0988DC6F4912552511E3685764A0044'
$extractionPath =  Join-Path  $env:programfiles 'Android'
$installDir = Join-Path $extractionPath 'Android Studio'

function use64bit() {
	return Get-ProcessorBits 64;
}

function GetStudioExe(){
	if(use64bit) {
		$studioExe = (gci "${installDir}/bin/studio64.exe").FullName | sort -Descending | Select -first 1
	} else {
		$studioExe = (gci "${installDir}/bin/studio.exe").FullName | sort -Descending | Select -first 1
	}
	
	return $studioExe
}

function GetUninstallFile() {
	$uninstallExe = (gci "${installDir}/uninstall.exe").FullName | sort -Descending | Select -first 1
	return $uninstallExe
}

function GetArguments ([string]$packageArgs)
{
	$arguments = @{};

	if ($packageParameters) {
		# Now, let's parse the packageParameters using good old regular expression
		$match_pattern = "\/(?<option>([a-zA-Z]+)):(?<value>([`"'])?([a-zA-Z0-9- _\\:\.]+)([`"'])?)|\/(?<option>([a-zA-Z]+))"
		$option_name = 'option'
		$value_name = 'value'
	
	
		if ($packageParameters -match $match_pattern ){
			$results = $packageParameters | Select-String $match_pattern -AllMatches
			$results.matches | % {
				$arguments.Add(
					$_.Groups[$option_name].Value.Trim(),
					$_.Groups[$value_name].Value.Trim())
			}
		}
		else
		{
			# Throw "Package Parameters were found but were invalid (REGEX Failure)"
			Write-Host "Failed to parse package packageParameters"
		}	
	}
	
    New-Object PSObject -Property $arguments
}

function Uninstall-ChocolateyPinnedTaskBarItem {
<#
.SYNOPSIS
Removes an item from the task bar linking to the provided path.

.PARAMETER TargetFilePath
The path to the application that should be launched when clicking on the task bar icon.

.EXAMPLE
Uninstall-ChocolateyPinnedTaskBarItem "${env:ProgramFiles(x86)}\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe"

This will remove the Visual Studio task bar icon.

#>
param(
  [string] $targetFilePath
)

  Write-Debug "Running 'Uninstall-ChocolateyPinnedTaskBarItem' with targetFilePath:`'$targetFilePath`'";

  if (test-path($targetFilePath)) {
    $verb = "Unpin from Taskbar"
    $path= split-path $targetFilePath 
    $shell=new-object -com "Shell.Application"  
    $folder=$shell.Namespace($path)    
    $item = $folder.Parsename((split-path $targetFilePath -leaf)) 
    $itemVerb = $item.Verbs() | ? {$_.Name.Replace("&","") -eq $verb} 
    Write-Host "Checking if Android Studio is pinned to the taskbar"
    if($itemVerb -eq $null){ 
      Write-Host "Android Studio is not pinned to the taskbar"
    } else { 
        $itemVerb.DoIt() 
        Write-Host "`'$targetFilePath`' has been unpinned from the task bar on your desktop"
    } 
    
  } else {
    $errorMessage = "`'$targetFilePath`' does not exist, not able to unpin from task bar"
  }
  if($errorMessage){
    Write-Error $errorMessage
    throw $errorMessage
  }
}
tools\chocolateyUninstall.ps1
# Common Functions and Config
. (Join-Path $(Split-Path -parent $MyInvocation.MyCommand.Definition) 'Common.ps1')

#$studioExe = (gci "${installdir}/bin/studio64.exe").FullName | sort -Descending | Select -first 1
$studioExe = GetStudioExe

# Remove Pinned Item if it exist
Uninstall-ChocolateyPinnedTaskBarItem $studioExe

# Remove Desktop Lnk if it exist
$desktop = $([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::DesktopDirectory))

$desktopLink = Join-Path $desktop "$([System.IO.Path]::GetFileName($studioExe)).lnk"
if (Test-Path ($desktopLink)) {Remove-Item $desktopLink -force}

# Remove Android Studio Directory
# Remove-Item -Recurse -Force $installDir
$params = @{
	PackageName = $package;
	FileType = "exe";
	SilentArgs = "/S";
	File = GetUninstallFile;
}


Uninstall-ChocolateyPackage @params

# if nothing else is in the $extractionPath besides Android Studio then delete it as well.
if( (Get-ChildItem $extractionPath | Measure-Object).Count -eq 0)
{
	Write-Host "Deleting $extractionPath"
	Remove-Item -Force $extractionPath
}
tools\chocolateyInstall.ps1

# Common Functions and Config
. (Join-Path $(Split-Path -parent $MyInvocation.MyCommand.Definition) 'Common.ps1')

if (Test-Path ($installDir)) {
    $uninstallExe = GetUninstallFile
    
    $params = @{
        PackageName = $package;
        FileType = "exe";
        SilentArgs = "/S";
        File = $uninstallExe;
    }

    Uninstall-ChocolateyPackage @params
}


$params = @{
	PackageName = $package;
	Url = "https://dl.google.com/dl/android/studio/install/$majorVersion/android-studio-ide-$buildVersion-windows.exe"

	InstallerType = "exe";
	SilentArgs = "/S";	
	validExitCodes = @(0,1223);
	Checksum = "$checksum"
	ChecksumType = 'sha256'
}

Install-ChocolateyPackage @params
	
$customArgs = $env:chocolateyPackageParameters
$settings = GetArguments $customArgs
$studioExe = GetStudioExe

if ($settings.addtodesktop -eq "true")
{
	Write-Host "AddToDesktop Value: " $settings.addtodesktop
	
    $desktopPath = [Environment]::GetFolderPath("Desktop")
    $iconPath = Join-Path $(Split-Path $studioExe) 'studio.ico'
    
    Install-ChocolateyShortcut `
        -ShortcutFilePath "$desktopPath\$package.lnk" `
        -TargetPath "$studioExe" `
        -IconLocation "$iconPath"
}

if ($settings.pinnedtotaskbar -eq "true")
{
	Write-Host "PinnedToTaskbar Value: " $settings.pinnedtotaskbar
	Install-ChocolateyPinnedTaskBarItem $studioExe
}

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Android Studio (Install) 2023.1.1.28 3882 Wednesday, January 24, 2024 Exempted
Android Studio (Install) 2023.1.1.27 4115 Thursday, January 4, 2024 Exempted
Android Studio (Install) 2023.1.1.26 3976 Friday, December 1, 2023 Approved
Android Studio (Install) 2022.3.1.22 2510 Friday, November 17, 2023 Approved
Android Studio (Install) 2022.3.1.21 1981 Wednesday, November 8, 2023 Approved
Android Studio (Install) 2022.3.1.20 4239 Friday, September 29, 2023 Approved
Android Studio (Install) 2022.3.1.19 4599 Tuesday, August 22, 2023 Approved
Android Studio (Install) 2022.3.1.18 3448 Wednesday, July 26, 2023 Approved
Android Studio (Install) 2022.2.1.20 7818 Thursday, May 25, 2023 Approved
Android Studio (Install) 2022.2.1.19 3699 Tuesday, May 2, 2023 Approved
Android Studio (Install) 2022.2.1.18 3555 Friday, April 14, 2023 Approved
Android Studio (Install) 2022.1.1.21 1659 Sunday, April 9, 2023 Approved
Android Studio (Install) 2021.3.1.17 15127 Friday, October 14, 2022 Approved
Android Studio (Install) 2021.3.1.16 3709 Friday, September 16, 2022 Approved
Android Studio (Install) 2021.2.1.16 4345 Thursday, August 4, 2022 Exempted
Android Studio (Install) 2021.2.1.15 5794 Thursday, May 26, 2022 Exempted
Android Studio (Install) 2021.2.1.14 3685 Tuesday, May 10, 2022 Exempted
Android Studio (Install) 2021.1.1.23 3831 Friday, April 8, 2022 Exempted
Android Studio (Install) 2021.1.1.22 2827 Thursday, February 24, 2022 Exempted
Android Studio (Install) 2021.1.1.21 4831 Saturday, February 5, 2022 Exempted
Android Studio (Install) 2021.1.1.20 2489 Wednesday, January 26, 2022 Exempted
Android Studio (Install) 2020.3.1.26 4448 Thursday, December 9, 2021 Exempted
Android Studio (Install) 2020.3.1.25 5299 Tuesday, October 12, 2021 Exempted
Android Studio (Install) 2020.3.1.24 3352 Thursday, September 2, 2021 Exempted
Android Studio (Install) 2020.3.1.23 3394 Friday, August 20, 2021 Exempted
Android Studio (Install) 2020.3.1.22 3181 Thursday, July 29, 2021 Exempted
Android Studio (Install) 4.2.2.0 2524 Thursday, July 1, 2021 Exempted
Android Studio (Install) 4.2.1.0 30231 Friday, May 14, 2021 Exempted
Android Studio (Install) 4.2.0.24 1740 Wednesday, May 12, 2021 Exempted
Android Studio (Install) 4.1.3.0 5709 Monday, March 29, 2021 Approved
Android Studio (Install) 4.1.2.0 5676 Tuesday, February 2, 2021 Approved
Android Studio (Install) 4.1.1.0 3487 Friday, November 13, 2020 Approved
Android Studio (Install) 4.1.0.19 6431 Tuesday, October 20, 2020 Approved
Android Studio (Install) 4.0.2.0 2125 Friday, October 9, 2020 Approved
Android Studio (Install) 4.0.1.0 6621 Wednesday, July 22, 2020 Approved
Android Studio (Install) 4.0.0.16 4630 Thursday, May 28, 2020 Approved
Android Studio (Install) 3.6.3.0 1944 Saturday, May 16, 2020 Approved
Android Studio (Install) 3.6.2.0 3977 Wednesday, April 1, 2020 Approved
Android Studio (Install) 3.6.1.0 3575 Saturday, February 29, 2020 Approved
Android Studio (Install) 3.6.0.21 1407 Tuesday, February 25, 2020 Approved
Android Studio (Install) 3.5.3.0 7408 Friday, December 6, 2019 Approved
Android Studio (Install) 3.5.2.0 4993 Tuesday, November 5, 2019 Approved
Android Studio (Install) 3.5.1.0 3825 Thursday, October 3, 2019 Approved
Android Studio (Install) 3.5.0.21 5767 Wednesday, August 21, 2019 Approved
Android Studio (Install) 3.4.2.0 4901 Wednesday, July 10, 2019 Approved
Android Studio (Install) 3.4.1.0 6566 Thursday, May 16, 2019 Approved
Android Studio (Install) 3.4.0.18 4019 Wednesday, April 17, 2019 Approved
Android Studio (Install) 3.3.2.0 5212 Tuesday, March 5, 2019 Approved
Android Studio (Install) 3.3.1.0 5156 Thursday, February 7, 2019 Approved
Android Studio (Install) 3.3.0.20 3555 Tuesday, January 15, 2019 Approved
Android Studio (Install) 3.2.1.0 7759 Friday, October 12, 2018 Approved
Android Studio (Install) 3.2.0.26 3070 Tuesday, September 25, 2018 Approved
Android Studio (Install) 3.1.4.0 5808 Tuesday, August 7, 2018 Approved
Android Studio (Install) 3.1.3.020180709 2695 Monday, July 9, 2018 Approved
Android Studio 3.1.3.0 2580 Monday, June 11, 2018 Approved
Android Studio 3.1.2.0 5757 Wednesday, April 25, 2018 Approved
Android Studio 3.1.1.0 2842 Wednesday, April 11, 2018 Approved
Android Studio 3.1.0.16 3235 Tuesday, March 27, 2018 Approved
Android Studio 3.0.1.0 11208 Tuesday, November 21, 2017 Approved
Android Studio 3.0.0.18 1658 Friday, October 27, 2017 Approved
Android Studio 2.3.3.0 3222 Friday, August 11, 2017 Approved
Android Studio 2.3.1.0 2871 Wednesday, April 19, 2017 Approved
Android Studio 2.3.0.8 1845 Saturday, March 4, 2017 Approved
Android Studio 2.2.2.0 2924 Friday, October 28, 2016 Approved
Android Studio 2.1.3.0 1956 Monday, August 22, 2016 Approved
Android Studio 2.1.2.1 601 Saturday, August 13, 2016 Approved
Android Studio 2.1.2.0 965 Tuesday, June 28, 2016 Approved
Android Studio 2.1.1.0 510 Thursday, May 12, 2016 Approved
Android Studio 2.0.0.20 468 Thursday, May 12, 2016 Approved
Android Studio 1.5.1.0 1697 Wednesday, December 30, 2015 Approved
Android Studio 1.5.0.0 446 Wednesday, December 30, 2015 Approved
Android Studio 1.4.1.0 451 Wednesday, December 30, 2015 Approved
Android Studio 1.4.0.10 613 Thursday, October 8, 2015 Approved
Android Studio 1.3.1.0 478 Tuesday, August 18, 2015 Approved
Android Studio 1.3.0.10 1229 Tuesday, August 4, 2015 Approved
Android Studio 1.2.1.1 480 Saturday, June 6, 2015 Approved
Android Studio 1.1.0 1551 Tuesday, February 24, 2015 Approved
Android Studio 0.3.2.132893413 1713 Friday, January 3, 2014 Approved
Android Studio 0.2.130.737825 734 Tuesday, July 23, 2013 Approved
Android Studio 0.1.130.677228 670 Monday, May 27, 2013 Approved
Discussion for the Android Studio Package

Ground Rules:

  • This discussion is only about Android Studio and the Android Studio package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Android Studio, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus