I just created a new project in android studio. FRESH NEW PROJECT. No activities. Just one single java class named MyApplication. I have extended that class with 'Application' so it's a subclass of Application. Now I go to modify my manifest file to add
android:name=".MyApplication"
And of course, of course, the gradle gods are angered and send me this curse:
om.my_name.the_project_name.MyApplication' is not assignable to 'android.app.Application' less... (Ctrl+F1)
Please help me solve why I would get this error!
Full manifest code:
<?xml version="1.0" encoding="utf-8"?>
<!-- To auto-complete the email text field in the login form with the user's emails -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<application
android:name=".MyApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".LoginActivity"
android:label="@string/app_name"
android:windowSoftInputMode="adjustResize|stateVisible" >
</activity>
</application>