Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Carey Brown
  • Frits Walraven

Error while Launching activity

Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I recently upgraded to 3.6.1.
I opened project which is developed in older version.
I migrated to AndroidX (Refractor--->migrate to Androidx).
When i try to test in my motog 6 mobile by connecting through USB i am getting the following error.

$ adb shell am start -n "" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while executing: am start -n "" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] }
Error type 3
Error: Activity class {} does not exist.

Error while Launching activity

I have tried option File-->Invalidate cache, Build--> Clean Project , Build-->Rebuild Project and deleted directory .gradle and .idle.
Uninstalled old app from mobile.
Restart the Android studio but it did not work.

contents of local.propoerties.

When i try to run in debug mode iam getting the same error.
Saloon Keeper
Posts: 6380
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What is the package name, with or without "android"? Is that consistent everywhere?
mohana krishna
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi  Tim Moores ,

Thanks for your help.
Changed applicationId to  ""  from """.
Then this issue is resolved.

There's a city wid manhunt for this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
    Bookmark Topic Watch Topic
  • New Topic