按下,调高或调低应用程式时当机

时间:2018-08-24 06:10:27

标签: android android-appcompat

我正在尝试更新我的Android应用程序之一,我最近下载并安装了android studiogitgenymotion以进行更改。

但是我收到此错误:

在类Landroid / support / v4 / view / ViewCompat中没有静态方法dispatchUnhandledKeyEventPre(Landroid / view / View; Landroid / view / KeyEvent;)Z;

从未有过

完整Logcat:

Exception in MessageQueue callback: handleReceiveCallback
java.lang.NoSuchMethodError: No static method dispatchUnhandledKeyEventPre(Landroid/view/View;Landroid/view/KeyEvent;)Z in class Landroid/support/v4/view/ViewCompat; or its super classes (declaration of 'android.support.v4.view.ViewCompat' appears in /data/app/com.zimbronapps.barajaloteria-1/split_lib_dependencies_apk.apk)
    at android.support.v7.app.AppCompatDelegateImpl.dispatchKeyEvent(AppCompatDelegateImpl.java:1162)
    at android.support.v7.app.AppCompatDelegateImpl$AppCompatWindowCallback.dispatchKeyEvent(AppCompatDelegateImpl.java:2529)
    at com.android.internal.policy.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:2310)
    at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4127)
    at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4089)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3642)
    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3695)
    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3661)
    at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3787)
    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3669)
    at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3844)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3642)
    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3695)
    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3661)
    at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3669)
    at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3642)
    at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3695)
    at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3661)
    at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3820)
    at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:3981)
    at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2253)
    at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1874)
    at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1865)
    at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:2230)
    at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)
    at android.os.MessageQueue.nativePollOnce(Native Method)
    at android.os.MessageQueue.next(MessageQueue.java:323)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5417)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

1 个答案:

答案 0 :(得分:0)

将您的androidx和google依赖版本更改为1.0.0-alpha3。

引自Here