Blog from: http://blog.csdn.net/liuxian13183 , reprint and indicate the source! All Rights Reserved !
Android error: Failed to install *.apk on device *: timeout
There are several common solutions to this problem
PS: Item 9 is most commonly used
1. Set the DDMS of ADB from 5000 to 10000
2. ADB kill server ADB start server
3. Replace a new data cable
4. Restart the mobile phone
5. Do not plug the mobile phone with USB3.0 socket
6. Uninstall the application and reload it with eclipse
7. Modify the connection port between USB and computer in eclipse preferences
8. Restart the computer
9、netstat -a -n -o |findstr “5037”
Enter the above command on the command line. In the windows task manager process, find PID 5037 but not adb.exe Yes, kill it. Common ones are tadb.exe , AndroidServer.exe Wait, and then restart eclipse
Or combine the above methods.
In addition, the solution is as follows:
You can configure the environment variables for the SDK at that time. Remember to configure both tools and platform tools!
The earlier problems of eclipse are mentioned above, but now we have switched to Android studio. Let’s talk about some problems about not installing eclipse
Time: August 9, 2017
Model: Hongmi 4x
Question: delete_ FAILED_ INTERNAL_ ERROR Error while Installing APKs
Solution process:
1. Check “install unknown source” in mobile phone settings security, the attempt is invalid
2. Find other applications enabled with port 5037, no
3. In the mobile developer settings, open “USB install”, the attempt is invalid
Solution:
1. In developer mode, turn off the “start MIUI optimization” – the reason may be that Xiaomi has intercepted the ADB installation command.
2. Shut down Android studio’s instantrun – the reason may be that Xiaomi doesn’t support the APK method of cutting instantrun
The ultimate solution.
1: Use the ADB command to connect the mobile phone and computer for development http://blog.csdn.net/xiabing082/article/details/54376461
Note: before using the ADB command, use the data cable to establish a connection between the computer and the mobile phone.
2: Using Android studio’s ADB WiFi plug-in, the mobile phone and the computer are in the same LAN. After connecting the computer for the first time, use the plug-in to connect the mobile phone, and select the option with IP (this is the virtual connection mode of the plug-in), so it has nothing to do with the local device. You can use it safely.
Read More:
- [Android test] solution for error closed after the carriage return of the ADB shell
- On the error report after the command of ADB shell error:device not A solution of found
- Item exception: failed to get the required ADT version number from the SDK
- Prompt “XXX is” when debugging real machine busy:Processing symbol Files “and” Xcode will continue when XXX is finished“
- Error reporting UI hierarchy using uiautomatorviewer
- Using Fiddler to capture mobile app
- Error: ADB prompts device unauthorized
- Nexus 5x unlock bootloader + root
- Error: Error parsing D:\new_android\Android SDK\system-images\android-25\android-wear\armeabi-v7a\de
- Uiautomatiorviewer connect to the machine and click to report unexpected error while observing UI hierarchy
- [screen recording] an error is reported in the screenrecord command: inaccessible or not found
- [Android] ImageView setting background image error: error inflating class ImageView
- Android ADB command adb devices error: protocol fault (no status)
- You must restart ADB and eclipse
- com.android.ddmlib . adbcommandrejectedexception: device offline error while installing APK solution
- <info> peer_manager_handler: Connection security failed
- Unexpected error while observing UI hierarchy
- Completely solve install_ FAILED_ UPDATE_ Incompatible installation error, the installation package is not consistent with the previous installation package signature on the device
- [Solved] adb shell error: no devices/emulators found
- How to use Android android:supportsRtl attribute