android studio-Android Studio使用真机可以调试,但是使用Genymotion却提示以下错误

问题描述

Android Studio使用真机可以调试,但是使用Genymotion却提示以下错误

03-23 02:25:43.682 1726-1726/? D/dalvikvm: Late-enabling CheckJNI
03-23 02:25:44.182 1726-1726/com.example.chenxuanhe.myapplication W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
03-23 02:25:44.214 1726-1726/com.example.chenxuanhe.myapplication I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.view.WindowCallbackWrapper.onSearchRequested
03-23 02:25:44.214 1726-1726/com.example.chenxuanhe.myapplication W/dalvikvm: VFY: unable to resolve interface method 15025: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
03-23 02:25:44.218 1726-1726/com.example.chenxuanhe.myapplication D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
03-23 02:25:44.222 1726-1726/com.example.chenxuanhe.myapplication I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
03-23 02:25:44.226 1726-1726/com.example.chenxuanhe.myapplication W/dalvikvm: VFY: unable to resolve interface method 15029: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
03-23 02:25:44.230 1726-1726/com.example.chenxuanhe.myapplication D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
03-23 02:25:44.338 1726-1726/com.example.chenxuanhe.myapplication I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.widget.TintTypedArray.getChangingConfigurations
03-23 02:25:44.366 1726-1726/com.example.chenxuanhe.myapplication W/dalvikvm: VFY: unable to resolve virtual method 396: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
03-23 02:25:44.366 1726-1726/com.example.chenxuanhe.myapplication D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
03-23 02:25:44.374 1726-1726/com.example.chenxuanhe.myapplication I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.widget.TintTypedArray.getType
03-23 02:25:44.374 1726-1726/com.example.chenxuanhe.myapplication W/dalvikvm: VFY: unable to resolve virtual method 418: Landroid/content/res/TypedArray;.getType (I)I
03-23 02:25:44.378 1726-1726/com.example.chenxuanhe.myapplication D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002

解决方案

03-23 02:25:44.442 1726-1726/com.example.chenxuanhe.myapplication E/VdcInflateDelegate: Exception while inflating
org.xmlpull.v1.XmlPullParserException: Binary XML file line #17 tag requires viewportWidth > 0
at android.support.graphics.drawable.VectorDrawableCompat.updateStateFromTypedArray(VectorDrawableCompat.java:535)
at android.support.graphics.drawable.VectorDrawableCompat.inflate(VectorDrawableCompat.java:472)
at android.support.graphics.drawable.VectorDrawableCompat.createFromXmlInner(VectorDrawableCompat.java:436)
at android.support.v7.widget.AppCompatDrawableManager$VdcInflateDelegate.createFromXmlInner(AppCompatDrawableManager.java:829)
at android.support.v7.widget.AppCompatDrawableManager.loadDrawableFromDelegates(AppCompatDrawableManager.java:303)
at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:178)
at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:173)
at android.support.v7.widget.TintTypedArray.getDrawable(TintTypedArray.java:60)
at android.support.v7.widget.Toolbar.(Toolbar.java:254)
at android.support.v7.widget.Toolbar.(Toolbar.java:196)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createView(LayoutInflater.java:594)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:379)
at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:300)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:264)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)
at com.example.chenxuanhe.myapplication.MainActivity.onCreate(MainActivity.java:11)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)

解决方案二:

03-23 02:25:44.470 1726-1726/com.example.chenxuanhe.myapplication D/AndroidRuntime: Shutting down VM
03-23 02:25:44.478 1726-1726/com.example.chenxuanhe.myapplication W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xa4d29b20)
03-23 02:25:44.846 1726-1726/com.example.chenxuanhe.myapplication E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.chenxuanhe.myapplication, PID: 1726
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.chenxuanhe.myapplication/com.example.chenxuanhe.myapplication.MainActivity}: android.view.InflateException: Binary XML file line #36: Error inflating class android.support.v7.widget.Toolbar
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #36: Error inflating class android.support.v7.widget.Toolbar
at android.view.LayoutInflater.createView(LayoutInflater.java:620)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:379)
at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:300)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:264)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)
at com.example.chenxuanhe.myapplication.MainActivity.onCreate(MainActivity.java:11)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)?
at android.app.ActivityThread.access$800(ActivityThread.java:135)?
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)?
at android.os.Handler.dispatchMessage(Handler.java:102)?
at android.os.Looper.loop(Looper.java:136)?
at android.app.ActivityThread.main(ActivityThread.java:5001)?
at java.lang.reflect.Method.invokeNative(Native Method)?
at java.lang.reflect.Method.invoke(Method.java:515)?
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)?
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)?
at dalvik.system.NativeStart.main(Native Method)?
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at android.view.LayoutInflater.createView(LayoutInflater.java:594)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)?
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)?
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)?
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)?
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)?
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)?
at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:379)?
at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:300)?
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:264)?
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)?
at com.example.chenxuanhe.myapplication.MainActivity.onCreate(MainActivity.java:11)?
at android.app.Activity.performCreate(Activity.java:5231)?
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)?
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)?
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)?
at android.app.ActivityThread.access$800(ActivityThread.java:135)?
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)?
at android.os.Handler.dispatchMessage(Handler.java:102)?
at android.os.Looper.loop(Looper.java:136)?
at android.app.ActivityThread.main(ActivityThread.java:5001)?
at java.lang.reflect.Method.invokeNative(Native Method)?
at java.lang.reflect.Method.invoke(Method.java:515)?
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)?
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)?
at dalvik.system.NativeStart.main(Native Method)?
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/abc_ic_ab_back_material.xml from drawable resource ID #0x7f020016
at android.content.res.Resources.loadDrawable(Resources.java:2096)
at android.content.res.Resources.getDrawable(Resources.java:700)
at android.support.v7.widget.TintResources.superGetDrawable(TintResources.java:48)
at android.support.v7.widget.AppCompatDrawableManager.onDrawableLoadedFromResources(AppCompatDrawableManager.java:374)
at android.support.v7.widget.TintResources.getDrawable(TintResources.java:44)
at android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:323)
at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:180)
at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:173)
at android.support.v7.widget.TintTypedArray.getDrawable(TintTypedArray.java:60)
at android.support.v7.widget.Toolbar.(Toolbar.java:254)
at android.support.v7.widget.Toolbar.(Toolbar.java:196)
at java.lang.reflect.Constructor.constructNative(Native Method)?
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)?
at android.view.LayoutInflater.createView(LayoutInflater.java:594)?
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)?
at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)?
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)?
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)?
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)?
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)?
at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:379)?
at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:300)?
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:264)?
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)?
at com.example.chenxuanhe.myapplication.MainActivity.onCreate(MainActivity.java:11)?
at android.app.Activity.performCreate(Activity.java:5231)?
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)?
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)?
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)?
at android.app.ActivityThread.access$800(ActivityThread.java:135)?
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)?
at android.os.Handler.dispatchMessage(Handler.java:102)?
at android.os.Looper.loop(Looper.java:136)?
at android.app.ActivityThread.main(ActivityThread.java:5001)?
at java.lang.reflect.Method.invokeNative(Native Method)?
at java.lang.reflect.Method.invoke(Method.java:515)?
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)?
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)?
at dalvik.system.NativeStart.main(Native Method)?
Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #17: invalid drawable tag vector
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:933)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:877)
at android.content.res.Resources.loadDrawable(Resources
03-23 02:25:47.302 1726-1726/com.example.chenxuanhe.myapplication I/Process: Sending signal. PID: 1726 SIG: 9

解决方案三:

 以上是全部的错误提示代码

解决方案四:

!!!!!!!!!!!!!!!!!!!!!!!!!!!
首先 我现在很激动
因为我的问题跟你一模一样
我几乎找遍了百度的所有相关问题,
然后还是没有得到解决办法
然后又在stackoverflow上面找
终于发现了问题
至少是我的问题
不知道你的是不是一样的,

问题就出来 千万不要使用最新版本的东西
像 appcompatv7 、design gradle这种 千万不要赶时髦去用最新的
我们出现这种问题的就是 小白鼠

浪费了好多时间想说。。。。。

到目前为止 如果
他们都是 22.0.0版本了 这是最新的基本
不要是他

去使用21.1.1就行了

你试试

时间: 2024-10-26 05:47:41

android studio-Android Studio使用真机可以调试,但是使用Genymotion却提示以下错误的相关文章

android studio-Android studio想要连接真机进行调试

问题描述 Android studio想要连接真机进行调试 我连接了手机,设置成了usb调试,而且电脑上也有驱动程序,电脑也Android studio中的run设置成usb device了,但就是无法在真机上显示调试的界面.该如何做? 解决方案 点run的时候选对仪器了吗?真机上有没有app? 解决方案二: 点run之后没有这个窗口? 解决方案三: 点run之后没有这个窗口? 解决方案四: 点run之后就这样的报错 解决方案五: 直接打包然后通过邮箱发到手机上的 或者用AirDroid来传 ,

android乱码-android虚拟器不乱码真机测试乱码

问题描述 android虚拟器不乱码真机测试乱码 项目中有地图API ,侧滑菜单还有出柜布局,在真机上滑动几次之后就会出现乱码,在oppo,步步高,华为,小米测试 结果都是会发生乱码问题 解决方案 应该是你编码问题吧你那个侧菜单应该是在网上下载的例子然后直接复制到你的项目造成编码问题,你把编码调成GBK,或者UTF-8. 解决方案二: 乱码都是由于编码不一致而引起的,看看项目中是否引用了不同的编码.

android 真机sqlite3调试问题

问题描述 android 真机sqlite3调试问题 手机华为g621-tl00,系统EMUI3.0,Android版本4.4.4,没有自带sqlite3,按照网上的步骤下载4.4.2模拟器sqlite3到手机/system/xbin目录中,sqlite3版本3.7.11,可以运行,但是还是有问题.用root用户使用sqlite3命令,后面没有命令显示,但可以执行,而非root用户使用sqlite3命令有命令显示,请问这是什么原因.![图片说明](http://img.ask.csdn.net/

使用 Intel HAXM 为 Android 模拟器加速,媲美真机

转自:http://www.cnblogs.com/beginor/archive/2013/01/13/2858228.html 使用 Intel HAXM 为 Android 模拟器加速,媲美真机 Android 模拟器一直以运行速度慢著称, 本文介绍使用 Intel HAXM 技术为 Android 模拟器加速, 使模拟器运行度媲美真机, 彻底解决模拟器运行慢的问题. Intel HAXM (Hardware Accelerated Execution Manager) 使用基于 Inte

Android 实现真机远程调试并适应7寸屏大小

学 android 也有一段时间了,一直都是用 Android 提供的模拟器运行测试例子,也不知道做的东东在真机是啥效果.今天跟公司要了一个七寸屏的车载屏做真机测试.下面是我实现真机远程调试的步骤: 此方法同样适用于使用手机做真机测试   1.接入USB 选择"是",单击下一步 单击"下一步",去查找我们之前下载的SDK目录,找到usb_driver,如图: 点击"确定",等其为我们安装驱动 接着只要等其安装完成即可实现在Windows 下与真机

超薄Android智能 OPPO Find II真机曝光

几天前刚刚给大家 曝光了 OPPO Find II的效果图,相比网上疯传的图片来说,效果图显然要更靠谱儿一些.果不其然,事隔几日OPPO Find II的 真机图悄然曝光于网络,与之前的效果图几乎完全一致. OPPO Find II真机曝光从曝光的四种图片来看,我们能够确定的是OPPO Find II依然会继续使用Android智能操作系统,并且UI界面与OPPO Find一代相似度比较高.OPPO的logo位于机身正面左下角还是比较独特的设计,另外OPPO Find II会是一款非常薄的产品,

Android开发必备:秒杀真机超快模拟器Genymotion介绍_Android

第一,这货速度太快,第二,模仿真机环境,第三,秒杀任何Android模拟器包括真机,不多说上图,我忒忙! 官网: http://www.genymotion.com/ 镜像图片可以创建多个模拟器 关键是有一切Google的服务,在Google眼里就是一个真机 骚年不知道外界的Android,已经发生了翻天覆地的变化!

Android开发必备:秒杀真机超快模拟器Genymotion介绍

第一,这货速度太快,第二,模仿真机环境,第三,秒杀任何Android模拟器包括真机,不多说上图,我忒忙! 官网: http://www.genymotion.com/ 镜像图片可以创建多个模拟器 关键是有一切Google的服务,在Google眼里就是一个真机 骚年不知道外界的Android,已经发生了翻天覆地的变化!

【android】 android studio使用

1.下载 百度搜索,百度会直接给出下载链接. 2.配套工具 androidSDK.是一个压缩包,解压后得到目录xxx.在studio中设置sdk目录=此目录xxx即可.注意绝对路径中不能含有空格. 3.avd调试 avd,android virtual device,安卓虚拟设备. 3.1常见错误 avd启动时有时会报错,硬件加速器不能用等. 答:需要下载一个驱动程序,名字与路径是这样的:android-sdk-windows\extras\intel\Hardware_Accelerated_