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,
- Check Internet Connection WIFI 4G is active on Android Programmatically
- Android Emulator cannot be opened because the developer cannot be verified. [M1 Mac]
- How to Change Android Toast Position?
- Fail to connect to camera service Android java RuntimeException
- How to create Custom RatingBar Android Programming Tutorial
- Fixing Android unknown error 961 while downloading app
- Android AlertDialog with Yes No and Cancel Button
- Share or Send SMS via Android Intent
- The Android Virtual Device myEmulator is currently running an emulator and cannot be deleted.
- Pass data between two Android Activities and access it using Intent
- SQLite with Android Easy to Understand Tutorial that covers Select, Insert, Update and Delete
- [FIX] AndroidRuntime: FATAL EXCEPTION: main - java.lang.RuntimeException NullPointerException
- Android EditText Cursor Colour appears to be white
- Android Development - How to switch between two Activities
- Android xml error Attribute is missing the Android namespace prefix [Solution]
- Android : Remove ListView Separator/divider programmatically or using xml property
- Android is starting optimizing... app 1 of 1
- java.lang.NoClassDefFoundError android.support.v4.content.LocalBroadcastManager
- AlertDialog with single button example : Android
- Android : Exception raised during rendering: action_bar API 22
- Maven : java.lang.ClassNotFoundException: Xmx512m
- Android Lint app_name is not translated in af (Afrikaans) am (Amharic) ar (Arabic) bg (Bulgarian)
- Center align text in TextView Android Programming
- How to Download and Install Android adb Tool on Linux, Mac or Windows
- Multiline EditText in Android Example
More Posts:
- [Solution] Java JDBC SQLException: No value specified for parameter 1 - Java
- Powershell Comments Examples - Powershell
- How to write hello world different languages syntax - HowTos
- How to Install Python Modules in VS Code - Python
- What does has notifications silenced in Messages App mean in iPhone - iOS
- How to know the version of Teams installed - Teams
- Get the Current Working Directory using Java Code - Java
- Get the Complete Sha256 Container ID for Docker Run Command - Docker