Thursday, April 28, 2022

[FIXED] How to remove this naming activity warning from manifest?

Issue

It warns to use "$" instead of "." but when I am using "." it turns into error.

            <activity android:name=".Activity.SettingsActivity" />
            <activity android:name=".Activity.EnterPinActivity">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />

                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
            <activity android:name=".Activity.MainActivity" />
            <activity android:name=".Activity.FirstPinActivity" />```

Solution

Rename the package with small letter. Package name should not be Capital letters

activity instead of Activity

then it should be like this

<activity android:name=".activity.SettingsActivity" />

rename like this all packages. Class name should be capital its not problem.



Answered By - sasikumar
Answer Checked By - Pedro (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.