Skip to content

Instantly share code, notes, and snippets.

View wangbax's full-sized avatar
🌟
Focusing

wangbax wangbax

🌟
Focusing
View GitHub Profile
@wangbax
wangbax / device.dart
Last active October 2, 2023 15:00
Flutter generate a unique device identifier in windows platform.
import 'dart:convert';
import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:crypto/crypto.dart';
// Device Manager
class Device {
Device._privateConstructor();
@wangbax
wangbax / logcat1
Last active September 27, 2019 10:27
Caused by android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi-v4/update_info_top_arrow_gray.png from drawable resource ID #0x7f080449
at android.content.res.Resources.loadDrawableForCookie + 3034(Resources.java:3034)
at android.content.res.Resources.loadDrawable + 2858(Resources.java:2858)
at android.content.res.MiuiResources.loadDrawable + 387(MiuiResources.java:387)
at android.content.res.Resources.getDrawable + 937(Resources.java:937)
at android.content.res.Resources.getDrawable + 896(Resources.java:896)
at com.facebook.litho.ResourceResolver.resolveDrawableRes + 229(ResourceResolver.java:229)
at com.facebook.litho.widget.Image$Builder.drawableRes + 270(Image.java:270)
at com.update.comps.UpdateTabItemComponentSpec.OnCreateLayout + 156(UpdateTabItemComponentSpec.java:156)
at com.update.comps.UpdateTabItemComponent.onCreateLayout + 124(UpdateTabItemComponent.java:124)