I'm facing the following error:
Error while executing: am start -n "com.package/com.package.SplashActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.package/.SplashActivity } Error type 3 Error: Activity class {com.package/com.package.SplashActivity} does not exist. Error while Launching activity
So what can I do to resolve this issue
Android Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.company.xyz">
<application
android:name="GoogleAnalyticsApp"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:theme="@style/MyMaterialTheme">
<activity
android:name=".SplashActivity"
android:screenOrientation="portrait">
<!-- For Pushwoosh we have to set following code: -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name=".MESSAGE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
</application>
</manifest>
I have added Manifest file also in that you can see what I need to change and I am using push for notification.
Thanks for the help in advance.
Edited : com.company.xyz packagename which is same in other build.gradle and manifest
I have checked both files are having same package name and the application is running in all device but when i try to run it on OREO it not launching activity.