Tôi đang thay thế cho Trình quản lý SDK độc lập GUI (nó đã xuất hiện trên Android SDK 25), tôi đã tìm thấy trong Android Studio các XML cần thiết để truy xuất gói.Kiểm tra xem gói Android SDK có được cài đặt theo cách lập trình
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
Tôi muốn kiểm tra những gói nào được cài đặt, những gì có sẵn để cập nhật và những gì chưa được cài đặt nhưng có sẵn để tải xuống.
EDIT: Tôi biết cách phân tích cú pháp, tôi không chắc chắn nếu thuộc tính path
là một cách đáng tin cậy để kiểm tra.
Làm thế nào mà nó sẽ giúp tôi để kiểm tra xem gói phần mềm được cài đặt không? Thông tin trên source.properties rất hữu ích. Nó có thể giúp tôi bằng cách nào? Tôi có phải kiểm tra xem tệp có tồn tại không? Ngoài ra, XML có thuộc tính được gọi là 'đường dẫn', Sẽ kiểm tra sự tồn tại của đường dẫn (thay thế'; 'bằng' \ ') một cách đáng tin cậy để kiểm tra nếu được cài đặt? –