Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird Error With Dagger Hilt #4106

Closed
maq796113 opened this issue Oct 20, 2023 · 5 comments
Closed

Weird Error With Dagger Hilt #4106

maq796113 opened this issue Oct 20, 2023 · 5 comments

Comments

@maq796113
Copy link

image of the error

My mobile app crashes at bootup.

@devbenjoff
Copy link

In your AndroidManifest.xml file, don't forget to add "name" property.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <application
        //THIS LINE IS ESSENTIAL, AND SHOULD BE THE NAME OF YOUR HiltAndroidApp    Class
        android:name=".YourAppHiltApp"
        android:allowBackup="true"
        android:dataExtractionRules="@xml/data_extraction_rules"
        android:fullBackupContent="@xml/backup_rules"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.Todoie"
        tools:targetApi="31">
        <activity
            android:name=".MainActivity"
            android:exported="true"
            android:label="@string/app_name"
            android:theme="@style/Theme.Todoie">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

@maq796113
Copy link
Author

https://github.com/maq796113/AirBookingApp

My manifest file is properly maintained

@maq796113
Copy link
Author

image

@bcorso
Copy link

bcorso commented Oct 23, 2023

Hi @maq796113, you might want to move your question to StackOverflow until you find something more specific. In particular, there seems to be a lot of reasons you could be getting this error, but AFAIK there's nothing for us to do on our side. Some examples:

@bcorso
Copy link

bcorso commented Oct 31, 2023

Closing this for now. Feel free to comment back if you find something more specific to Hilt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants