Crash app when launch BubbleActivity
- Dominant language
- Kotlin
- Stars
- 721
- Forks
- 162
- PR merge metrics
- No merged PRs in 30d
Description
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!!)
}
}
}
```
Contributor guide
Research direction
Start by locating the BubbleActivity entry point and reviewing its lifecycle and Hilt integration. Reproduce the launch crash if possible, then verify that BubbleActivity is recognized by Hilt and opens without the reported IllegalStateException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100