ChocolateyPackages
Chocolatey Packages maintained by digitaldrummerj
NOTE: The AndroidStudio package source has moved to https://github.com/digitaldrummerj/Chocolatey-AndroidStudio
Chocolatey Packages that I maintain
Chocolatey Packages maintained by digitaldrummerj
NOTE: The AndroidStudio package source has moved to https://github.com/digitaldrummerj/Chocolatey-AndroidStudio
I had a problem uninstall android-sdk.
2018-06-01 14:59:09,064 5896 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\android-sdk\tools\chocolateyUninstall.ps1'
2018-06-01 14:59:10,105 5896 [ERROR] - cannot connect to daemon at tcp:5037: cannot connect to 127.0.0.1:5037: No connection could be made because the target machine actively refused it. (10061)
2018-06-01 14:59:10,153 5896 [DEBUG] - Running Uninstall-ChocolateyZipPackage -packageName 'android-sdk' -zipFileName 'tools_r25.2.3-windows.zip'
2018-06-01 14:59:10,171 5896 [ERROR] - ERROR: Cannot bind argument to parameter 'Path' because it is null.
2018-06-01 14:59:10,183 5896 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\android-sdk\tools\chocolateyUninstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'.
2018-06-01 14:59:10,196 5896 [DEBUG] - Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a']
2018-06-01 14:59:10,239 5896 [DEBUG] - Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116'
2018-06-01 14:59:10,248 5896 [ERROR] - android-sdk uninstall not successful.
2018-06-01 14:59:10,259 5896 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\android-sdk\tools\chocolateyUninstall.ps1'.
See log for details.
2018-06-01 14:59:10,271 5896 [ERROR] - android-sdk not uninstalled. An error occurred during uninstall:
android-sdk uninstall not successful.
2018-06-01 14:59:10,298 5896 [WARN ] -
Chocolatey uninstalled 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2018-06-01 14:59:10,308 5896 [INFO ] -
2018-06-01 14:59:10,317 5896 [ERROR] - Failures
2018-06-01 14:59:10,328 5896 [ERROR] - - android-sdk (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\android-sdk\tools\chocolateyUninstall.ps1'.
See log for details.
2018-06-01 14:59:10,341 5896 [WARN ] -
If a package uninstall is failing and/or you've already uninstalled the
software outside of Chocolatey, you can attempt to run the command
with `-n` to skip running a chocolateyUninstall script, additionally
adding `--skip-autouninstaller` to skip an attempt to automatically
remove system-installed software. This will only remove the packaging
files and not things like software installed to Programs and Features.
If a package is failing because it is a dependency of another package
or packages, then you may first need to consider if it needs removed
as it is typically installed as a dependency for a reason. If you
decide that you still want to remove it, head into
`$env:ChocolateyInstall\lib` and find the package folder you want
removed. Then delete the folder for the package. This option should
only be used as a last resort.
2018-06-01 14:59:10,374 5896 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2018-06-01 14:59:10,428 5896 [DEBUG] - Exiting with -1
To help out native script add the android_home path variable so that they can remove this step from the native script install steps.
It would be great to be able to pass in an install location when using the JDK choco package.
When installing this package into a docker container, I see that sdkmanager
prompts to accept a licence, and the workaround you have added here doesn't seem to work - perhaps there is some timing issue causing the input to get missed.
What finally solved this issue for me was a slightly larger workaround:
$nl = [System.Environment]::NewLine;
$yesFileContent = "yes" + $nl + "yes" + $nl + "yes" + $nl + "yes" + $nl
Set-Content -Path ".\yes.txt" -Value $yesFileContent -Force
cmd /c '.\sdkmanager.bat tools < yes.txt'
What this does is to create a file with multiple lines where each line has yes
.
I then pipe that into the sdkmanager.bat tools
command when installing the tools package. I repeat this for any other packages I install. This seems enough for the yes
not to get missed and the licence actually gets accepted.
Have you configured your git client to set your username and email address? Your username in commits should be a link.
GitHub has a guide for this (I assume you're on Windows, because Chocolatey).
https://help.github.com/articles/setting-your-username-in-git/
Im attempting to install this in a windows container running windows server core 1709.
The install fails with the following output: https://gist.github.com/dazinator/3dc8b23991715abfbed87bec017093ef
There should be a property for this like the jdk8 package
It appears that the $java_home variable does not get set after the jdk is installed and before it is used to set the environment variable on line 42. Looking through the code and previous versions, it looks like a call to get-java-home has fallen into the abyss at some point. I believe it should be called around line 41 in chocolateyInstall.ps1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.