DO N'T Use another <application>
tag in manifest file.Just do one change in existing <application>
tag , add this line android:name=".ApplicationName"
where, ApplicationName
will be name of your subclass(use to store global) that, you is about to create.
so, finally your ONE AND ONLY <application>
tag in manifest file should look like this :-
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat.NoActionBar"
android:name=".ApplicationName"
>