People who have worked on Android development should have encountered eclipse installation strange times. Anyway, I tried to throw bricks to smash the computer several times. The following are some common problems I encountered:
1: ADB server didn't ack failed to start daemon. This is the most common problem I have encountered,
[2012-08-31 10:40:37 - GPS] The connection to adb is down, and a severe error has occured.[2012-08-31 10:40:37 - GPS] You must restart adb and Eclipse.[2012-08-31 10:40:37 - GPS] Please ensure that adb is correctly located at 'D:\Program Files\Android\android-sdk\platform-tools\adb.exe' and can be executed.
There are a few suggestions on the Internet, such as shutting down adb.exe in the task manager, restarting eclipse, or restarting the computer, but I found there is a very likely way to solve the problem. Middleware, and wandoujia
_Helper.exe: Delete the two processes and restart eclipse.
2: Linux) ADB devices displays ??????????? No permission, Step 4:
<1> unplug the USB
<2> Su
<3> ADB kill-Server
<4> ADB start-Server
<5> plug in USB and ADB devices.
3: If the file is read-only when the android project is imported to eclipse, modify the permission of the file, re-open eclipse, and then import the file.
4: Installation Error: install_failed_missing_shared_library. The tablet I use is Lenovo's a2107. This occurs when I use the Google map API. It seems that Lenovo has simplified maps. Jar. The solution is as follows:
<1> export com. Google. Android. Maps. Jar (in system/framework) and ETC/permissions/platform. xml files with ddms
<2> import the downloaded com. Google. Android. Map. jar file to system/framework.
<3> Add <library name = "com. google. android. maps "file ="/system/framework/COM. google. android. maps. jar "/>, and then import the file to ETC/permissions/platform. XML, restart
5:
Installation Error: install_failed_insufficient_storage
Please check logcat output for more details.
Launch canceled!
Settings-> Applications-> mange
Applications-> select the application-> select "unistall ".
In this way, the APK can be completely deleted and re-installed.
6: the start time of the new intent in the activity in the first two days. Eclipse shows that it cannot be instantiated. Then, I set the activity I want to call to public.
7: The instance should be obtained under setcontentview. If it is placed above, a null pointer exception will be displayed.
Post: http://m.oschina.net/blog/75562