1.3 Solving SDK Update Issues
Category Android Basic Beginner Tutorial
Problem Description
>
It's common for everyone to encounter issues when updating the SDK, and being unable to access Google search, due to the Great Firewall of China blocking Google. Therefore, one either has to use a VPN or modify the HOSTS file to access and update the SDK! This section introduces two methods to update the SDK!
1. Modify the hosts File
Simply search "Google hosts 2015" on Baidu and you'll find plenty of options. The one I commonly use is: google hosts 2015, continuously updated - 360 Knowledge Base. After entering, copy all the content below the split line:
Then open this path on your computer:
Open it with Notepad and paste the copied content!
Next, enter: https://www.google.com.hk/
You'll see:
Then open the SDK settings:
You'll be amazed to find that the SDK can now be updated, and you can also access Google, albeit a bit slow. Let's introduce another method to update the SDK, which is much faster!
2. Use Domestic Mirror Servers for Update
Remember the AndroidDevTools we introduced earlier, essential for Android development? Open this website, and we can see
Next, we just need to choose any one of the above, then open our Android SDK Manager, and make the following settings: Tools -> Options, fill in the address and port number of the mirror source, check Force https: //use Https protocol
Then close, return to the main interface, and select Packages -> Reload, and you'll see the progress bar moving, we can also choose the corresponding version of the SDK to download, and the speed is quite fast~
3. Summary
This section introduced two methods to solve the issue of SDK not updating. Modifying the hosts file is more troublesome, as it may need updating every few days. If you only want to update the SDK, it's recommended to use a domestic mirror for updating!
-1.0 Android Basic Beginner Tutorial
-1.0.1 2015 Latest Android Basic Beginner Tutorial Contents
-1.1 Background and System Architecture Analysis
-1.2 Development Environment Setup
-1.2.1 Developing Android APP with Eclipse + ADT + SDK
-1.2.2 Developing Android APP with Android Studio
- 1.3 Solving SDK Update Issues
-1.4 Genymotion Emulator Installation
-1.5.1 Git Tutorial for Basic Local Repository Operations
-1.5.2 Git: Setting Up a Remote Repository on GitHub
-1.6 How to Use the 9-Patch Image
-1.7 Interface Prototype Design
-1.8 Project Source Analysis (Various Files, Resource Access)
-1.9 Android Program Signing and Packaging
-1.11 Decompiling APK to Obtain Code & Resources
-2.1 Concepts of View and ViewGroup
-2.2.1 LinearLayout (Linear Layout)
-2.2.2 RelativeLayout (Relative Layout)
-2.2.3 TableLayout (Table Layout)
-2.2.4 FrameLayout (Frame Layout)
-2.2.5 GridLayout (Grid Layout)
-2.2.6 AbsoluteLayout (Absolute Layout)
-2.3.1 Detailed Explanation of TextView (Text Box)
-2.3.2 Detailed Explanation of EditText (Input Box)
-2.3.5.RadioButton (Radio Button) & Checkbox (Checkbox)
-2.3.6 ToggleButton and Switch
-2.3.7 ProgressBar (Progress Bar)
-2.3.9 RatingBar (Star Rating Bar)
-2.4.1 ScrollView (Scroll Bar)
-2.4.2 Date & Time Components (Part 1)
-2.4.3 Date & Time Components (Part 2)
-2.4.4 Basic Explanation of Adapter
-2.4.6 Optimization of BaseAdapter
-2.4.7 Focus Issues with ListView
-2.4.8 Solving Checkbox Misalignment Issue in ListView
-2.4.9 Data Update Issues with ListView
-2.5.0 Building a Reusable Custom BaseAdapter
-2.5.1 Implementation of Multi-Layout ListView Item
-2.5.2 Basic Use of GridView (Grid View)
-2.5.3 Basic Use of Spinner (List Option Box)
-2.5.4 Basic Use of AutoCompleteTextView (Auto-Complete Text Box)
-2.5.5 Basic Use of ExpandableListView (Collapsible List)
-2.5.6 Basic Use of ViewFlipper (Flip View)
-2.5.8 Detailed Explanation of Notification (Status Bar Notification)
-2.5.9 Detailed Explanation of AlertDialog (Dialog Box)
-2.6.0 Basic Use of Other Common Dialogs
-2.6.1 Basic Use of PopupWindow (Floating Box)
-2.6.3 Simple Use of ViewPager
-2.6.4 Simple Use of DrawerLayout (Official Side Menu)
-3.1.1 Event Handling Mechanism Based on Listeners
-3.2 Event Handling Mechanism Based on Callbacks
-3.3 Analysis of Handler Message Passing Mechanism
-3.4 TouchListener vs OnTouchEvent + Multi-Touch
-3.5 Listening for Content Changes in EditText
-3.6 Responding to System Settings Events (Configuration Class)
-3.7 AsyncTask Asynchronous Task
-4.1.1 Introduction to Activity
-4.1.2 Intermediate Activity -4.1.3 Activity: Entering the House
-4.3.1 BroadcastReceiver: A Small Test
-4.3.2 BroadcastReceiver: Detailed Analysis
-4.4.1 ContentProvider: Initial Exploration
-4.4.2 ContentProvider: Further Exploration - Document Provider
-4.5.2 Intent: Passing Complex Data
-5.2.1 Fragment Example: Bottom Navigation Bar Implementation (Method 1)
-5.2.2 Fragment Example: Bottom Navigation Bar Implementation (Method 2)
-5.2.3 Fragment Example: Bottom Navigation Bar Implementation (Method 3)
-5.2.4 Fragment Example: Bottom Navigation Bar + ViewPager for Swipe Page Switching
-5.2.5 Fragment Example: Simple Implementation of News (Shopping) App List Fragment
-6.1 Data Storage and Access: File Storage and Reading
-6.2 Data Storage and Access: SharedPreferences for Saving User Preferences
-6.3.1 Data Storage and Access: Introduction to SQLite Database
-6.3.2 Data Storage and Access: Further Exploration of SQLite Database
-7.1.1 Android Network Programming: What to Learn and HTTP Protocol
-7.1.2 Android HTTP: Request and Response Headers
-7.1.3 Android HTTP Request Method: HttpURLConnection
-7.1.4 Android HTTP Request Method: HttpClient
-7.2.1 Android XML Data Parsing
-7.2.2 Android JSON Data Parsing
-7.3.2 Android File Download (1)
-7.3.3 Android File Download (2)
-7.4 Android Calling WebService
-7.5.1 WebView (Web View) Basic Usage
-7.5.2 WebView and JavaScript Interaction Basics
-7.5.3 WebView Considerations After Android 4.4
-7.5.6 WebView Handling Webpage Error Code Information
-7.6.1 Socket Learning Network Basics Preparation
-7.6.2 Socket Communication Based on TCP Protocol (1)
-7.6.3 Socket Communication Based on TCP Protocol (2)
-7.6.4 Socket Communication Based on UDP Protocol
-8.1.1 13 Drawable Types in Android Summary Part 1
-8.1.2 13 Drawable Types in Android Summary Part 2
-8.1.3 13 Drawable Types in Android Summary Part 3
-8.2.1 Bitmap (Bitmap) Full Analysis Part 1
-8.2.2 Bitmap-Induced OOM Issues
-8.3.1 Detailed Explanation of Three Drawing Tool Classes
-8.3.2 Drawing Class Practical Examples
-8.3.3 Paint API: MaskFilter (Mask)
-8.3.4 Paint API: Xfermode and PorterDuff Detailed Explanation (Part 1)
-8.3.5 Paint API: Xfermode and PorterDuff Detailed Explanation (Part 2)
-8.3.6 Paint API: Xfermode and PorterDuff Detailed Explanation (Part 3)
-8.3.7 Paint API: Xfermode and PorterDuff Detailed Explanation (Part 4)
-8.3.8 Paint API: Xfermode and PorterDuff Detailed Explanation (Part 5)
-8.3.9 Paint API: ColorFilter (Color Filter) (1/3)
-8.3.10 Paint API: ColorFilter (Color Filter) (2/3)
-8.3.11 Paint API: ColorFilter (Color Filter) (3/3)
-8.3.12 Paint API: PathEffect (Path Effect)
-8.3.13 Paint API: Shader (Image Rendering)
-8.3.14 Paint Enum/Constants and ShadowLayer Shadow Effect
-8.3.15 Paint API: Typeface (Font Style)
-8.3.16 Canvas API Detailed Explanation (Part 1)
-8.3.17 Canvas API Detailed Explanation (Part 2) Clipping Methods Collection
-8.3.18 Canvas API Detailed Explanation (Part 3) Matrix and drawBitmapMesh
-8.4.1 Android Animation Collection: Frame Animation
-8.4.2 Android Animation Collection: Tween Animation
-8.4.3 Android Animation Collection: Property Animation - Introduction
-8.4.4 Android Animation Collection: Property Animation - Further Exploration
-9.1 Using SoundPool to Play Sound Effects (Duang~)
-9.2 MediaPlayer for Audio and Video Playback
-9.3 Using Camera to Take Photos
-9.4 Using MediaRecord for Audio Recording
-10.1 TelephonyManager (Telephony Manager)
-10.2 SmsManager (SMS Manager)
-10.3 AudioManager (Audio Manager) -10.4 Vibrator
-10.10 Sensor Topics (1) – Introduction
-10.11 Sensor Topics (2) – Orientation Sensor
-10.12 Sensor Topics (3) – Accelerometer/Gyroscope Sensor
-10.12 Sensor Topics (4) – Understanding Other Sensors
-11.0 Completion of the 2015 Latest Android Basic Beginner's Tutorial
-12.1 Android Practice: DrySister App (First Edition) – Project Setup and Basic Implementation
-12.2 DrySister App (First Edition) – 2. Parsing Backend Data
-12.4 DrySister App (First Edition) – 4. Adding Data Caching (Introducing SQLite)
-12.5 DrySister App (First Edition) – 5. Code Review, Adjustments, and Logging Class Writing