2 levan wzy Levan_WZY 于 2016.03.23 14:31 提问

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

5个回答

Levan_WZY
Levan_WZY   2016.03.23 14:33

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)

Levan_WZY
Levan_WZY   2016.03.23 14:34

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

Levan_WZY
Levan_WZY   2016.03.23 14:35
 以上是全部的错误提示代码
fly7632785
fly7632785   2016.04.18 20:54

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

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

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

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

去使用21.1.1就行了

你试试

Levan_WZY
Levan_WZY 谢谢!!
大约 2 年之前 回复
Tong_Hou
Tong_Hou   2016.09.19 10:43

请问解决了吗?遇到一样的问题。已被困惑两天。求解...

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
Android Studio如何集成Genymotion和调试
如何集成安装: android studio关联genymotion模拟器 参考地址: http://jingyan.baidu.com/article/fc07f9897e8e0612ffe519a3.html 如何进行调试呢: 我的问题:我已经a. 安装了genymotion,b. 安装了genymotion shell,c. 安装了oracal VM V
使用Genymotion替代Android Studio开发调试
1、背景:使用Android Studio调试React Native程序时,动不动就占用2、3G的内存,即使我的机器是8G内存,也吃不消,其他的根本跑不了了, 因此想看看有没有能替换的模拟器,还真找到了,而且评价相当不错; 2、官网下载最新版本:https://www.genymotion.com/,需要注册,这个使用的时候会用到; 3、安装Genymotion,安装完成后如图所示:
android studio连接genymotion
之前用的是eclipse,现在转到android studio。真的花了几天的时间装android studio和genymotion,自己的电脑也出现问题。不过学到很多东西,也装上它,现在很可以很好运行了。 在网上有多文章讲到android studio连接genymotion需要用到sdk的了。现在我讲一些细节。 1.装genymotion,建议在官网上下载,要注册,第一要进去的时候它有
在android studio中使用genymotion模拟器
在android studio下安装genymotion 模拟器 ,弄了一个下午 终于搞好了,记录一下
Android Studio初次使用genymotion注意几点
至于怎么下载安装设置genymotion等等内容不在赘述,一搜一大把 初次使用genymotion注意以下几点: 1.genymotion Setting-ADB中设置Android SDK路径与Android Studio路径一致。 genymotion 默认不会设置的 2.Android Studio中设置好Genymotion 后激动的点击Genymo
Android Studio使用Genymotion
enymotion是一款号称速度最快性能最好的android模拟器,它基于Oracle VM VirtualBox。支持GPS、重力感应、光、温度等诸多传感器;支持OpenGL 3D加速;电池电量模拟;能够运行在windows、linux、mac系统下;并提供的有eclipse下的插件,可以支持在eclipse下进行应用开发测试。 需要注意的是Genymotion官方网站注册时,需要翻*墙否则会
genymotion模拟器结合Android studio使用
genymotion模拟器结合Android studio使用非常简单。 在设置之前,你可能需要先安装好它。 http://blog.csdn.net/pangrongxian/article/details/50418020 打开设置Setting,如下图:找到Plugiins选项。点击右边下方中间按钮Browse repositorice... 然后在Plugins下方的搜索框内输入genymotion点击搜索。
Android Studio连接Genymotion模拟器
一.打开Android Studio—preferences—Android SDN复制Android Studio的SDK目录:/Users/wondergirl/Library/Android/sdk 打开Genymotion进入settings,把刚才复制的内容粘贴进去.二.打开Android Studio—preferences—plugins 搜索genymotion,把它安装上.三.打
Android Studio安装配置Genymotion后无法调试APP的解决
遇到的问题:     按照网上的基于Android Studio安装Genymotion插件的教程我已经安好了Genymotion,插件的小图标也已经出现在Android Studio中,点击也能够启动Genymotion中对应创建的虚拟机,但是问题来了,首先是点击Android Studio的Run按钮,本身在Android Studio中创建的AVD都不显示了,去对应的路径下看,AVD其实都
Genymotion安装与使用、Android Studio安装Genymotion插件
Genymotion安装与使用、Android Studio安装Genymotion插件。Genymotion是一个Android模拟器,它包含了一整套与Android虚拟环境进行互动的传感器和功能。你可以使用Genymotion在你的开发、测试和演示中测试你的应用程序。