我正在为GUI独立SDK管理器制作一种替代方案(它在Android SDK 25中消失了),我在Android Studio中找到了检索软件包所需的XML文件。
Android Repository https://dl.google.com/android/repository/repository2-1.xml
Android System Images https://dl.google.com/android/repository/sys-img/android/sys-img2-1.xml
Android TV System Images https://dl.google.com/android/repository/sys-img/android-tv/sys-img2-1.xml
Android Wear System Images https://dl.google.com/android/repository/sys-img/android-wear/sys-img2-1.xml
Glass Development Kit, Google Inc. https://dl.google.com/android/repository/glass/addon2-1.xml
Google API add-on System Images https://dl.google.com/android/repository/sys-img/google_apis/sys-img2-1.xml
Google API with Playstore System Images https://dl.google.com/android/repository/sys-img/google_apis_playstore/sys-img2-1.xml
Google Inc. https://dl.google.com/android/repository/addon2-1.xml
Intel HAXM https://dl.google.com/android/repository/extras/intel/addon2-1.xml
Offline Repo file:/C:/Program%20Files/Android/Android%20Studio/plugins/sdk-updates/offline-repo/offline-repo.xml
我想查看已安装的软件包、可更新的软件包以及未安装但可供下载的软件包。
编辑:我知道如何解析,但不确定path
属性是否是一种可靠的检查方法。