重新开一下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.- res\values\style.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>
参照:http://topic.csdn.net/u/20110830/15/f12f7679-8857-4010-ac6e-88b8f52244e8.html
4.
- [2010-03-23 11:57:49 - Poc]Re-installation failed due to different application signatures.
- [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): 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.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.
- Caused by: java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams
These supply parameters to the parent of this view specifying how it should be arranged. There are many 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.
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)
原来的写法
- TabSpec ts1 = tabhost.newTabSpec(TAB1).setIndicator(TAB1);
- ts1.setContent(new Intent(BottomMenu_ArrowTop.this, TestViewFlipper.class));
- tabhost.addTab(ts1);
- tabhost.addTab(tabhost.newTabSpec(TAB1)
- .setIndicator(TAB1)
- .setContent(new Intent(this,TestViewFlipper.class)));
9.jni 方法调用错误
- 02-28 23:02:52.218: ERROR/AndroidRuntime(27159): java.lang.UnsatisfiedLinkError: unimplementedStringFromJNI
转载自: http://blog.csdn.net/ethan_xue/article/details/7069048