1. java.net. SocketException: Noroute to host
Just re-open the wifi.
2.
[Plain]
Failed to install xxx.apk on device '040398fe1701701f': Unable to open sync connection!
Java. io. IOException: Unable to open sync connection!
Launch canceled!
Enable usb debugging again.
3. [plain
Res \ values \ style. xml: 44: error: Error retrieving parent for item: No resource found that matches the given name 'android: WindowTitleBackground'
In Style. xml
[Html]
<Style name = "iWindowTitleBackground" parent = "android: WindowTitleBackground">
<Item name = "android: background"> @ drawable/title_bar </item>
</Style>
Change "android: WindowTitleBackground"> to "* android: WindowTitleBackground">.
Reference: http://topic.csdn.net/u/20110830/15/f12f7679-8857-4010-ac6e-88b8f52244e8.html
4. [java]
[11:57:49-Poc] Re-installation failed due to different application signatures.
[11:57:49-Poc] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[11:57:49-Poc] Please execute 'adb uninstall com. xue. test' in a shell.
[11:57:49-Poc] Launch canceled!
Delete this project on your phone.
5.
[Java]
13:59:31-29. 929: ERROR/AndroidRuntime (5594): Caused by: android. app. superNotCalledException: Activity {com. test. lthandmap/com. test. lthandmap. poisearch. poiInfoListActivity} did not call through to super. onResume ()
12-29 13:59:31. 929: ERROR/AndroidRuntime (5594): at android. app. Activity. Wait mresume (Activity. java: 3858)
12-29 13:59:31. 929: ERROR/AndroidRuntime (5594): at android. app. ActivityThread. Invoke mresumeactivity (ActivityThread. java: 2127)
12-29 13:59:31. 929: ERROR/AndroidRuntime (5594):... 12 more
After onResume () is rewritten, super. onResume () is deleted. This exception can be added.
6. Sometimes the mobile phone cannot be connected and the adb needs to be restarted.
7.
[Java]
Caused by: java. lang. ClassCastException: android. widget. LinearLayout $ LayoutParams
Recently, when code is used in android to dynamically change the height of a layout (component), an exception occurs in class conversion as shown in the question. I checked it online, as shown below:
These supply parameters to the parent of this view specifying how it shocould be arranged. there are using subclasses of ViewGroup. layoutParams, and these correspond to the different subclasses of ViewGroup that are responsible for arranging their children.
So basically, if you are adding a view to another, you MUST set the LayoutParams of the view to the LayoutParams type that the parent uses, or you will get a runtime error.
I understand it in this way. If you want to add a view to another layout, you must set the layout parameters of this View to the layout parameter type used by its parent class. That is, to dynamically change the height of a component in the Code, the layout parameter type should be the layout parameter type used by its parent class.
View has set LayoutParams, and its parent control also needs to be set
8. An exception is reported when three or more tabs are added to the TabHost.
[Java]
Caused by: java. lang. IllegalArgumentException: you must specify a way to create the tab content
At android. widget. TabHost. addTab (TabHost. java: 219)
According to the TabHost source code, we can see that mContentStrategy = null.
Original statement
[Java]
TabSpec ts1 = tabhost. newTabSpec (TAB1). setIndicator (TAB1 );
Ts1.setContent (new Intent (BottomMenu_ArrowTop.this, TestViewFlipper. class ));
Tabhost. addTab (ts1 );
[Java] view plaincopytabhost. addTab (tabhost. newTabSpec (TAB1)
. SetIndicator (TAB1)
. SetContent (new Intent (this, TestViewFlipper. class )));
9. jni method call error
[Java]
2-28 23:02:52. 218: ERROR/AndroidRuntime (27159): java. lang. UnsatisfiedLinkError: unimplementedStringFromJNI
There is no unimplementedStringFromJNI method in jni.
10. Custom Controls
[Html]
03-19 10:40:40. 905: ERROR/AndroidRuntime (12911): Caused by: android. view. InflateException: Binary XML file line #244: Error inflating class ScrollTextView
244 lines of xml file, caused by incorrect package name
11. resource not found
[Java]
04-13 11:06:00. 460: ERROR/AndroidRuntime (25002): android. content. res. Resources $ NotFoundException: String resource ID #0x1
At first, I thought it was strange that I couldn't do it after I cleaned it. Later I found that it was in textView. setText (position); It should be string, and the int written at that time
12. viewpager exception
Viewpager throws an exception after sdk upgrade
[Html]
E/AndroidRuntime (6997): Caused by: java. lang. ClassNotFoundException: android. support. v4.view. ViewPager in loader dalvik. system. PathClassLoader [/data/app/cn.cmcc.wer.apk]
Place the third-party package in libs under the project directory, right-click the libs package, set build path, select use as source folder, and then add the jar package to build path.
13. Unable to connect to the mobile phone
[Html]
ADB server didn't ACK
* Failed to start daemon *
Turn Off 360 and restart eclipse. If the problem persists, uninstall pods and restart eclipse.
14. The IllegalStateException is invalid.
[Java]
Java. lang. IllegalStateException The specified child already has a parent. You must call removeView () on the child's parent first.
Adding a View instance to two la s throws this exception. You can add a new view to the second layout.
15. Prevent proguard from confusing third-party jar packages
[Java]
-Keep public class package name .**{*;}