Fixed
Status Update
Comments
an...@google.com <an...@google.com> #2
A quick update that, even though the workaround works in some cases, it doesn't work for apksigner
. There's a missing find_java.bat
file missing in the /tools/lib
folder, which is used by apksigner.bat
bu...@google.com <bu...@google.com> #3
CC-ing adehtiarov@ and jbakermalone@ who were the last committers on //tools/base/sdklib/src/main/java/com/android/sdklib/tool/sdkmanager/
Could you help route this issue to the proper component/TL?
Could you help route this issue to the proper component/TL?
jb...@google.com <jb...@google.com> #4
Andre, do you mean that you see the libraries in a directory literally named _, or is that a placeholder for something else?
jb...@google.com <jb...@google.com> #5
the find_java issue is a real problem, but the solution should be as simple as ensuring via a dependency that the old "tools" is installed when you install build-tools, and that new versions of build-tools don't have this dependency.
an...@google.com <an...@google.com> #6
Thanks for getting back, Joe. Yes, the directory is literally named _
. I did notice that on the MacOS build the tools are located in /tools/lib
.
jb...@google.com <jb...@google.com> #7
Intresting, when I use 7zip to extract I don't see that, but when I use the default windows unzipper I do. I'm not sure why this would be. I'll take a look later.
Would you mind filing a separate bug for find_java? I don't think we have one yet.
Would you mind filing a separate bug for find_java? I don't think we have one yet.
jb...@google.com <jb...@google.com> #8
Actually we already have issue 150888434 for find_java.bat, so no need to file another.
jb...@google.com <jb...@google.com> #9
Fix is checked in, but probably won't be out until the release after the upcoming one.
By the way, if you use 7zip to extract zips on windows it's quite significantly faster (and you also don't have this problem).
By the way, if you use 7zip to extract zips on windows it's quite significantly faster (and you also don't have this problem).
an...@google.com <an...@google.com> #10
Thank you, Joe!
I do have 7-zip installed, but ended up using the default windows unzipper for whatever reason my brain decided.
an...@ivdisplays.com <an...@ivdisplays.com> #11
Comment has been deleted.
Description
sdkmanager.bat in version 6200805 ( commandlinetools-win-6200805_latest.zip ) of the Android command-line tools fails to run with the following error:
The problem is caused by the bat file setting the classpath to look for
sdkmanager-classpath.jar
in the/lib
folder, while the file is actually located under/lib/_
.Workaround
After downloading the SDK, move the files from
\tools\lib\_\*
to\tools\lib\*
, so both the .bat file andsdkmanager-classpath.jar
can find their dependencies in the right place.Changing the classpath doesn't work because
sdkmanager-classpath.jar
expects libraries it includes to be below the folder it is located in