简体   繁体   English

java.lang.IllegalStateException:必须将 Hilt 活动附加到找到的 @AndroidEntryPoint 应用程序:class dv.file.transh.app.FileExplorer

[英]java.lang.IllegalStateException: Hilt Activity must be attached to an @AndroidEntryPoint Application Found: class dv.file.transh.app.FileExplorer

The app crashes as soon as it gets installed and throws the weird error above该应用程序在安装后立即崩溃并抛出上面的奇怪错误

enter image description here在此处输入图像描述

and the logcat of the crash和崩溃的日志

enter image description here在此处输入图像描述

Did you declare your Application class in the manifest?您是否在清单中声明了您的申请 class?

   <application
        android:name=".HiltApplication"
        ....
   />

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Hilt Fragments 必须附加到 @AndroidEntryPoint Activity。 找到:class - Hilt Fragments must be attached to an @AndroidEntryPoint Activity. Found: class Hilt Fragments 必须附加到 @AndroidEntryPoint Activity。 找到:class androidx.fragment.app.testing.FragmentScenario$EmptyFragmentActivity - Hilt Fragments must be attached to an @AndroidEntryPoint Activity. Found: class androidx.fragment.app.testing.FragmentScenario$EmptyFragmentActivity java.lang.IllegalStateException片段未附加到活动 - java.lang.IllegalStateException Fragment not attached to Activity java.lang.IllegalStateException:片段未附加到活动 - java.lang.IllegalStateException: Fragment not attached to Activity java.lang.IllegalStateException:片段未附加到android中的Activity问题 - java.lang.IllegalStateException: Fragment not attached to Activity issue in android 无法启动活动ComponentInfo ... java.lang.IllegalStateException:已经附加 - Unable to start activity ComponentInfo…java.lang.IllegalStateException: Already attached java.lang.IllegalStateException:片段未附加到 Android 中的活动 - java.lang.IllegalStateException: Fragment not attached to Activity in Android java.lang.IllegalStateException:没有活动 - java.lang.IllegalStateException: No activity Java.lang.IllegalStateException:已经附加 - Java.lang.IllegalStateException: Already attached java.lang.IllegalStateException:片段未附加到上下文 - java.lang.IllegalStateException: Fragment not attached to a context
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM