sdkmanager 返回相同的输出,无论传递给它的参数是什么
sdkmanager returning the same output, regardless of what arguments are passed to it
我已经为 Windows 安装了 SDK 工具并尝试 运行 它;然而,不管我 运行 (sdkmanager
, sdkmanager --list
, sdkmanager --version
, sdkmanager asdoifjasodjfoas
) 它总是打印相同的文本块:
Usage:
sdkmanager [--uninstall] [<common args>] [--package_file=<file>] [<packages>...]
sdkmanager --update [<common args>]
sdkmanager --list [<common args>]
sdkmanager --licenses [<common args>]
sdkmanager --version
With --install (optional), installs or updates packages.
By default, the listed packages are installed or (if already installed)
updated to the latest version.
With --uninstall, uninstall the listed packages.
<package> is a sdk-style path (e.g. "build-tools;23.0.0" or
"platforms;android-23").
<package-file> is a text file where each line is a sdk-style path
of a package to install or uninstall.
Multiple --package_file arguments may be specified in combination
with explicit paths.
With --update, all installed packages are updated to the latest version.
With --list, all installed and available packages are printed out.
With --licenses, show and offer the option to accept licenses for all
available packages that have not already been accepted.
With --version, prints the current version of sdkmanager.
Common Arguments:
--sdk_root=<sdkRootPath>: Use the specified SDK root instead of the SDK
containing this tool
--channel=<channelId>: Include packages in channels up to <channelId>.
Common channels are:
0 (Stable), 1 (Beta), 2 (Dev), and 3 (Canary).
--include_obsolete: With --list, show obsolete packages in the
package listing. With --update, update obsolete
packages as well as non-obsolete.
--no_https: Force all connections to use http rather than https.
--proxy=<http | socks>: Connect via a proxy of the given type.
--proxy_host=<IP or DNS address>: IP or DNS address of the proxy to use.
--proxy_port=<port #>: Proxy port to connect to.
--verbose: Enable verbose output.
* If the env var REPO_OS_OVERRIDE is set to "windows",
"macosx", or "linux", packages will be downloaded for that OS.
我从 https://developer.android.com/studio/ 的 "Command line tools only" 部分安装了 sdkmanager。我当前的版本 Java 是 Java 9(jdk-9.0.1
和 jre-9.0.1
)。
如果这意味着什么,我在使用 运行 程序 (java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
) 时遇到了一些问题,所以我将 sdkmanager.bat 中的 DEFAULT_JVM_OPTS 标志更改为 set DEFAULT_JVM_OPTS="-Dcom.android.sdklib.toolsdir=%~dp0\.. -XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee"
这让我 运行 程序没有任何错误,但也导致了这个问题的主要问题。
检查一次 path
变量。
我遇到了 jdk 13
.
的问题
(java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema)
这并没有解决我的问题。
所以我尝试了 jdk 8
返回相同的输出,不管你提到的参数如何。
我还原了 sdkmanager
文件并设置了 path
env var 并且成功了。
我已经为 Windows 安装了 SDK 工具并尝试 运行 它;然而,不管我 运行 (sdkmanager
, sdkmanager --list
, sdkmanager --version
, sdkmanager asdoifjasodjfoas
) 它总是打印相同的文本块:
Usage:
sdkmanager [--uninstall] [<common args>] [--package_file=<file>] [<packages>...]
sdkmanager --update [<common args>]
sdkmanager --list [<common args>]
sdkmanager --licenses [<common args>]
sdkmanager --version
With --install (optional), installs or updates packages.
By default, the listed packages are installed or (if already installed)
updated to the latest version.
With --uninstall, uninstall the listed packages.
<package> is a sdk-style path (e.g. "build-tools;23.0.0" or
"platforms;android-23").
<package-file> is a text file where each line is a sdk-style path
of a package to install or uninstall.
Multiple --package_file arguments may be specified in combination
with explicit paths.
With --update, all installed packages are updated to the latest version.
With --list, all installed and available packages are printed out.
With --licenses, show and offer the option to accept licenses for all
available packages that have not already been accepted.
With --version, prints the current version of sdkmanager.
Common Arguments:
--sdk_root=<sdkRootPath>: Use the specified SDK root instead of the SDK
containing this tool
--channel=<channelId>: Include packages in channels up to <channelId>.
Common channels are:
0 (Stable), 1 (Beta), 2 (Dev), and 3 (Canary).
--include_obsolete: With --list, show obsolete packages in the
package listing. With --update, update obsolete
packages as well as non-obsolete.
--no_https: Force all connections to use http rather than https.
--proxy=<http | socks>: Connect via a proxy of the given type.
--proxy_host=<IP or DNS address>: IP or DNS address of the proxy to use.
--proxy_port=<port #>: Proxy port to connect to.
--verbose: Enable verbose output.
* If the env var REPO_OS_OVERRIDE is set to "windows",
"macosx", or "linux", packages will be downloaded for that OS.
我从 https://developer.android.com/studio/ 的 "Command line tools only" 部分安装了 sdkmanager。我当前的版本 Java 是 Java 9(jdk-9.0.1
和 jre-9.0.1
)。
如果这意味着什么,我在使用 运行 程序 (java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
) 时遇到了一些问题,所以我将 sdkmanager.bat 中的 DEFAULT_JVM_OPTS 标志更改为 set DEFAULT_JVM_OPTS="-Dcom.android.sdklib.toolsdir=%~dp0\.. -XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee"
这让我 运行 程序没有任何错误,但也导致了这个问题的主要问题。
检查一次 path
变量。
我遇到了 jdk 13
.
(java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema)
这并没有解决我的问题。
所以我尝试了 jdk 8
返回相同的输出,不管你提到的参数如何。
我还原了 sdkmanager
文件并设置了 path
env var 并且成功了。