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

Crash app when launch BubbleActivity #120

Open
SEKI-YUTA opened this issue Jan 20, 2025 · 1 comment
Open

Crash app when launch BubbleActivity #120

SEKI-YUTA opened this issue Jan 20, 2025 · 1 comment

Comments

@SEKI-YUTA
Copy link

I tryed open BubbleActivity, but crashing app.

Error message is below

  java.lang.IllegalStateException: Given component holder class com.google.android.samples.socialite.BubbleActivity does not implement interface dagger.hilt.internal.GeneratedComponent or interface dagger.hilt.internal.GeneratedComponentManager

solution:

Add @AndroidEntryPoint annotation

@AndroidEntryPoint
class BubbleActivity : ComponentActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val chatId = intent.data?.lastPathSegment?.toLongOrNull()
        setContent {
            Bubble(chatId = chatId!!)
        }
    }
}
@l0ngse3
Copy link

l0ngse3 commented Feb 2, 2025

I also got this issue and resolved by your suggestion. Thanks

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

2 participants