jjzjj

android - Dalvik VM 找不到多种方法

coder 2023-11-21 原文

我不明白由于哪些更改,我的应用程序显示了许多 dalvikVM 警告消息。即使该应用程序似乎运行良好,也可能存在一些潜在风险。 我已经回答了几个相关问题,但都没有帮助。我没有再修剪监视器输出,因为我不确定什么有用或无用。

I/SELinux: Function: selinux_android_load_priority [0], There is no sepolicy file.

I/SELinux: Function: selinux_android_load_priority [1], There is no sepolicy version file.

I/SELinux: Function: selinux_android_load_priority , priority version is VE=GOOGLE_POLICY


I/SELinux: selinux_android_seapp_context_reload: seapp_contexts file is loaded from /seapp_contexts
D/dalvikvm: Late-enabling CheckJNI
I/InstantRun: BootstrapApplication created. Android package is com.example.akash.chatapplication, real application class is null.
V/InstantRun: Cannot find external resources, not patching them in
I/InstantRun: Resource override is null
V/InstantRun: Cannot find dex classes, not patching them in
I/dalvikvm: Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.zze.zzi
W/dalvikvm: VFY: unable to resolve virtual method 957: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
D/dalvikvm: VFY: replacing opcode 0x6e at 0x000b
I/GMPM: App measurement is starting up, version: 8487
I/GMPM: To enable debug logging run: adb shell setprop log.tag.GMPM VERBOSE
I/InstantRun: Starting server socket listening for package com.example.akash.chatapplication on android.net.LocalSocketAddress@4224fb98
I/InstantRun: Started server for package com.example.akash.chatapplication
I/dalvikvm: Could not find method android.content.Context.getSystemService, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 692: Landroid/content/Context;.getSystemService (Ljava/lang/Class;)Ljava/lang/Object;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x004b
I/dalvikvm: Could not find method android.app.Activity.stopLockTask, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 299: Landroid/app/Activity;.stopLockTask ()V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x00b9
E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve check-cast 271 (Landroid/os/PersistableBundle;) in Lcom/example/akash/chatapplication/IPSetupActivity;
D/dalvikvm: VFY: replacing opcode 0x1f at 0x00f1
I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 673: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0101
I/dalvikvm: Could not find method android.app.Activity.onVisibleBehindCanceled, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 219: Landroid/app/Activity;.onVisibleBehindCanceled ()V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0111
I/dalvikvm: Could not find method android.app.Activity.onWindowStartingActionMode, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 223: Landroid/app/Activity;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0137
E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve check-cast 271 (Landroid/os/PersistableBundle;) in Lcom/example/akash/chatapplication/IPSetupActivity;
D/dalvikvm: VFY: replacing opcode 0x1f at 0x019a
E/dalvikvm: Could not find class 'android.media.session.MediaController', referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve check-cast 225 (Landroid/media/session/MediaController;) in Lcom/example/akash/chatapplication/IPSetupActivity;
D/dalvikvm: VFY: replacing opcode 0x1f at 0x01b2
E/dalvikvm: Could not find class 'android.widget.Toolbar', referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve check-cast 2425 (Landroid/widget/Toolbar;) in Lcom/example/akash/chatapplication/IPSetupActivity;
D/dalvikvm: VFY: replacing opcode 0x1f at 0x01bc
I/dalvikvm: Could not find method android.app.Activity.releaseInstance, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 230: Landroid/app/Activity;.releaseInstance ()Z
D/dalvikvm: VFY: replacing opcode 0x6f at 0x02dd
I/dalvikvm: Could not find method android.app.Activity.onActivityReenter, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 146: Landroid/app/Activity;.onActivityReenter (ILandroid/content/Intent;)V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x02f4
I/dalvikvm: Could not find method android.content.ContextWrapper.getCodeCacheDir, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 748: Landroid/content/ContextWrapper;.getCodeCacheDir ()Ljava/io/File;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0349
I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v4/app/FragmentActivity;.dispatchFragmentsOnCreateView (Landroid/view/View;Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View; from Lcom/example/akash/chatapplication/IPSetupActivity;)
I/dalvikvm: Could not find method android.support.v4.app.FragmentActivity.dispatchFragmentsOnCreateView, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 4642: Landroid/support/v4/app/FragmentActivity;.dispatchFragmentsOnCreateView (Landroid/view/View;Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0432
I/dalvikvm: Could not find method android.app.Activity.getVoiceInteractor, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 125: Landroid/app/Activity;.getVoiceInteractor ()Landroid/app/VoiceInteractor;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0490
E/dalvikvm: Could not find class 'android.app.ActivityManager$TaskDescription', referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve check-cast 28 (Landroid/app/ActivityManager$TaskDescription;) in Lcom/example/akash/chatapplication/IPSetupActivity;
D/dalvikvm: VFY: replacing opcode 0x1f at 0x055b
I/dalvikvm: Could not find method android.app.Activity.startActionMode, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 274: Landroid/app/Activity;.startActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0596
I/dalvikvm: Could not find method android.app.Activity.showAssist, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 269: Landroid/app/Activity;.showAssist (Landroid/os/Bundle;)Z
D/dalvikvm: VFY: replacing opcode 0x6f at 0x05d8
I/dalvikvm: Could not find method android.app.Activity.postponeEnterTransition, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 227: Landroid/app/Activity;.postponeEnterTransition ()V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x05e3
I/dalvikvm: Could not find method android.content.ContextWrapper.getNoBackupFilesDir, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 760: Landroid/content/ContextWrapper;.getNoBackupFilesDir ()Ljava/io/File;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0672
I/dalvikvm: Could not find method android.app.Activity.requestPermissions, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 233: Landroid/app/Activity;.requestPermissions ([Ljava/lang/String;I)V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0787
E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve check-cast 64 (Landroid/app/SharedElementCallback;) in Lcom/example/akash/chatapplication/IPSetupActivity;
D/dalvikvm: VFY: replacing opcode 0x1f at 0x07a1
E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve check-cast 271 (Landroid/os/PersistableBundle;) in Lcom/example/akash/chatapplication/IPSetupActivity;
D/dalvikvm: VFY: replacing opcode 0x1f at 0x07e8
W/dalvikvm: DexOpt: resolve class illegal access: Lcom/example/akash/chatapplication/IPSetupActivity; -> Landroid/support/v4/app/BaseFragmentActivityDonut;
I/dalvikvm: Could not find method android.support.v4.app.BaseFragmentActivityDonut.onCreateView, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 4418: Landroid/support/v4/app/BaseFragmentActivityDonut;.onCreateView (Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x082c
I/dalvikvm: Could not find method android.app.Activity.setContentTransitionManager, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 238: Landroid/app/Activity;.setContentTransitionManager (Landroid/transition/TransitionManager;)V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0940
I/dalvikvm: Could not find method android.app.Activity.onProvideReferrer, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 199: Landroid/app/Activity;.onProvideReferrer ()Landroid/net/Uri;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x097e
I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v4/app/FragmentActivity;.doReallyStop (Z)V from Lcom/example/akash/chatapplication/IPSetupActivity;)
I/dalvikvm: Could not find method android.support.v4.app.FragmentActivity.doReallyStop, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 4644: Landroid/support/v4/app/FragmentActivity;.doReallyStop (Z)V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x09ab
I/dalvikvm: Could not find method android.content.Context.getDrawable, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 676: Landroid/content/Context;.getDrawable (I)Landroid/graphics/drawable/Drawable;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x09f5
I/dalvikvm: Could not find method android.app.Activity.showLockTaskEscapeMessage, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 272: Landroid/app/Activity;.showLockTaskEscapeMessage ()V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0a05
I/dalvikvm: Could not find method android.app.Activity.getContentTransitionManager, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 100: Landroid/app/Activity;.getContentTransitionManager ()Landroid/transition/TransitionManager;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0a0b
E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve check-cast 64 (Landroid/app/SharedElementCallback;) in Lcom/example/akash/chatapplication/IPSetupActivity;
D/dalvikvm: VFY: replacing opcode 0x1f at 0x0ac7
I/dalvikvm: Could not find method android.app.Activity.getReferrer, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 115: Landroid/app/Activity;.getReferrer ()Landroid/net/Uri;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0b3b
I/dalvikvm: Could not find method android.content.ContextWrapper.getSystemServiceName, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 770: Landroid/content/ContextWrapper;.getSystemServiceName (Ljava/lang/Class;)Ljava/lang/String;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0bb8
I/dalvikvm: Could not find method android.app.Activity.isVoiceInteractionRoot, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 138: Landroid/app/Activity;.isVoiceInteractionRoot ()Z
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0be0
I/dalvikvm: Could not find method android.content.ContextWrapper.getExternalMediaDirs, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 756: Landroid/content/ContextWrapper;.getExternalMediaDirs ()[Ljava/io/File;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0c68
I/dalvikvm: Could not find method android.app.Activity.getMediaController, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 108: Landroid/app/Activity;.getMediaController ()Landroid/media/session/MediaController;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0cac
I/dalvikvm: Could not find method android.app.Activity.getSearchEvent, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 118: Landroid/app/Activity;.getSearchEvent ()Landroid/view/SearchEvent;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0d2b
I/dalvikvm: DexOpt: illegal method access (call Landroid/support/v4/app/FragmentActivity;.onReallyStop ()V from Lcom/example/akash/chatapplication/IPSetupActivity;)
I/dalvikvm: Could not find method android.support.v4.app.FragmentActivity.onReallyStop, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 4680: Landroid/support/v4/app/FragmentActivity;.onReallyStop ()V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0d6b
I/dalvikvm: Could not find method android.app.Activity.isVoiceInteraction, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 137: Landroid/app/Activity;.isVoiceInteraction ()Z
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0ddb
I/dalvikvm: Could not find method android.app.Activity.requestVisibleBehind, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 234: Landroid/app/Activity;.requestVisibleBehind (Z)Z
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0e40
I/dalvikvm: Could not find method android.app.Activity.shouldShowRequestPermissionRationale, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 267: Landroid/app/Activity;.shouldShowRequestPermissionRationale (Ljava/lang/String;)Z
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0e55
I/dalvikvm: Could not find method android.app.Activity.finishAndRemoveTask, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 90: Landroid/app/Activity;.finishAndRemoveTask ()V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0e92
I/dalvikvm: Could not find method android.content.Context.getColor, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 672: Landroid/content/Context;.getColor (I)I
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0ee9
E/dalvikvm: Could not find class 'android.app.assist.AssistContent', referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve check-cast 68 (Landroid/app/assist/AssistContent;) in Lcom/example/akash/chatapplication/IPSetupActivity;
D/dalvikvm: VFY: replacing opcode 0x1f at 0x0f5b
I/dalvikvm: Could not find method android.app.Activity.finishAfterTransition, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 89: Landroid/app/Activity;.finishAfterTransition ()V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0f7f
I/dalvikvm: Could not find method android.app.Activity.getContentScene, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 99: Landroid/app/Activity;.getContentScene ()Landroid/transition/Scene;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0f85
E/dalvikvm: Could not find class 'android.view.SearchEvent', referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve check-cast 2297 (Landroid/view/SearchEvent;) in Lcom/example/akash/chatapplication/IPSetupActivity;
D/dalvikvm: VFY: replacing opcode 0x1f at 0x10d2
W/dalvikvm: DexOpt: resolve class illegal access: Lcom/example/akash/chatapplication/IPSetupActivity; -> Landroid/support/v4/app/BaseFragmentActivityHoneycomb;
I/dalvikvm: Could not find method android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 4425: Landroid/support/v4/app/BaseFragmentActivityHoneycomb;.onCreateView (Landroid/view/View;Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;)Landroid/view/View;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x10fd
I/dalvikvm: Could not find method android.app.Activity.startLockTask, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 293: Landroid/app/Activity;.startLockTask ()V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x11b2
I/dalvikvm: Could not find method android.content.ContextWrapper.checkSelfPermission, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 724: Landroid/content/ContextWrapper;.checkSelfPermission (Ljava/lang/String;)I
D/dalvikvm: VFY: replacing opcode 0x6f at 0x1225
E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve check-cast 271 (Landroid/os/PersistableBundle;) in Lcom/example/akash/chatapplication/IPSetupActivity;
D/dalvikvm: VFY: replacing opcode 0x1f at 0x1329
I/dalvikvm: Could not find method android.app.Activity.startPostponedEnterTransition, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 297: Landroid/app/Activity;.startPostponedEnterTransition ()V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x1356
I/dalvikvm: Could not find method android.app.Activity.onEnterAnimationComplete, referenced from method com.example.akash.chatapplication.IPSetupActivity.access$super
W/dalvikvm: VFY: unable to resolve virtual method 172: Landroid/app/Activity;.onEnterAnimationComplete ()V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x140b
I/dalvikvm: Could not find method android.view.Window$Callback.onProvideKeyboardShortcuts, referenced from method android.support.v7.view.WindowCallbackWrapper.onProvideKeyboardShortcuts
W/dalvikvm: VFY: unable to resolve interface method 20203: Landroid/view/Window$Callback;.onProvideKeyboardShortcuts (Ljava/util/List;Landroid/view/Menu;)V
D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.view.WindowCallbackWrapper.onSearchRequested
W/dalvikvm: VFY: unable to resolve interface method 20205: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
W/dalvikvm: VFY: unable to resolve interface method 20209: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.widget.TintTypedArray.getChangingConfigurations
W/dalvikvm: VFY: unable to resolve virtual method 1021: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.widget.TintTypedArray.getType
W/dalvikvm: VFY: unable to resolve virtual method 1043: Landroid/content/res/TypedArray;.getType (I)I
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0008
I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method android.support.v7.widget.ColorStateListUtils.getColorStateList
W/dalvikvm: VFY: unable to resolve virtual method 673: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
D/libEGL: loaded /system/lib/egl/libEGL_mali.so
D/libEGL: loaded /system/lib/egl/libGLESv1_CM_mali.so
D/libEGL: loaded /system/lib/egl/libGLESv2_mali.so

          [ 04-26 04:39:40.178 30063:30063 E/         ]
          Device driver API match
          Device driver API version: 23
          User space API version: 23 


          [ 04-26 04:39:40.178 30063:30063 E/         ]
          mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Fri Mar 21 13:52:50 KST 2014 
D/OpenGLRenderer: Enabling debug mode 0
W/IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper: getCursorCapsMode on inactive InputConnection
W/IInputConnectionWrapper: getCursorCapsMode on inactive InputConnection
W/IInputConnectionWrapper: getSelectedText on inactive InputConnection
W/IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper: getTextAfterCursor on inactive InputConnection

我的应用似乎有很多问题,我期待花时间解决这些问题。由于这些问题似乎与依赖关系有关,这里是可能需要研究的代码:

模块应用的build.gradle:

apply plugin: 'com.android.application'
android {
    compileSdkVersion 23
    buildToolsVersion '23.0.2'

    defaultConfig {
        applicationId "com.example.akash.chatapplication"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile files('libs/com.github.ozodrukh/CircularReveal/1.1.1/jars/classes.jar')
    compile 'com.android.support:appcompat-v7:23.3.0'
    compile 'com.android.support:design:23.3.0'
    compile 'com.github.nkzawa:socket.io-client:0.3.0'
    compile 'com.google.android.gms:play-services-gcm:8.4.0'
}
apply plugin: 'com.google.gms.google-services'

这是我项目的 build.gradle:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.0-alpha5'
        classpath 'com.google.gms:google-services:2.0.0'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

最后 settings.gradle 有这么一小行: 包括':app', ':classes'

最佳答案

在 Module 应用程序的 build.gradle 中:

在顶部添加这一行

应用插件:'com.google.gms.google-services'

关于android - Dalvik VM 找不到多种方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36852948/

有关android - Dalvik VM 找不到多种方法的更多相关文章

  1. ruby - 如何使用 Nokogiri 的 xpath 和 at_xpath 方法 - 2

    我正在学习如何使用Nokogiri,根据这段代码我遇到了一些问题:require'rubygems'require'mechanize'post_agent=WWW::Mechanize.newpost_page=post_agent.get('http://www.vbulletin.org/forum/showthread.php?t=230708')puts"\nabsolutepathwithtbodygivesnil"putspost_page.parser.xpath('/html/body/div/div/div/div/div/table/tbody/tr/td/div

  2. ruby - 如何从 ruby​​ 中的字符串运行任意对象方法? - 2

    总的来说,我对ruby​​还比较陌生,我正在为我正在创建的对象编写一些rspec测试用例。许多测试用例都非常基础,我只是想确保正确填充和返回值。我想知道是否有办法使用循环结构来执行此操作。不必为我要测试的每个方法都设置一个assertEquals。例如:describeitem,"TestingtheItem"doit"willhaveanullvaluetostart"doitem=Item.new#HereIcoulddotheitem.name.shouldbe_nil#thenIcoulddoitem.category.shouldbe_nilendend但我想要一些方法来使用

  3. ruby - 为什么我可以在 Ruby 中使用 Object#send 访问私有(private)/ protected 方法? - 2

    类classAprivatedeffooputs:fooendpublicdefbarputs:barendprivatedefzimputs:zimendprotecteddefdibputs:dibendendA的实例a=A.new测试a.foorescueputs:faila.barrescueputs:faila.zimrescueputs:faila.dibrescueputs:faila.gazrescueputs:fail测试输出failbarfailfailfail.发送测试[:foo,:bar,:zim,:dib,:gaz].each{|m|a.send(m)resc

  4. ruby - Facter::Util::Uptime:Module 的未定义方法 get_uptime (NoMethodError) - 2

    我正在尝试设置一个puppet节点,但ruby​​gems似乎不正常。如果我通过它自己的二进制文件(/usr/lib/ruby/gems/1.8/gems/facter-1.5.8/bin/facter)在cli上运行facter,它工作正常,但如果我通过由ruby​​gems(/usr/bin/facter)安装的二进制文件,它抛出:/usr/lib/ruby/1.8/facter/uptime.rb:11:undefinedmethod`get_uptime'forFacter::Util::Uptime:Module(NoMethodError)from/usr/lib/ruby

  5. Ruby 方法() 方法 - 2

    我想了解Ruby方法methods()是如何工作的。我尝试使用“ruby方法”在Google上搜索,但这不是我需要的。我也看过ruby​​-doc.org,但我没有找到这种方法。你能详细解释一下它是如何工作的或者给我一个链接吗?更新我用methods()方法做了实验,得到了这样的结果:'labrat'代码classFirstdeffirst_instance_mymethodenddefself.first_class_mymethodendendclassSecond使用类#returnsavailablemethodslistforclassandancestorsputsSeco

  6. ruby-on-rails - Rails 3.2.1 中 ActionMailer 中的未定义方法 'default_content_type=' - 2

    我在我的项目中添加了一个系统来重置用户密码并通过电子邮件将密码发送给他,以防他忘记密码。昨天它运行良好(当我实现它时)。当我今天尝试启动服务器时,出现以下错误。=>BootingWEBrick=>Rails3.2.1applicationstartingindevelopmentonhttp://0.0.0.0:3000=>Callwith-dtodetach=>Ctrl-CtoshutdownserverExiting/Users/vinayshenoy/.rvm/gems/ruby-1.9.3-p0/gems/actionmailer-3.2.1/lib/action_mailer

  7. ruby - Highline 询问方法不会使用同一行 - 2

    设置:狂欢ruby1.9.2高线(1.6.13)描述:我已经相当习惯在其他一些项目中使用highline,但已经有几个月没有使用它了。现在,在Ruby1.9.2上全新安装时,它似乎不允许在同一行回答提示。所以以前我会看到类似的东西:require"highline/import"ask"Whatisyourfavoritecolor?"并得到:Whatisyourfavoritecolor?|现在我看到类似的东西:Whatisyourfavoritecolor?|竖线(|)符号是我的终端光标。知道为什么会发生这种变化吗? 最佳答案

  8. ruby - 主要 :Object when running build from sublime 的未定义方法 `require_relative' - 2

    我已经从我的命令行中获得了一切,所以我可以运行rubymyfile并且它可以正常工作。但是当我尝试从sublime中运行它时,我得到了undefinedmethod`require_relative'formain:Object有人知道我的sublime设置中缺少什么吗?我正在使用OSX并安装了rvm。 最佳答案 或者,您可以只使用“require”,它应该可以正常工作。我认为“require_relative”仅适用于ruby​​1.9+ 关于ruby-主要:Objectwhenrun

  9. ruby - 多个属性的 update_column 方法 - 2

    我有一个具有一些属性的模型:attr1、attr2和attr3。我需要在不执行回调和验证的情况下更新此属性。我找到了update_column方法,但我想同时更新三个属性。我需要这样的东西:update_columns({attr1:val1,attr2:val2,attr3:val3})代替update_column(attr1,val1)update_column(attr2,val2)update_column(attr3,val3) 最佳答案 您可以使用update_columns(attr1:val1,attr2:val2

  10. ruby - 检查方法参数的类型 - 2

    我不确定传递给方法的对象的类型是否正确。我可能会将一个字符串传递给一个只能处理整数的函数。某种运行时保证怎么样?我看不到比以下更好的选择:defsomeFixNumMangler(input)raise"wrongtype:integerrequired"unlessinput.class==FixNumother_stuffend有更好的选择吗? 最佳答案 使用Kernel#Integer在使用之前转换输入的方法。当无法以任何合理的方式将输入转换为整数时,它将引发ArgumentError。defmy_method(number)

随机推荐