用Android Studio在真机上测试,程序直接闪退无法运行

05-1816:52:03.27827779-27779/com.example.acer.geoquizW/dalvikvm:VFY:unabletofindclass... 05-18 16:52:03.278 27779-27779/com.example.acer.geoquiz W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
05-18 16:52:03.278 27779-27779/com.example.acer.geoquiz I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.view.WindowCallbackWrapper.onSearchRequested
05-18 16:52:03.278 27779-27779/com.example.acer.geoquiz W/dalvikvm: VFY: unable to resolve interface method 19031: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
05-18 16:52:03.278 27779-27779/com.example.acer.geoquiz I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
05-18 16:52:03.278 27779-27779/com.example.acer.geoquiz W/dalvikvm: VFY: unable to resolve interface method 19035: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
05-18 16:52:03.328 27779-27779/com.example.acer.geoquiz I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.widget.TintTypedArray.getChangingConfigurations
05-18 16:52:03.328 27779-27779/com.example.acer.geoquiz W/dalvikvm: VFY: unable to resolve virtual method 512: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
05-18 16:52:03.328 27779-27779/com.example.acer.geoquiz I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.widget.TintTypedArray.getType
05-18 16:52:03.328 27779-27779/com.example.acer.geoquiz W/dalvikvm: VFY: unable to resolve virtual method 534: Landroid/content/res/TypedArray;.getType (I)I
05-18 16:52:03.348 27779-27779/com.example.acer.geoquiz I/dalvikvm: Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawable
05-18 16:52:03.348 27779-27779/com.example.acer.geoquiz W/dalvikvm: VFY: unable to resolve virtual method 475: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
05-18 16:52:03.348 27779-27779/com.example.acer.geoquiz I/dalvikvm: Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawableForDensity
05-18 16:52:03.348 27779-27779/com.example.acer.geoquiz W/dalvikvm: VFY: unable to resolve virtual method 477: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
05-18 16:52:03.398 27779-27779/com.example.acer.geoquiz W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41635c80)
05-18 16:52:03.418 27779-27779/? I/Process: Sending signal. PID: 27779 SIG: 9
以上是logcat
展开
 我来答
专业三维可视化三维重建软件开发
2016-05-18 · TA获得超过352个赞
知道小有建树答主
回答量:403
采纳率:87%
帮助的人:158万
展开全部

你的gradle 配置文件 build.gradle (Module app)打开加入图片上所指的库;

推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式