I have seen that my Android IDE LogCat console keeps throwing the below-stated error message, sometimes when I try to run the app on Emulator (especially one that's running Android Lollipop version 5.1 API 22), the Uploading stage takes a bit of more time and thus Launch canceled! error, when I try again sometimes it works sometimes it doesn't,
[2015-05-19 18:39:32 - example] Android Launch!
[2015-05-19 18:39:32 - example] adb is running normally.
[2015-05-19 18:39:32 - example] Performing com.example.example.CreateQuizActivity activity launch
[2015-05-19 18:39:32 - example] Uploading Example.apk onto device 'emulator-5554'
[2015-05-19 18:39:41 - Quizziuq] Failed to install Example.apk on device 'emulator-5554': timeout
[2015-05-19 18:39:41 - example] Launch canceled!
To resolve this issue you gotta increase the Timeout time value set in for ADB. This can be done by,
- Go to Window -> Preferences (if you are using Windows OS) or Eclipse -> Preferences (if you are using Mac OS X) or Android Studio -> Preferences (if you are using Mac OS X)
- Now go to Android tab,
- Select DDMS under Android.
- You would see ADB connection time out (ms): 5000.
- Change the value from 5000 to say 15000 or more.
- Click on Apply.
- Click on OK.
- Now try running the App again on Emulator.
More Posts related to Android,
- Change Android Toast background color
- Maven : java.lang.ClassNotFoundException: Xmx512m
- This class should be public (android.support.v7.internal.widget.ActionBarView.HomeView) Lint Error
- Android Alert Dialog with Checkboxes example
- Android Error Generating Final Archive - Debug Certificate Expired
- How to add Newline to text in Android TextView
- Read Text file from SD Card : Android Programming
- [FIX] AndroidRuntime: FATAL EXCEPTION: main - java.lang.RuntimeException NullPointerException
- ActivityManager Warning: Activity not started, its current task has been brought to the front
- INSTALL_FAILED_INSUFFICIENT_STORAGE Android Error
- Android Developers Bluetooth Tutorial
- java.lang.ClassNotFoundException android.support.v7.widget.Toolbar [Fix]
- Android: Save Data in local Db using Android Room
- Channel 50 SMSes received every few minutes Android Phones
- 21 Useful Android Emulator Short-cut Keyboard Keys
- Changing Android Intent Tittle using java code
- Android : No Launcher activity found! Error
- How to change TextView or EditText Text Color on Focus and on Press
- How to display Toast on Button Click : Android
- Android : Execute some code after back button is pressed
- Stop android adb service from command prompt or terminal
- [Soluiton] You already have the latest version of Android Studio installed
- Create Custom Android AlertDialog
- Android R Cannot Be Resolved To A Variable
- How to make Android EditText not editable
More Posts:
- How to check if Java main thread is alive - Java
- ERROR x86 emulation currently requires hardware acceleration. Intel HAXM is not installed on this machine - Android
- This operation couldnt be completed. Unable to locate a Java Runtime. [macOS] - MacOS
- SDK Manager: failed to install : Android Studio on Windows - Android-Studio
- List of Programming Languages Supported by Notepad++ - NotepadPlusPlus
- How to force quit or kill Notepad++ Process - NotepadPlusPlus
- TypeError: must be str, not int - Python
- How to Refresh Mac Desktop - MacOS