This message was deleted.
# android
s
This message was deleted.
🤦 3
😶 7
🧵 10
i
I didn’t use hilt, but looks like multidex exception or you just forget to annotate some guy from your happy hilt-family
For future reference, it’s courteous to post longer code snippets inside a thread instead of posting in the channel directly, to make the channel more scrollable.
in
name
you should use your
MyApp
class, nor the
androidx.multidex.MultiDexApplication
class
if i remember correctly one single dex can include only 65k methods. And only one dex generating on build, if your app is not multidex (you can see all you dex file by double click on built
.apk
file in AS).
So when you methods count greater than 65k and your app is not MultidexApp, then not all methods includes in build
And nor all classes too
i
Your error says:
Copy code
Caused by: androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate fragment com.example.News.view.fragments.HomeFragment: make sure class name exists
Check that you're using the right package name (the
News
looks non-standard and a bit suspicious IMO)