0

I dont know what is this error:

05/19 15:21:12: Launching 'app' on LGE (My phone).

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

Error while Launching activity

but ChatActivity does exist that named ChatActivity.java

enter image description here

parkss19
  • 1
  • 1

2 Answers2

0

Your activities need to be defined in the manifest file. The startup activity should be defined like this:

<activity android:name=".put your started activity name here"
      android:label="@string/app_name">
  <intent-filter>
      <action android:name="android.intent.action.MAIN" />
      <category android:name="android.intent.category.LAUNCHER" />
  </intent-filter>
</activity>
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203
0

This problem could be because of Refactoring, if you have done it.
It may be resolved like this:
Click on Files>Invalidate Caches/Restart
[1] Clean your project file.
[2] Delete your Build directory.
[3] Restart your IDE(Android Studio).
[4] Rebuild your project and Run it.

paul035
  • 327
  • 2
  • 8