VFY: unable to resolve static method 10876: Android

后端 未结 2 1581
天涯浪人
天涯浪人 2021-01-12 04:59

I used SmsCbMessage.java class in a my program. It was taken from http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.0.1_r1/android/telep

2条回答
  •  孤城傲影
    2021-01-12 05:32

    It is probable that Huawei has customized the SmsCbMessage class. What you can do is to use reflection to see what methods are available on that class and hope that one looks like the one you need. Try something like this:

    try {
        Class clazz = Class.forName("android.telephony.SmsCbMessage");
        Method[] methods = clazz.getDeclaredMethods();
        for (Method m : methods) {
            Log.v("XXX", "Method found: " + m);
        }
    } catch (Exception e) {
        Log.e("XXX", "Exception: " + e);
    }
    

提交回复
热议问题