java - android fully_qualified_classname is not assignable to 'android.app.application' -
i created new project in android studio. fresh new project. no activities. 1 single java class named myapplication. have extended class 'application' it's subclass of application. go modify manifest file add
android:name=".myapplication"
and of course, of course, gradle gods angered , send me curse:
om.my_name.the_project_name.myapplication' not assignable 'android.app.application' less... (ctrl+f1)
please me solve why error!
full manifest code:
<?xml version="1.0" encoding="utf-8"?>
<!-- auto-complete email text field in login form 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>
well, finished writing question when decided try thing fix it. turns out in package android manifest wasn't picking up. advice either create entire new project , make sure you're creating packages off package puts it's first activity file in, or, try move files qualified package directory/whatever_the_hell_it_is. ultimately, make sure packages organized under first given one
Comments
Post a Comment