5

通过aidl 实现打电话功能 报错

错误信息

 04-02 11:42:52.816: E/AndroidRuntime(25387): FATAL EXCEPTION: main
04-02 11:42:52.816: E/AndroidRuntime(25387): Process: com.example.call, PID: 25387
04-02 11:42:52.816: E/AndroidRuntime(25387): java.lang.NoSuchMethodError: No interface method call(Ljava/lang/String;)V in class Lcom/android/internal/telephony/ITelephony; or its super classes (declaration of 'com.android.internal.telephony.ITelephony' appears in /system/framework/framework.jar:classes2.dex)
04-02 11:42:52.816: E/AndroidRuntime(25387):    at com.example.call.MainActivity.onCreate(MainActivity.java:37)
04-02 11:42:52.816: E/AndroidRuntime(25387):    at android.app.Activity.performCreate(Activity.java:6100)
04-02 11:42:52.816: E/AndroidRuntime(25387):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1112)
04-02 11:42:52.816: E/AndroidRuntime(25387):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2481)
04-02 11:42:52.816: E/AndroidRuntime(25387):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2614)
04-02 11:42:52.816: E/AndroidRuntime(25387):    at android.app.ActivityThread.access$800(ActivityThread.java:178)
04-02 11:42:52.816: E/AndroidRuntime(25387):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1470)
04-02 11:42:52.816: E/AndroidRuntime(25387):    at android.os.Handler.dispatchMessage(Handler.java:111)
04-02 11:42:52.816: E/AndroidRuntime(25387):    at android.os.Looper.loop(Looper.java:194)
04-02 11:42:52.816: E/AndroidRuntime(25387):    at android.app.ActivityThread.main(ActivityThread.java:5643)
04-02 11:42:52.816: E/AndroidRuntime(25387):    at java.lang.reflect.Method.invoke(Native Method)
04-02 11:42:52.816: E/AndroidRuntime(25387):    at java.lang.reflect.Method.invoke(Method.java:372)
04-02 11:42:52.816: E/AndroidRuntime(25387):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
04-02 11:42:52.816: E/AndroidRuntime(25387):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
查看全部
qq_22994781
傻狗123
2016/04/02 06:29
  • 实现打电话功能
  • 点赞
  • 收藏
  • 回答
    私信

3个回复