Summary of Android error messages and android error messages

Source: Internet
Author: User

Summary of Android error messages and android error messages

Remind yourself of your mistakes.

[Error message]
[16:39:10-ApiDemos] WARNING: Application does not specify an API level requirement!
[16:39:10-ApiDemos] Device API version is 8 (Android 2.2)
Cause:
Normal operation is not affected. No API version is added to the AndroidManifest. xml file, and <uses-sdk android: minSdkVersion = "3"> </uses-sdk> is added to <manifest> </manifest>.
[16:55:04-ApiDemos] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
[16:55:04-ApiDemos] Please check logcat output for more details.
[16:55:05-ApiDemos] Launch canceled!
The device does not have enough storage space to install the application,
[Error message]
[11:46:53] Failed to push selection: Is a directory
Cause:
Folder of shards
[09:25:12-ActivityMain]: Dx
Unexpected top-level exception:
Java. lang. IllegalArgumentException: already added: Lorg1/apache/commons/codec/net/RFC1522Codec;
[09:25:12-ActivityMain]: Dx at com. android. dx. dex. file. ClassDefsSection. add (ClassDefsSection. java: 123)
[09:25:12-ActivityMain]: Dx at com. android. dx. dex. file. DexFile. add (DexFile. java: 143)
.....
[09:25:12-ActivityMain]: Dx1 error; aborting
[09:25:12-ActivityMain] Conversion to Dalvik format failed with error 1
Cause:
[Error message]
When Eclipse is started, the following error occurs:
This android sdk requires android developer toolkit version 10.0.0 or abve.
The current version is 8.0.1.v201012062107-82219.
Please update adt to the latest version

Cause:
Eclipse Android development plug-in version is too low, should download ADT-10.0.0, and
1. Start Eclipse and go to Help> Install New Software.
2. In the Available Software dialog box, click Add ....
[Error message]
[15:21:34-Info] Failed to install Info.apk on device '? ': Unable to open sync connection!
[15:21:34-Info] java. io. IOException: Unable to open sync connection!
[15:21:34-Info] Launch canceled!
Cause:
Disable the simulator and eclipse, run the adb kill-server command, and then try again.
[Error message]
When Webservice is called
Java.net. SocketException: Permission denied (maybe missing INTERNET permission)
Cause:
To access the network, you must configure the following in AndroidManifest. xml:
<Uses-permission android: name = "android. permission. INTERNET"/>
[Error message]
Org. xmlpull. v1.XmlPullParserException: expected: START_TAG {cursor (position: START_TAG <{export targetNamespace = 'HTTP: // taobao'> @ 2: 603 injava. io. InputStreamReader @ 44a3a7b0)
The cause may be one of the following:
1) The Soap version of the Webservice server is 1.0, so the client specifies
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope (SoapEnvelope. VER11 );
Change VER11 to VER10
2) String serviceUrl = "http: // 200.200.200.11: 10000/nqbx/service/InqBxWebService? Wsdl ";
The Url refers to the address of your webservice. Generally, it is ***. wsdl or ***.? The wsdl ends... but it should be noted that the. wsdl or .? Wsdl
[Error message]
In the new Thread, public class HttpThread extends Thread {...}
Add a pop-up form:
New AlertDialog. builder (this ). setTitle ("data loading failed "). setMessage ("Check network connection "). setPositiveButton ("OK", new DialogInterface. onClickListener () {public void onClick (DialogInterface dialoginterface, int I ){}}). show ();
Cause and solution:
// The UI cannot be operated in the thread
Java. lang. RuntimeException: Can't create handler inside thread that has not called logoff. prepare ()
After modification:
New AlertDialog. builder (com. nantsing. infoquery. chuanbo_detail.this ). setTitle ("data loading failed "). setMessage ("Check network connection "). setPositiveButton ("OK", new DialogInterface. onClickListener () {public void onClick (DialogInterface dialoginterface, int I ){}
[Error message]
The constructor AlertDialog. Builder (chuanbo_detail.HttpThread) is undefined
Cause and solution:
You cannot control the UI components beyond the main UI thread. Because you must use various methods to display various prompt messages after the new thread task is completed by sending a message notification task to the UI main thread.
There are multiple communication methods between threads. handler is often used to transmit messages.
As follows:
Construct a message in the thread:
// Construct the Message message = handle. obtainMessage (); Bundle B = new Bundle (); B. putString ("tag", "1"); message. setData (B); handle. sendMessage (message );
In addition, custom messages:
/*** Capture the Message Queue fubin. pan 2011-04-02 */Handler handler = new Handler () {public void handleMessage (Message m) {if (! M. getData (). getString ("tag "). equals ("1 ")){...} else {new AlertDialog. builder (chuanbo_detail.this ). setTitle ("data loading failed "). setMessage ("Check network connection status! "). SetPositiveButton (" OK ", new DialogInterface. OnClickListener () {public void onClick (DialogInterface dialoginterface, int I) {}}). show ();}}};
[Error message]
If an android earlier version Project (such as android 1.5) is placed in a later version environment (such as android 2.2), the preceding error may occur. The solution is as follows:
1. If you do not modify the android sdk version, use the project clean command to act on a project.
(This processing method is only compatible with lower-version projects in the high version and is not truly upgraded)
2. To modify the android sdk version, follow these steps:
1) modify the SDK
Select the project, build path --> configure build path ---> library to delete the referenced low-version SDK,
Add External JARs, select SDK of later version, OK, and save
2) modify the classpath File
This file may contain this item: <classpathentry kind = "lib" path = "Your specified High Version address"
Change her to <classpathentry kind = "con" path = "com. android. ide. eclipse. adt. ANDROID_FRAMEWORK"/>
3) Modify AndroidManifest. xml
In the AndroidManifest. xml file, add the <uses-sdk android: minSdkVersion = "3"> </uses-sdk>
4) Modify default. properties (important)
Target = android-3 in the last line of the file (not used in the previous step), and save it as target = android-8.
Let's take a look at your project and the new android 2.2 project structure.
[Error message]
When the Webservice is called during thread debug (running is normal:
'Jdi thread evaluations 'has encountered a problem
Exception processing async thread queue

Exception processing async thread queue
JDI thread evaluations

Cause and solution:
If the error is not related to running, turn off the 'expressions' view.
[Error message]
An error occurred while opening the JavaEye Android client of the open-source project.
Http://javaeye-android-client.googlecode.com/svn/trunk/
This is the client software of the JavaEye Website Based on the Android platform. It can be used to read static content, posts, chats, hide, RSS, and other functions.
[10:55:11-JavaEye Android Client] Project has no default. properties file! Edit the project properties to set one.
Cause and solution:
In this case, you can create a default. properties file. If an error persists after creation, delete the project and re-import it.
After you edit default. properties, the gen directory is generally automatically created. If no gen directory exists, you can also create it manually.
✿ Adroid Adapter ADB Interface severe error
Today, after configuring the Eclipse and Android SDK development environments, I want to use the Huawei C8500 mobile phone to connect to the computer via USB and debug it on the mobile phone. However, it is inexplicable that the installation of Adroid Adapter ADB Interface is seriously incorrect, this error also occurs when the mobile phone Genie of the pea pod installs the driver. It is also possible to install the driver several times in an inexplicable way. No reason is found yet.
[Error message]
The following error occurs during mobile phone debugging:
ActivityManager: Warning: Activity not started, its current task has been brought to the front
Cause and solution:
The app with the same name has been started on the phone. Close the app and try again!
[Error message]
Recently () when you open SDK Manager.exe and update the SDK, the following error occurs:

Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml,
Reason: Connection timed out: connect
Cause and solution:
Dl-ssl.google.com closed in Mainland China
The solution is to modifyC: \ Windows \ System32 \ drivers \ etc \ hostsFile. Add a row:
74.125.237.1 dl-ssl.google.com
Save and restart SDK Manager.exe
[Error message]
[17:42:24-JavaEye Android Client] --------------------------------
[17:42:24-JavaEye Android Client] Android Launch!
[17:42:24-JavaEye Android Client] The connection to adb is down, and a severe error has occured.
[17:42:24-JavaEye Android Client] You must restart adb and Eclipse.
[17:42:24-JavaEye Android Client] Please ensure that adb is correctly located at 'C: \ android-sdk-windows \ platform-tools \ adb.exe 'and can be executed.
Cause and solution:
Shut down all adb.exe.
Restart eclipse.
[Error message]
SDK update error message:
Site Authentication
Please login to the following ......

Cause and solution:
Cancel skip prompt
[Error message]
Run the Eclipse prompt to install ADT 17.

Cause and solution:
The latest Android SDK can only install ADT 17.0.0
Available: http://download.csdn.net/detail/merrido/4169460,
You can install the ADT 17.0.0.zip file in the conventional way. First, you must decompress the file and overwrite the folder in the Eclipse installation directory.
Then use Help-> install new software-> Add-> Name: ADT Archive: Select ADT 17.0.0.zip
[Error message]
When ADT 17.0.0 is installed, the following message is displayed:
Your original request has been modified.
"Android DDMS" is already installed, so an update will be performed med instead.
"Android Development Tools" is already installed, so an update will be performed med instead.
"Android Hierarchy Viewer" is already installed, so an update will be performed med instead.
"Android Traceview" is already installed, so an update will be performed med instead.
Cannot complete the install because one or more required items cocould not be found.
Software being installed: Android Development Tools 17.0.0.v201204251636-291853 (com. android. ide. eclipse. adt. feature. group 17.0.0.v201205111636-291853)
Missing requirement: Android Development Tools 17.0.0.v201204251636-291853 (com. android. ide. eclipse. adt. feature. group 17.0.0.v201204251636-291853) requires 'org. eclipse. core. runtime 3.6.0 'but it cocould not be found
Cause and solution:
[Error message]
When Updates ADT 17.0.0 is displayed:
Cannot complete the install because one or more required items cocould not be found.
Software being installed: Android Development Tools 17.0.0.v201204251636-291853 (com. android. ide. eclipse. adt. feature. group 17.0.0.v201205111636-291853)
Missing requirement: Android Development Tools 17.0.0.v201204251636-291853 (com. android. ide. eclipse. adt. feature. group 17.0.0.v201204251636-291853) requires 'org. eclipse. core. runtime 3.6.0 'but it cocould not be found
Cause and solution:
Requires 'org. eclipse. core. runtime 3.6.0 'but it cocould not be found
Requires 'org. eclipse. ui 3.6.0 'but it cocould not be found
Eclipse needs to be upgraded to 3.6.0. My version is 3.5.2.
[Error message]
[17:14:49-Info] ----------------------------------
[17:14:49-Info] Android Launch!
[17:14:49-Info] Connection with adb was interrupted.
[2012-04-09 17:14:49-Info] 0 attempts have been made to reconnect.
[17:14:49-Info] You may want to manually restart adb from the Devices view.
Cause and solution:
Restart eclipse
[Error message]
[09:45:49-adb] ADB server didn't ACK
[09:45:49-adb] * failed to start daemon *
Cause and solution:
Shut down all adb.exe.
Restart eclipse
[Error message]
[09:53:50-ApiDemos] ----------------------------------
[09:53:50-ApiDemos] Android Launch!
[09:53:50-ApiDemos] The connection to adb is down, and a severe error has occured.
[09:53:50-ApiDemos] You must restart adb and Eclipse.
[09:53:50-ApiDemos] Please ensure that adb is correctly located at 'C: \ android-sdk-windows \ platform-tools \ adb.exe 'and can be executed.
Cause and solution:
Restart eclipse
[Error message]
When installing android sdk:
-= Warning! =-A folder failed to be renamed or moved. on Windows this typically means that a program Is using that Folder (for example Windows Explorer or your anti-virus software .) please momentarily deactivate your anti-virus software. please also close any running programs that may be accessing the directory 'C: \ android-sdk-windows/too! S '. When ready, press YES to try again.

Cause and solution:
1. Copy the tools directory
Is a new directory named tools-copy. In this case, the android-sdk-windows directory contains two directories: tools and tools-copy.
2. run android. bat as an administrator in the tools-copy directory, so that you can update all normally.
3. Run the SDK Manager.exe again. Solve the problem!
[Error message]
"JavaEyeApiAccessor is being started.
Cannot connect to VM

Cause and solution:
Unable to connect to the mobile phone Virtual Machine
Restart plugging the phone connection line
[Error message]
Debugging:
[17:46:27-IpsosAutoAndroid] Failed to install IpsosAutoAndroid.apk on device '? ': Timeout
[17:46:27-IpsosAutoAndroid] Launch canceled!
Cause and solution:
When debugging a real machine, if the connection is too long and no response is returned, a timeout occurs.
1. Set the timeout time of ddms in window-prensent...-android. This is the most effective and concise.
2. delete the apk in android to ensure the speed. However, after a try, the real machine seems to be "smart" and there is also a timeout.
3. Cleaning the project (Project-> Clean). If it doesn't work, restart eclipse or android. It is depressing that it can be run for the first time after restart. The second time it starts to slow down, that is, the timeout occurs.
4. Close eclipse and restart it. OK.
[Error message]
When you call org. ksoap2. * to access webservice
04-13 10:09:49. 565: E/dalvikvm (354): cocould not find class 'org. ksoap2.serialization. soapobject', referenced from method ......
04-13 10:09:49. 585: E/dalvikvm (354): cocould not find class 'org. ksoap2.transport. HttpTransportSE ', referenced from method ......
[Error message]
Unable to open stack trace file '/data/anr/traces.txt': Permission denied
Cause and solution:
Unable to open stack trace file '/data/anr/traces.txt': Permission. This error is reported if you have not registered the Activity in AndroidManifest. xml.
[Error message]
Source not found
Source not found
Cause and solution:
The android directory does not contain the corresponding sources file.

For example, if you do not know why, the latest SDK update API 14/15 contains the Sources for Android SDK, and the source code of the previous version is not updated, angry!

Download the corresponding SDK Sources and put it in the \ android-sdk-windows \ sources directory!

[Error message]
When Android uses KSOAP2 to call WebService:
Java. lang. NoClassDefFoundError: org. ksoap2.serialization. SoapObject
Cause and solution:
Although the ksoap2-android package has been referenced in Java Build Path-> Libraries, but you need to select this package in order and export

[Error message]

Error: Error: No resource found that matches the given name (at 'yout _ toLeftOf 'with value' @ id/top_send_btn ').
Header_questionitemlist.xml/IpsosAutoAndroid/res/layout row 27th Android AAPT Problem
Cause and solution:
[Error message]
Failed to parse and import com. renren. api. connect. android. R
Cause and solution:
An error occurred while importing the android source code. The R. java file cannot be automatically generated.
[Error message]
In Eclipse, DDMS cannot open the content in the data folder or write into it.
Cause and solution:
Obtain ROOT permissions through software
[Error message]
Fri May 04 16:27:46 CST 2012
Internal error logged from JDI Debug:
Org. eclipse. jdi. TimeoutException: timeout occurs when the packet is waiting for 8.
At org. eclipse. jdi. internal. connect. packetemediemanager. getReply (packetemediemanager. java: 171)
At org. eclipse. jdi. internal. connect. packetemediemanager. getReply (packetemediemanager. java: 180)
......
Cause and solution:
Restart eclipse. If not, restart the machine.
[Error message]
Java. lang. RuntimeException: Can't create handler inside thread that has not called logoff. prepare ()
Cause and solution:
The following is the problematic code:

Thread t = new Thread () {@ Overridepublic void run () {super. run (); try {QuestionItemlist = quesHandler. getData (); if (QuestionItemlist. size () = 0) {Toast. makeText (questionitemlist2.this, "the questionnaire is empty", Toast. LENGTH_LONG ). show ();} else {Toast. makeText (questionitemlist2.this, "you have obtained the questionnaire", Toast. LENGTH_LONG ). show () ;}} catch (Exception e) {e. printStackTrace () ;}}; t. start (); [error message]

Java. lang. IllegalArgumentException: The key must be an application-specific resource id.

Cause and solution:
MRadioButton. setTag (1, sQuestionItem. get (I ). getToNext (); // set the listener ToNext: the next question: mRadioButton. setTag (2, sQuestionItem. get (I ). getToEnd (); // set the listener ToEnd: whether to stop throwing IllegalArgumentException because the key is not unique. The correct code is as follows:
MRadioButton. setTag (R. id. tag_tonext, sQuestionItem. get (I ). getToNext (); // set the listener ToNext: the next question: mRadioButton. setTag (R. id. tag_toend, sQuestionItem. get (I ). getToEnd (); // sets the listener ToEnd: whether to terminate
[Error message]
When you click Debug running result, the simulator will always pop up Waiting for Debugger, and then the program can run normally.
If you want to remove the Waiting for Debugger prompt during debugging
Cause and solution:
Restart and start the machine.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.