要解决“Android: 错误无法找到符号 NotificationCompat.DecoratedMediaCustomViewStyle。”错误,您可以按照以下步骤进行操作:
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-media-compat:28.0.0'
确保这些库的版本号与您正在使用的最新版本匹配。
import android.support.v4.media.app.NotificationCompat;
这将确保您可以访问NotificationCompat类。
通过执行上述步骤,您应该能够解决“Android: 错误无法找到符号 NotificationCompat.DecoratedMediaCustomViewStyle。”错误并成功编译和运行您的应用程序。