Solution to Android SDK download and update failure
When you use sdk manager to update the sdk, you may find the following error message during the update process:
Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xmlFetched Add-ons List successfullyFetching URL: https://dl-ssl.google.com/android/repo
The first download to install the Android SDK failed:Fetching Https://dl-ssl.google.com/android/repository/addons_list-2.xml fetched add-ons list successfully fetching Url:https://dl-ssl.google.com/android/repository/repository-8.xml done loading packages. Fetching Https://dl-ssl.google.com/
Baidu provides an open interface for querying ip address locations. When you enter an ip address in the search box to search, the Baidu box application provided by ip138 will be opened, you can directly enter the ip address in the box to query. I checked the page request, extracted the interface for querying ip addresses, and wrote a simple ip address retrieval query application using Qt. It can run on a computer or Android phone. Baidu API is used he
During the download of Android4.0.1 source code in Ubuntu 13.04, I initially referred
Download and install the SDK, but you will find that the SDK is not too busy. The detailed process is recorded here:
1. on the premise that the Android development environment has been set up, that is, the jdk has been installed. Enter java-version to check whether it is success
First, let's take a look at what repo is. We know the code of the android open-source project and use a repo tool to effectively manage hundreds of git projects under android. In fact, repo is not a program, but a script project... and git is the real version management tool. To put it bluntly, repo is a bunch of batch processing (written in Python). It encapsulates git commands reasonably and aims to manag
/************************************************************************* * i.mx6 Android 5.1.1 Download, compile * Note: * Here to mention is the 4.2 version, the compilation is interrupted, you continue to make up as if it is OK, but this * 5.1.1 version seems to have to start again, this is a bit depressing. * 2016-9-9 Shenzhen Nanshan Ping Shan village Zengjianfeng *************************************
As mentioned earlier, Android porting is primarily a Linux kernel migration, and Linux kernel porting is primarily a Linux-powered migration, so in order to develop and test Linux drivers, it is necessary to learn in Ubuntu How to build two sets of development environments under Linux: Android Application development environment and Linux kernel development environment. The construction of the Linux kernel
used it, the practice on the Internet is a bit redundant. Maybe the network environment is different. Try again.In the user directory, create a bin folder to store the repo and set the path to the environment variable:
[Plain]
View plaincopy
$ Mkdir ~ /Bin
$ Path = ~ /Bin: $ path
Download the repo script to execute the repo.
[Plain]
View plaincopy
$ Curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo> ~ /Bin/Repo
$ Chmod A + x ~ /
ADB is a 10 thousand-capable tool that allows you to manage the status of Android devices. For more information about ADB, see: http://developer.android. com/GUIDE/developing/tools/adb.html.
ADB has the following functions:
Download and install the APK application on the host and start running on the target device;
Start the shell of the target device on the host;
Use the ddms (Dalvik debug monitor serv
controls and custom attributes (note namespaces) in layout files.
4. Calling in Mainactivity
Full Instance code click here Download the site .
More interested readers of Android-related content can view the site: "Summary of Android Control usage", "Android View Summary", "Andr
I. Overview of the problem
In Android development, the ability to download files, such as app version updates, is often used. After API Level 9, the Android system provides us with the Downloadmanager class, which is a system service provided by Android, which we complete with the file
, need to download the driver. My test cell phone is the Galaxy Nexus i9250 that is downloaded below such as the following drivers% CD ~/tdroid/tdroid-4.3_r1% wget https://dl.google.com/dl/android/aosp/broadcom-maguro-jwr66y-5fa7715b.tgz% Tar- ZXVF broadcom-maguro-jwr66y-5fa7715b.tgz%./extract-broadcom-maguro.sh # (View the license and then type "I ACCEPT") ...% W Get https://dl.google.com/dl/
Android sdk 8-10 Mbit/S download speed, as shown in the figure below1. Force use of http to replace the https Link
Tools, select Options, and select "Use Download Cache" and "Force https ://... Sources to be fetched using http ://..." And use download cache
2. Disable the xml Link Library for the dl-ssl.google.com
Windows 64-bit
Android-ndk64-r10-windows-x86_64.zip
417411195
91879ec85539b45313a21b9526b911a8
Mac OS X 32-bit
android-ndk64-r10-darwin-x86.tar.bz2
323736411
5bbaf9d8051ba5d2c0fff74cfd87c374
Mac OS X 64-bit
android-ndk64-r10-darwin-x86_64.tar.bz2
327740247
72561b27acc6192a2e81
The first step,After the SDK manager starts, some Google XML files are parsed and some log messages are printed in log.After parsing, copy all the logs into a notepad (this step is because the Log window does not support the search), in the inside to find what you want to download, and then you can get the corresponding XML file.As an example:If you want to download the arm EABI v7a system image for
1. On a Linux terminal, run the following command to create an android directory under the user directory and enter the directory:Flat view printing? 1 mkdir android2 cd android2. Create the bin directory in android to execute the command:Flat view printing? 1 mkdir bin3. Add it to the environment variable PATH (this step can be skipped and will be described in step 1 ):Flat view printing? 1 PATH = ~ /
I. Install the VMWARE+UBUNTU environment, you can choose a new version as far as possible.Two. Source code downloadIn the case of a wall now, it is almost impossible to use git to download Android source code directly from Google.Fortunately found the image of Tsinghua University, the address is as follows:http://mirrors.tuna.tsinghua.edu.cn/help/AOSP/Then just follow the tutorial of this site step-by-step
written to the hardware underlying device in real time, skipping over the cache, which is good for unexpected outages such as downloading files Randomaccessfile RAF = new Rand
Omaccessfile (file, "RWD");//rwd, real-time write to the underlying device/set the size of the temporary file raf.setlength (length);
Raf.close (); , calculate each threadHow many bytes should be downloaded int size = length/threadcount;//If there are more than one, the last part of the thread is respons
The landlord has been grinding the sword for three years (not a sword of course) and has devoted himself to the android multi-thread download demo. Some people ask "How to write or demo ?", Because I am too busy,I wrote a little bit every day, and now I wrote a download device, which means the download management class
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.