bytedance / bytedance/scene

No static field alertDialogTheme of type I in class Lcom/google/android/material/R$attr

Open
#76 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.5k
Forks
221
PR merge metrics
No merged PRs in 30d

Description

```
java.lang.NoSuchFieldError: No static field alertDialogTheme of type I in class Lcom/google/android/material/R$attr; or its superclasses (declaration of 'com.google.android.material.R$attr' appears in /data/app/~~i830b7Z4sg4BRuOY1i44Bg==/com.cfzx.project.test-GqidD7qJ4_cE_YuWrIg6ag==/base.apk!classes2.dex) at com.bytedance.scene.dialog.alert.AlertDialogScene.resolveDialogTheme(AlertDialogScene.java:116) at com.bytedance.scene.dialog.alert.AlertDialogScene$Builder.(AlertDialogScene.java:410) at com.cfzx.debug.demos.dialog.DialogTestScene.onCreateView$lambda$0$6(DialogTestScene.kt:58) at com.cfzx.debug.demos.dialog.DialogTestScene.$r8$lambda$uSRqvwKUn95xtOn6IReHwWv6aH8(Unknown Source:0) at com.cfzx.debug.demos.dialog.DialogTestScene$$ExternalSyntheticLambda9.invoke(D8$$SyntheticClass:0) at com.cfzx.library.debug.Debug_extKt.addButton$lambda$2$0(debug_ext.kt:39)
```
高版本material 1.13.0报错

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at AlertDialogScene.java:116, where resolveDialogTheme accesses the missing alertDialogTheme field, and trace the dialog construction from DialogTestScene.kt:58. Check how the project resolves the Material dependency at version 1.13.0; done means the dialog can be created without this NoSuchFieldError.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.