android / android/socialite

Crash app when launch BubbleActivity

Open
#120 2 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.