Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity

Below mentioned appium error:

om.skopic.android.skopicapp/.com.skopic.android.skopicapp.LandingActivity"

error: Activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity
info: [debug] Stopping logcat capture
info: [debug] Logcat terminated with code null, signal SIGTERM
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“shutdown”}
info: [debug] [BOOTSTRAP] [debug] Got command of type SHUTDOWN
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“OK, shutting down”,“status”:0}
info: [debug] [BOOTSTRAP] [debug] Closed client connection
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] Sent shutdown command, waiting for UiAutomator to stop…
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
info: [debug] [UIAUTOMATOR STDOUT] Time: 4.65
info: [debug] [UIAUTOMATOR STDOUT] OK (1 test)
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
info: [debug] UiAutomator shut down normally
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity
info: [debug] Error: Activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity
at [object Object]. (C:\Program Files\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:1146:21)
at [object Object]. (C:\Program Files\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:180:9)
at ChildProcess.exithandler (child_process.js:742:7)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1016:16)
at Process.ChildProcess._handle.onexit (child_process.js:1088:5)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity)”,“origValue”:“Activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity”},“sessionId”:null}
info: ← POST /wd/hub/session 500 46393.804 ms - 346

below mentioned is eclipse error:

A new session could not be created. (Original error: Activity used to start app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 47.43 seconds

below mentioned is manifest apk
   v e r s i o n C o d e v e r s i o n N a m e
m i n S d k V e r s i o n  t a r g e t S d k V e r s i o n
a n y D e n s i t y  n a m e  r e q u i r e d g l E s V e r s i o n  p r o t e c t i o n L e v e l a l l o w B a c k u p  i c o n  l a b e l l a r g e H e a p  t h e m e
d e b u g g a b l e  v a l u e
l a u n c h M o d e n o H i s t o r y
c o n f i g C h a n g e s a u t h o r i t i e s  e x p o r t e d  w i n d o w S o f t I n p u t M o d e
p e r m i s s i o n  e x c l u d e F r o m R e c e n t s a e n a b l e d a a n d r o i d * h t t p : / / s c h e m a s . a n d r o i d . c o m / a p k / r e s / a n d r o i d a p a c k a g e  p l a t f o r m B u i l d V e r s i o n C o d e  p l a t f o r m B u i l d V e r s i o n N a m e  m a n i f e s t " c o m . s k o p i c . a n d r o i d . a l p h a . s k o p i c a p p  2 3 6 . 0 - 2 4 3 8 4 1 5  u s e s - s d k  s u p p o r t s - s c r e e n s u s e s - f e a t u r e  a n d r o i d . h a r d w a r e . c a m e r a  u s e s - p e r m i s s i o n $ a n d r o i d . p e r m i s s i o n . C H A N G E _ W I F I _ S T A T E $ a n d r o i d . p e r m i s s i o n . A C C E S S _ W I F I _ S T A T E ’ a n d r o i d . p e r m i s s i o n . A C C E S S _ N E T W O R K _ S T A T E e a n d r o i d . p e r m i s s i o n . I N T E R N E T a n d r o i d . p e r m i s s i o n . R E A D _ C O N T A C T S ) a n d r o i d . p e r m i s s i o n . W R I T E _ E X T E R N A L _ S T O R A G E : c o m . g o o g l e . a n d r o i d . p r o v i d e r s . g s f . p e r m i s s i o n . R E A D _ G S E R V I C E S ’ a n d r o i d . p e r m i s s i o n . A C C E S S _ F I N E _ L O C A T I O N ) a n d r o i d . p e r m i s s i o n . A C C E S S _ C O A R S E _ L O C A T I O N  a n d r o i d . p e r m i s s i o n . C A M E R A ( a n d r o i d . p e r m i s s i o n . R E A D _ E X T E R N A L _ S T O R A G E # a n d r o i d . p e r m i s s i o n . R E A D _ P H O N E _ S T A T E  a n d r o i d . p e r m i s s i o n . G E T _ A C C O U N T S  a n d r o i d . p e r m i s s i o n . W A K E _ L O C K * c o m . g o o g l e . a n d r o i d . c 2 d m . p e r m i s s i o n . R E C E I V E & c o m . e x a m p l e . g c m . p e r m i s s i o n . C 2 D _ M E S S A G E 3 c o m . s k o p i c . a n d r o i d . s k o p i c a p p . p e r m i s s i o n . C 2 D _ M E S S A G E a p p l i c a t i o n m e t a - d a t a  c o m . g o o g l e . a n d r o i d . g m s . v e r s i o n  c o m . g o o g l e . a n d r o i d . g e o . A P I _ K E Y ’ A I z a S y C C 6 6 U t E Q M c o S T J U Q Q z n e 1 6 i 0 0 a h o n O J 3 w  a c t i v i t y , c o m . s k o p i c . a n d r o i d . s k o p i c a p p . L a n d i n g A c t i v i t y
i n t e n t - f i l t e r  a c t i o n  a n d r o i d . i n t e n t . a c t i o n . M A I N  c a t e g o r y a n d r o i d . i n t e n t . c a t e g o r y . L A U N C H E R 1 c o m . s k o p i c . a n d r o i d . s k o p i c a p p . S p l a s h S c r e e n A c t i v i t y . c o m . s k o p i c . a n d r o i d . s k o p i c a p p . M a p u r C o m m u n i t y M a p * c o m . s k o p i c . a n d r o i d . s k o p i c a p p . L o g i n A c t i v i t y  c o m . f a c e b o o k . F a c e b o o k A c t i v i t y  c o m . f a c e b o o k . s d k . A p p l i c a t i o n I d  p r o v i d e r $ c o m . f a c e b o o k . F a c e b o o k C o n t e n t P r o v i d e r c o m . f a c e b o o k . s d k . A p p l i c a t i o n N a m e ( c o m . s k o p i c . a n d r o i d . s k o p i c a p p . M a i n A c t i v t y 3 c o m . s k o p i c . a n d r o i d . s k o p i c a p p . C h a n g e D e f a u l t C o m m u n i t y + c o m . s k o p i c . a n d r o i d . s k o p i c a p p . S i g n u p A c t i v i t y 3 c o m . s k o p i c . a n d r o i d . s k o p i c a p p . S i g n u p R e q u e s t C o m m u n i t y , c o m . s k o p i c . a n d r o i d . s k o p i c a p p . P r i v a c y a n d T e r m s  r e c e i v e r 1 c o m . s k o p i c . a n d r o i d . s k o p i c a p p . G c m B r o a d c a s t R e c e i v e r ’ c o m . g o o g l e . a n d r o i d . c 2 d m . p e r m i s s i o n . S E N D & c o m . g o o g l e . a n d r o i d . c 2 d m . i n t e n t . R E C E I V E  c o m . s k o p i c . a n d r o i d . s k o p i c a p p a s e r v i c e - c o m . s k o p i c . a n d r o i d . s k o p i c a p p . G C M I n t e n t S e r v i c e 1 c o m . s k o p i c . a n d r o i d . s k o p i c a p p . C o m m u n i t y M a p A c t i v i t y % c o m . g o o g l e . a n d r o i d . g m s . a d s . A d A c t i v i t y 9 c o m . g o o g l e . a n d r o i d . g m s . a d s . p u r c h a s e . I n A p p P u r c h a s e A c t i v i t y 0 c o m . g o o g l e . a n d r o i d . g m s . a p p i n v i t e . P r e v i e w A c t i v i t y / c o m . g o o g l e . a n d r o i d . g m s . a p p i n v i t e . A C T I O N _ P R E V I E W  a n d r o i d . i n t e n t . c a t e g o r y . D E F A U L T A c o m . g o o g l e . a n d r o i d . g m s . a u t h . a p i . s i g n i n . i n t e r n a l . S i g n I n H u b A c t i v i t y = c o m . g o o g l e . a n d r o i d . g m s . a u t h . a p i . s i g n i n . R e v o c a t i o n B o u n d S e r v i c e I c o m . g o o g l e . a n d r o i d . g m s . a u t h . a p i . s i g n i n . p e r m i s s i o n . R E V O C A T I O N _ N O T I F I C A T I O N @ c o m . g o o g l e . a n d r o i d . g m s . m e a s u r e m e n t . A p p M e a s u r e m e n t C o n t e n t P r o v i d e r = c o m . s k o p i c . a n d r o i d . a l p h a . s k o p i c a p p . g o o g l e _ m e a s u r e m e n t _ s e r v i c e 9 c o m . g o o g l e . a n d r o i d . g m s . m e a s u r e m e n t . A p p M e a s u r e m e n t R e c e i v e r ) c o m . g o o g l e . a n d r o i d . g m s . m e a s u r e m e n t . U P L O A D 8 c o m . g o o g l e . a n d r o i d . g m s . m e a s u r e m e n t . A p p M e a s u r e m e n t S e r v i c e

Below given activity name which i used but not working please help me

com.skopic.android.skopicapp.LandingActivity

com.skopic.android.skopicapp.SplashScreenActivity

com.skopic.android.skopicapp.MainActivity

Other than above i tried to install manuallly and using cmd also byt still not working

can anyone help me please

Launch the AUT and run below cmd:

adb shell “dumpsys window windows | grep -E ‘mCurrentFocus’”

Pass on the package and activityName returned by this command.

3 Likes

@Mitesh_Agrawal
can u explain this command ?

adb shell “dumpsys window windows | grep -E ‘mCurrentFocus’”

using dumpsys utility what it tries to find ?

It returns the packageName and activityName of application which is currently launched on device

hey thank u all for ur rply i tried it its working… thank u soo much

hiii friends i m getting same error still i m not get output help me :confused:

had the same error. this comment fixed my problem. Didn’t realize i entered a small caps activity name.

Thanks!