1. java.net.SocketException:Noroute to host
重新开一下wifi就可以了
2.
Failed to install xxx.apk on device '040398FE1701701F': Unable to open sync connection!
java.io.IOException: Unable to open sync connection!
Launch canceled!
重新打开usb调试就可以了
3.[resvaluesstyle.xml:44:error: Error retrieving parent for item: No resource found that matches the given name 'android:WindowTitleBackground'
Style.xml里
<style name="iWindowTitleBackground"parent="android:WindowTitleBackground">
<item name="android:background">@drawable/title_bar</item>
</style>
将"android:WindowTitleBackground">改为"*android:WindowTitleBackground">就可以了.
加 * 可以引用更多的属性
参照:http://topic.csdn.net/u/20110830/15/f12f7679-8857-4010-ac6e-88b8f52244e8.html
4.
[2010-03-23 11:57:49 - Poc]You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2010-03-23 11:57:49 - Poc]Please execute 'adb uninstall com.xue.test' in a shell.
[2010-03-23 11:57:49 - Poc]Launch canceled!
删除手机中的这个工程即可
5.
12-29 13:59:31.929: ERROR/AndroidRuntime(5594): at android.app.Activity.performResume(Activity.java:3858)
12-29 13:59:31.929: ERROR/AndroidRuntime(5594): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2127)
12-29 13:59:31.929: ERROR/AndroidRuntime(5594): ... 12 more
重写onResume()后,super.onResume()删掉了所导致这个异常,加上就可以了.
6.
手机有时候连不上,需要重启adb
7.
These supply parameters tothe parent of this viewspecifying how it should be arranged. There are many subclasses ofViewGroup.LayoutParams, and these correspond to the differentsubclasses of ViewGroup that are responsible for arranging theirchildren.
So basically, if you are adding a view to another, you MUST set theLayoutParams of the view to the LayoutParams type that the parentuses, or you will get a runtime error.
view设置了 LayoutParams,他的父控件也需要设置数据类型转化异常
8.
TabHost添加3个及以上tab时报的异常
Caused by: java.lang.IllegalArgumentException: you must specify a way to create the tab content
at android.widget.TabHost.addTab(TabHost.java:219)
看TabHost源码可知mContentStrategy=null,所以改下写法
原来的写法
ts1.setContent(new Intent(BottomMenu_ArrowTop.this, TestViewFlipper.class));
tabhost.addTab(ts1);
改写后的写法
.setIndicator(TAB1)
.setContent(new Intent(this,TestViewFlipper.class)));
9.
jni 方法调用错误
在jni里没有unimplementedStringFromJNI方法
10.
自定义控件
xml文件的244行,包名错误导致的
11.resource not found
12.
viewpager的异常
因sdk升级后viewpager抛出异常
13.
连不上手机
* failed to start daemon *
关掉360,重启eclipse