Open duowanSir opened 1 day ago
Code in my application:
` class MagpieCardDemoApplication : Application() {
override fun onCreate() {
super.onCreate()
subscribe(DebugEventLogger())
Fresco.initialize(this)
FrescoVito.initialize()
SoLoader.init(this, false)
if (FlipperUtils.shouldEnableFlipper(this)) {
val client = AndroidFlipperClient.getInstance(this)
val uiDebuggerContext = create(this)
enable(uiDebuggerContext)
client.addPlugin(UIDebuggerFlipperPlugin(uiDebuggerContext))
val descriptorMapping = DescriptorMapping.withDefaults()
LithoFlipperDescriptors.add(descriptorMapping)
client.addPlugin(InspectorFlipperPlugin(this, descriptorMapping))
client.addPlugin(SectionsFlipperPlugin(true))
client.start()
}
}
}`
Code in my activity: ` class MagpieCardDemoActivity : Activity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) val utf8RichText = "" val c = ComponentContext(this) setContentView(LithoView.create(this, Text.create(c).text("Hello World!").build()))
}
}`
It's almost the same like sample, so do I lost some other key condition?
I wrote a very simple demo based on the onboarding/HelloWorldActivity code in litho(v2024.10.07)/sample, but I can't see any components when using flipper inspect.
This is my demo flipper screenshot
This is official demo flipper screenshot
I don't know why this happens, I need help,thank you!!!