The development environment is the first to develop Android applications using different platforms.Here's a way to update and download the Android SDK in the process of building a development environment:The first step: Configure the agent service for the Android SDK manager
. A game and software can be used in two ways. One is that we make adaptive screen games when playing games, for example, we take coordinates based on the screen width, height, image width, height, and so on, rather than writing the dead position coordinates. The second is the adaptive technology of Android OS after 1.6;
However, in some cases, it is clear that android
mVersion; // The application version public static final int PARSE_XML_ERROR = 10; public static final int PARSE_XML_SUCCESS = 11; public static final int SERVER_ERROR = 12; public static final int URL_ERROR = 13; public static final int NETWORK_ERROR = 14; private static final int DOWNLOAD_SUCCESS = 15; private static final int DOWNLOAD_ERROR = 16; protected static final String TAG = "SplashActivity"; pr Ivate static final int COPYDATA_ERROR = 17; private UpdateInfo updateInfo; private Progres
Android SDK Manager cannot update the SDK or the update speed is slow.
Google is completely inaccessible due to the fire Great Wall. Therefore, the Android SDK Manager cannot update the SDK or the update speed is slow,
Solution:
Hardware environment: MacBook Pro Retina, 13-inch, late 2013 Processor 2.4 GHz Intel Core i5 Memory 8 GB DDR3 MHzHard disk 60G or moreSoftware Environment: OS X 10.9.2 GNU make 3.81Python 2.7.5XCode 5.0.2Java Version "1.7.0_55"Repo VERSION = (1, 21)A fee VPN (agent fan wall is not download, please use VPN)( software version issues are likely to cause download
), done. FromHttps://github.com/Homebrew/homebrew * [New branch] Master, Origin/masterhead is now at 561d03c URLVIEW:UPD ATE 0.9 bottle.==> installation successful!==> Next stepsrun ' brew help ' to get started---------------------------- After the----------------------------------------installation is successful example Usage:brew [info | home | options] [FORMULA ...] Brew Install FORMULA ... brew uninstall FORMULA ... brew search [foo] brew list [FORMULA ...] Brew
. OS. NetworkOnMainThreadException -- Multithreading
Everything is done, so you can rest assured that there is still a problem!
An error occurred while obtaining the update information !!! Debug and find Exception: android. OS. NetworkOnMainThreadException
This exception probably means an exception occurs when the main
Build a fully command-line Android build system
Step 1 Installing JDK environment
With the Android JDK it's best to use the official JDK version instead of the open JDK, and here's how to install JDK 1.7 under Unbuntu.
The code is as follows:
sudo add-apt-repository Ppa:webupd8team/java
sudo apt-get update
sudo apt-get install Oracle-java7-installer
Step 2
Linux System release image download (continuous update)Http://www.linuxidc.com/Linux/2007-09/7399.htmLinux System release image download (October 2014 update), if not directly download, please use thunder download . And notice, mi
automatically associates with the source code in sources.
This time we try to see if the solution works. We have created activity01.java,Code:
Package COM. jason; import android. app. activity; import android. OS. bundle; import android. util. displaymetrics; import android
The previous articles have introduced how to download and compile the Android or CM source code, but they are always in the extended series.With the deepening of learning, the android source code is of great reference and learning value. We strongly recommend that you download, compile, and learn it. Therefore, we will
Update the SDK today and encounter an update download failure issue: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. Fet
Today is July 1, 2014, in a few days to Shenzhen to practice training, the core content of the training is the development of Android. Although Android is very hot today, as a programmer we must always keep a clear mind. I am not a prophet, but recently contacted Android projects, but let me really feel the Android ope
Case study of online update for Android
I. Preparation for updating softwareTo update software online, we need a signed application. We need to put the software that has been signed into the server. My example is as follows:Apk is an updated version with a signature!The updateinfo.html code is as follows:
{Version: 2.0, description: all new versions are available
Because AndroidUI threads cannot perform time-consuming operations, such as file downloads and network connections. Therefore, operations must be performed in the new thread. Usually the acquired data needs to be displayed in the current Activity, and the UI cannot be updated in other threads. There are two methods: 1. Handler 2. AsyncTask
I tried the Handler method before, and it was easy to understand and complicated. Later I saw various articles about AsyncTask, so I tried it with reference t
Google, a network giant, recently released its Linux-based mobile phone operating system, Android. The latest SDK can now be downloaded, and its App development environment turns out to be Java! At present, Google has launched an Eclipse plug-in Android Development Tools (ADT) to simplify Development. According to official site documents, it is very easy to develop an A
Android Studio official version has been released for some time, using the Mac version of Android Studio may be problematic with Java not found:android Studio is unable to find a valid JVM.To solve this problem:The first thing to determine is that there is no JDK installed on your Mac system, and you can view your JDK version by entering the command java-version on the terminal. If the JDK is not installed,
Configure the Android NDK development environment in Mac OS X
1. Before reading the following, make sure that the development environment of your Android sdk has been set up, and the ADT should be the latest.
2. download the latest ndk at http://developer.android.com/tools/sdk/ndk/index.html.
3. decompress the download
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.