Using a physical device in Android Studio - Huawei Developers

Hello
I am currently developing an Android app. I recently connected a hardware device to test the app on the device.
The device's model number is: HUAWEI G510-0100, Android version is 4.1.1, Emotion UI-version: 1.0.
When I click on a button in my app to go to another activity, the app then crashes.
I am getting the following output in the run tab:
W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/os/PersistableBundle;)
VFY: unable to resolve virtual method 6741: Landroidx/appcompat/app/AppCompatActivity;.onPostCreate (Landroid/os/Bundle;Landroid/os/PersistableBundle;)V
W/dalvikvm: VFY: unable to resolve virtual method 4371: Landroid/view/View;.setAccessibilityHeading (Z)V
W/dalvikvm: VFY: unable to resolve virtual method 25670: Landroidx/recyclerview/widget/RecyclerView;.saveAttributeDataForStyleable (Landroid/content/Context;[ILandroid/util/AttributeSet;Landroid/content/res/TypedArray;II)V
VFY: unable to resolve virtual method 25670: Landroidx/recyclerview/widget/RecyclerView;.saveAttributeDataForStyleable (Landroid/content/Context;[ILandroid/util/AttributeSet;Landroid/content/res/TypedArray;II)V
W/dalvikvm: VFY: unable to resolve virtual method 4467: Landroid/view/ViewConfiguration;.getScaledHorizontalScrollFactor ()F
VFY: unable to resolve virtual method 4468: Landroid/view/ViewConfiguration;.getScaledHoverSlop ()I
VFY: unable to resolve virtual method 4473: Landroid/view/ViewConfiguration;.getScaledVerticalScrollFactor ()F
VFY: unable to resolve virtual method 4477: Landroid/view/ViewConfiguration;.shouldShowMenuShortcutsWhenKeyboardPresent ()Z
W/dalvikvm: VFY: unable to resolve static method 2035: Landroid/os/Trace;.beginAsyncSection (Ljava/lang/String;I)V
VFY: unable to resolve static method 2036: Landroid/os/Trace;.beginSection (Ljava/lang/String;)V
VFY: unable to resolve static method 2037: Landroid/os/Trace;.endAsyncSection (Ljava/lang/String;I)V
VFY: unable to resolve static method 2038: Landroid/os/Trace;.endSection ()V
VFY: unable to resolve static method 2039: Landroid/os/Trace;.isEnabled ()Z
VFY: unable to resolve static method 2040: Landroid/os/Trace;.setCounter (Ljava/lang/String;J)V
E/dalvikvm: GC_CONCURRENT freed 3395K, 31% free 9701K/13955K, paused 12ms+20ms, total 76ms
W/dalvikvm: VFY: unable to resolve static method 1346: Landroid/graphics/drawable/Drawable;.createFromXmlInner (Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
VFY: unable to resolve static method 1346: Landroid/graphics/drawable/Drawable;.createFromXmlInner (Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
VFY: unable to resolve virtual method 937: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/graphics/Outline;)
VFY: unable to find class referenced in signature (Landroid/graphics/Outline;)
VFY: unable to resolve static method 1346: Landroid/graphics/drawable/Drawable;.createFromXmlInner (Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;Landroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
VFY: unable to resolve virtual method 937: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
VFY: unable to resolve virtual method 1356: Landroid/graphics/drawable/Drawable;.getHotspotBounds (Landroid/graphics/Rect;)V
VFY: unable to find class referenced in signature (Landroid/graphics/Outline;)
VFY: unable to find class referenced in signature (Landroid/graphics/Outline;)
E/dalvikvm: Could not find class 'android.graphics.drawable.AnimatedVectorDrawable', referenced from method androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat.clearAnimationCallbacks
W/dalvikvm: VFY: unable to resolve check-cast 211 (Landroid/graphics/drawable/AnimatedVectorDrawable;) in Landroidx/vectordrawable/graphics/drawable/AnimatedVectorDrawableCompat;
E/dalvikvm: Could not find class 'android.graphics.drawable.AnimatedVectorDrawable', referenced from method androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat.registerAnimationCallback
W/dalvikvm: VFY: unable to resolve check-cast 211 (Landroid/graphics/drawable/AnimatedVectorDrawable;) in Landroidx/vectordrawable/graphics/drawable/AnimatedVectorDrawableCompat;
VFY: unable to find class referenced in signature (Landroid/graphics/drawable/AnimatedVectorDrawable;)
VFY: unable to resolve virtual method 1308: Landroid/graphics/drawable/AnimatedVectorDrawable;.registerAnimationCallback (Landroid/graphics/drawable/Animatable2$AnimationCallback;)V
E/dalvikvm: Could not find class 'android.graphics.drawable.AnimatedVectorDrawable', referenced from method androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat.unregisterAnimationCallback
W/dalvikvm: VFY: unable to resolve check-cast 211 (Landroid/graphics/drawable/AnimatedVectorDrawable;) in Landroidx/vectordrawable/graphics/drawable/AnimatedVectorDrawableCompat;
W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/graphics/drawable/AnimatedVectorDrawable;)
VFY: unable to resolve virtual method 1311: Landroid/graphics/drawable/AnimatedVectorDrawable;.unregisterAnimationCallback (Landroid/graphics/drawable/Animatable2$AnimationCallback;)Z
E/dalvikvm: Could not find class 'android.graphics.drawable.AnimatedVectorDrawable', referenced from method androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat.clearAnimationCallbacks
W/dalvikvm: VFY: unable to resolve check-cast 211 (Landroid/graphics/drawable/AnimatedVectorDrawable;) in Landroidx/vectordrawable/graphics/drawable/AnimatedVectorDrawableCompat;
E/dalvikvm: Could not find class 'android.graphics.drawable.AnimatedVectorDrawable', referenced from method androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat.isRunning
W/dalvikvm: VFY: unable to resolve check-cast 211 (Landroid/graphics/drawable/AnimatedVectorDrawable;) in Landroidx/vectordrawable/graphics/drawable/AnimatedVectorDrawableCompat;
E/dalvikvm: Could not find class 'android.graphics.drawable.AnimatedVectorDrawable', referenced from method androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat.registerAnimationCallback
W/dalvikvm: VFY: unable to resolve check-cast 211 (Landroid/graphics/drawable/AnimatedVectorDrawable;) in Landroidx/vectordrawable/graphics/drawable/AnimatedVectorDrawableCompat;
E/dalvikvm: Could not find class 'android.graphics.drawable.AnimatedVectorDrawable', referenced from method androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat.start
W/dalvikvm: VFY: unable to resolve check-cast 211 (Landroid/graphics/drawable/AnimatedVectorDrawable;) in Landroidx/vectordrawable/graphics/drawable/AnimatedVectorDrawableCompat;
E/dalvikvm: Could not find class 'android.graphics.drawable.AnimatedVectorDrawable', referenced from method androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat.stop
W/dalvikvm: VFY: unable to resolve check-cast 211 (Landroid/graphics/drawable/AnimatedVectorDrawable;) in Landroidx/vectordrawable/graphics/drawable/AnimatedVectorDrawableCompat;
E/dalvikvm: Could not find class 'android.graphics.drawable.AnimatedVectorDrawable', referenced from method androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat.unregisterAnimationCallback
W/dalvikvm: VFY: unable to resolve check-cast 211 (Landroid/graphics/drawable/AnimatedVectorDrawable;) in Landroidx/vectordrawable/graphics/drawable/AnimatedVectorDrawableCompat;
W/dalvikvm: VFY: unable to resolve virtual method 5243: Landroid/widget/CompoundButton;.getButtonDrawable ()Landroid/graphics/drawable/Drawable;
VFY: unable to resolve virtual method 5244: Landroid/widget/CompoundButton;.getButtonTintList ()Landroid/content/res/ColorStateList;
VFY: unable to resolve virtual method 5245: Landroid/widget/CompoundButton;.getButtonTintMode ()Landroid/graphics/PorterDuff$Mode;
VFY: unable to resolve virtual method 5262: Landroid/widget/CompoundButton;.setButtonTintList (Landroid/content/res/ColorStateList;)V
VFY: unable to resolve virtual method 5263: Landroid/widget/CompoundButton;.setButtonTintMode (Landroid/graphics/PorterDuff$Mode;)V
W/dalvikvm: VFY: unable to resolve virtual method 1098: Landroid/graphics/Color;.getModel ()Landroid/graphics/ColorSpace$Model;
W/dalvikvm: VFY: unable to resolve interface method 4630: Landroid/view/ViewParent;.notifySubtreeAccessibilityStateChanged (Landroid/view/View;Landroid/view/View;I)V
VFY: unable to resolve interface method 4631: Landroid/view/ViewParent;.onNestedFling (Landroid/view/View;FFZ)Z
VFY: unable to resolve interface method 4632: Landroid/view/ViewParent;.onNestedPreFling (Landroid/view/View;FF)Z
VFY: unable to resolve interface method 4633: Landroid/view/ViewParent;.onNestedPreScroll (Landroid/view/View;II[I)V
VFY: unable to resolve interface method 4634: Landroid/view/ViewParent;.onNestedScroll (Landroid/view/View;IIII)V
VFY: unable to resolve interface method 4635: Landroid/view/ViewParent;.onNestedScrollAccepted (Landroid/view/View;Landroid/view/View;I)V
VFY: unable to resolve interface method 4636: Landroid/view/ViewParent;.onStartNestedScroll (Landroid/view/View;Landroid/view/View;I)Z
VFY: unable to resolve interface method 4637: Landroid/view/ViewParent;.onStopNestedScroll (Landroid/view/View;)V
W/PreferenceFragment: onPreferenceStartFragment is not implemented in the parent activity - attempting to use a fallback implementation. You should implement this method so that you can configure the new fragment that will be displayed, and set a transition between the fragments.
W/Resources: Converting to string: TypedValue{t=0x10/d=0x2710 a=-1}
Converting to string: TypedValue{t=0x10/d=0xc a=-1}
Converting to string: TypedValue{t=0x10/d=0xc a=-1}
W/Resources: Converting to string: TypedValue{t=0x10/d=0xc a=-1}
E/dalvikvm: GC_CONCURRENT freed 1182K, 30% free 9860K/13955K, paused 12ms+22ms, total 67ms
E/dalvikvm: GC_CONCURRENT freed 1058K, 28% free 10151K/13955K, paused 12ms+20ms, total 69ms
E/dalvikvm: GC_CONCURRENT freed 1056K, 26% free 10447K/13955K, paused 12ms+11ms, total 65ms
I/Choreographer: Skipped 53 frames! The application may be doing too much work on its main thread.
W/dalvikvm: VFY: unable to resolve virtual method 5276: Landroid/widget/EdgeEffect;.onPull (FF)V
E/dalvikvm: GC_CONCURRENT freed 1535K, 28% free 10107K/13955K, paused 12ms+11ms, total 67ms
W/dalvikvm: Link of class 'Landroidx/drawerlayout/widget/DrawerLayout$2;' failed
E/dalvikvm: Could not find class 'androidx.drawerlayout.widget.DrawerLayout$2', referenced from method androidx.drawerlayout.widget.DrawerLayout.<init>
W/dalvikvm: VFY: unable to resolve new-instance 2321 (Landroidx/drawerlayout/widget/DrawerLayout$2;) in Landroidx/drawerlayout/widget/DrawerLayout;
E/dalvikvm: Could not find class 'android.view.WindowInsets', referenced from method androidx.drawerlayout.widget.DrawerLayout.onDraw
W/dalvikvm: VFY: unable to resolve check-cast 720 (Landroid/view/WindowInsets;) in Landroidx/drawerlayout/widget/DrawerLayout;
VFY: unable to resolve virtual method 19576: Landroidx/drawerlayout/widget/DrawerLayout;.getRootWindowInsets ()Landroid/view/WindowInsets;
E/dalvikvm: Could not find class 'android.view.WindowInsets', referenced from method androidx.drawerlayout.widget.DrawerLayout.onMeasure
W/dalvikvm: VFY: unable to resolve check-cast 720 (Landroid/view/WindowInsets;) in Landroidx/drawerlayout/widget/DrawerLayout;
E/dalvikvm: Could not find class 'android.view.WindowInsets', referenced from method androidx.drawerlayout.widget.DrawerLayout.onMeasure
W/dalvikvm: VFY: unable to resolve check-cast 720 (Landroid/view/WindowInsets;) in Landroidx/drawerlayout/widget/DrawerLayout;
Link of class 'Landroidx/drawerlayout/widget/DrawerLayout$2;' failed
W/dalvikvm: VFY: unable to resolve virtual method 14867: Landroidx/coordinatorlayout/widget/CoordinatorLayout;.saveAttributeDataForStyleable (Landroid/content/Context;[ILandroid/util/AttributeSet;Landroid/content/res/TypedArray;II)V
VFY: unable to resolve virtual method 14867: Landroidx/coordinatorlayout/widget/CoordinatorLayout;.saveAttributeDataForStyleable (Landroid/content/Context;[ILandroid/util/AttributeSet;Landroid/content/res/TypedArray;II)V
W/dalvikvm: VFY: unable to resolve virtual method 29682: Lcom/google/android/material/appbar/AppBarLayout;.setKeyboardNavigationCluster (Z)V
VFY: unable to resolve virtual method 29695: Lcom/google/android/material/appbar/AppBarLayout;.setTouchscreenBlocksFocus (Z)V
W/dalvikvm: VFY: unable to resolve virtual method 5594: Landroid/widget/LinearLayout;.setElevation (F)V
W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/graphics/Outline;)
VFY: unable to resolve virtual method 1145: Landroid/graphics/Outline;.setRoundRect (Landroid/graphics/Rect;F)V
VFY: unable to resolve virtual method 1195: Landroid/graphics/Path;.isConvex ()Z
VFY: unable to resolve virtual method 1195: Landroid/graphics/Path;.isConvex ()Z
W/dalvikvm: VFY: unable to resolve static field 142 (DIFFERENCE) in Landroid/graphics/Path$Op;
VFY: unable to resolve static field 143 (INTERSECT) in Landroid/graphics/Path$Op;
VFY: unable to resolve static field 144 (UNION) in Landroid/graphics/Path$Op;
W/dalvikvm: VFY: unable to resolve direct method 5549: Landroid/widget/LinearLayout$LayoutParams;.<init> (Landroid/widget/LinearLayout$LayoutParams;)V
VFY: unable to resolve direct method 5549: Landroid/widget/LinearLayout$LayoutParams;.<init> (Landroid/widget/LinearLayout$LayoutParams;)V
W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/WindowInsets;)
VFY: unable to find class referenced in signature (Landroid/view/WindowInsets;)
VFY: unable to resolve interface method 4149: Landroid/view/View$OnApplyWindowInsetsListener;.onApplyWindowInsets (Landroid/view/View;Landroid/view/WindowInsets;)Landroid/view/WindowInsets;
VFY: unable to find class referenced in signature (Landroid/view/WindowInsets;)
VFY: unable to find class referenced in signature (Landroid/view/WindowInsets;)
VFY: unable to find class referenced in signature (Landroid/view/WindowInsets;)
W/dalvikvm: VFY: unable to resolve virtual method 9239: Landroidx/appcompat/widget/AppCompatButton;.setElevation (F)V
VFY: unable to resolve virtual method 5186: Landroid/widget/Button;.getAutoSizeMaxTextSize ()I
VFY: unable to resolve virtual method 5187: Landroid/widget/Button;.getAutoSizeMinTextSize ()I
VFY: unable to resolve virtual method 5188: Landroid/widget/Button;.getAutoSizeStepGranularity ()I
VFY: unable to resolve virtual method 5189: Landroid/widget/Button;.getAutoSizeTextAvailableSizes ()[I
VFY: unable to resolve virtual method 5190: Landroid/widget/Button;.getAutoSizeTextType ()I
VFY: unable to resolve virtual method 5200: Landroid/widget/Button;.setAutoSizeTextTypeUniformWithConfiguration (IIII)V
VFY: unable to resolve virtual method 5201: Landroid/widget/Button;.setAutoSizeTextTypeUniformWithPresetSizes ([II)V
VFY: unable to resolve virtual method 5202: Landroid/widget/Button;.setAutoSizeTextTypeWithDefaults (I)V
E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method com.google.android.material.button.MaterialButtonHelper.createBackground
W/dalvikvm: VFY: unable to resolve new-instance 225 (Landroid/graphics/drawable/RippleDrawable;) in Lcom/google/android/material/button/MaterialButtonHelper;
VFY: unable to resolve virtual method 1426: Landroid/graphics/drawable/InsetDrawable;.getDrawable ()Landroid/graphics/drawable/Drawable;
E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method com.google.android.material.button.MaterialButtonHelper.setRippleColor
W/dalvikvm: VFY: unable to resolve instanceof 225 (Landroid/graphics/drawable/RippleDrawable;) in Lcom/google/android/material/button/MaterialButtonHelper;
W/dalvikvm: VFY: unable to resolve virtual method 5883: Landroid/widget/TextView;.getAutoSizeMaxTextSize ()I
VFY: unable to resolve virtual method 5884: Landroid/widget/TextView;.getAutoSizeMinTextSize ()I
VFY: unable to resolve virtual method 5885: Landroid/widget/TextView;.getAutoSizeStepGranularity ()I
VFY: unable to resolve virtual method 5886: Landroid/widget/TextView;.getAutoSizeTextAvailableSizes ()[I
VFY: unable to resolve virtual method 5887: Landroid/widget/TextView;.getAutoSizeTextType ()I
VFY: unable to resolve virtual method 5890: Landroid/widget/TextView;.getCompoundDrawableTintList ()Landroid/content/res/ColorStateList;
VFY: unable to resolve virtual method 5891: Landroid/widget/TextView;.getCompoundDrawableTintMode ()Landroid/graphics/PorterDuff$Mode;
VFY: unable to resolve virtual method 5933: Landroid/widget/TextView;.getTextLocale ()Ljava/util/Locale;
VFY: unable to resolve virtual method 5934: Landroid/widget/TextView;.getTextMetricsParams ()Landroid/text/PrecomputedText$Params;
VFY: unable to resolve virtual method 5889: Landroid/widget/TextView;.getBreakStrategy ()I
W/dalvikvm: VFY: unable to resolve virtual method 5957: Landroid/widget/TextView;.setAutoSizeTextTypeUniformWithConfiguration (IIII)V
VFY: unable to resolve virtual method 5958: Landroid/widget/TextView;.setAutoSizeTextTypeUniformWithPresetSizes ([II)V
VFY: unable to resolve virtual method 5959: Landroid/widget/TextView;.setAutoSizeTextTypeWithDefaults (I)V
VFY: unable to resolve virtual method 5963: Landroid/widget/TextView;.setCompoundDrawableTintList (Landroid/content/res/ColorStateList;)V
VFY: unable to resolve virtual method 5964: Landroid/widget/TextView;.setCompoundDrawableTintMode (Landroid/graphics/PorterDuff$Mode;)V
VFY: unable to resolve virtual method 5975: Landroid/widget/TextView;.setFirstBaselineToTopHeight (I)V
VFY: unable to find class referenced in signature (Landroid/text/PrecomputedText;)
VFY: unable to resolve virtual method 6003: Landroid/widget/TextView;.setTextAppearance (I)V
VFY: unable to resolve virtual method 5962: Landroid/widget/TextView;.setBreakStrategy (I)V
W/dalvikvm: VFY: unable to resolve virtual method 33339: Lcom/google/android/material/internal/ScrimInsetsFrameLayout;.setElevation (F)V
W/dalvikvm: VFY: unable to resolve interface method 4039: Landroid/view/MenuItem;.getAlphabeticModifiers ()I
VFY: unable to resolve interface method 4040: Landroid/view/MenuItem;.getContentDescription ()Ljava/lang/CharSequence;
VFY: unable to resolve interface method 4043: Landroid/view/MenuItem;.getIconTintList ()Landroid/content/res/ColorStateList;
VFY: unable to resolve interface method 4044: Landroid/view/MenuItem;.getIconTintMode ()Landroid/graphics/PorterDuff$Mode;
VFY: unable to resolve interface method 4047: Landroid/view/MenuItem;.getNumericModifiers ()I
VFY: unable to resolve interface method 4050: Landroid/view/MenuItem;.getTooltipText ()Ljava/lang/CharSequence;
VFY: unable to resolve interface method 4059: Landroid/view/MenuItem;.setAlphabeticShortcut (CI)Landroid/view/MenuItem;
VFY: unable to resolve interface method 4062: Landroid/view/MenuItem;.setContentDescription (Ljava/lang/CharSequence;)Landroid/view/MenuItem;
VFY: unable to resolve interface method 4066: Landroid/view/MenuItem;.setIconTintList (Landroid/content/res/ColorStateList;)Landroid/view/MenuItem;
VFY: unable to resolve interface method 4067: Landroid/view/MenuItem;.setIconTintMode (Landroid/graphics/PorterDuff$Mode;)Landroid/view/MenuItem;
VFY: unable to resolve interface method 4069: Landroid/view/MenuItem;.setNumericShortcut (CI)Landroid/view/MenuItem;
VFY: unable to resolve interface method 4072: Landroid/view/MenuItem;.setShortcut (CCII)Landroid/view/MenuItem;
VFY: unable to resolve interface method 4075: Landroid/view/MenuItem;.setTooltipText (Ljava/lang/CharSequence;)Landroid/view/MenuItem;
W/dalvikvm: VFY: unable to resolve virtual method 4725: Landroid/view/Window;.getNavigationBarColor ()I
W/dalvikvm: VFY: unable to resolve virtual method 148: Landroid/app/Activity;.finishAfterTransition ()V
VFY: unable to resolve virtual method 161: Landroid/app/Activity;.getReferrer ()Landroid/net/Uri;
VFY: unable to resolve virtual method 178: Landroid/app/Activity;.postponeEnterTransition ()V
VFY: unable to resolve virtual method 182: Landroid/app/Activity;.requestPermissions ([Ljava/lang/String;I)V
VFY: unable to resolve virtual method 183: Landroid/app/Activity;.requireViewById (I)Landroid/view/View;
Unable to resolve superclass of Landroidx/core/app/ActivityCompat$SharedElementCallback21Impl; (78)
Link of class 'Landroidx/core/app/ActivityCompat$SharedElementCallback21Impl;' failed
E/dalvikvm: Could not find class 'androidx.core.app.ActivityCompat$SharedElementCallback21Impl', referenced from method androidx.core.app.ActivityCompat.setEnterSharedElementCallback
W/dalvikvm: VFY: unable to resolve new-instance 1733 (Landroidx/core/app/ActivityCompat$SharedElementCallback21Impl;) in Landroidx/core/app/ActivityCompat;
VFY: unable to resolve virtual method 184: Landroid/app/Activity;.setEnterSharedElementCallback (Landroid/app/SharedElementCallback;)V
Unable to resolve superclass of Landroidx/core/app/ActivityCompat$SharedElementCallback21Impl; (78)
Link of class 'Landroidx/core/app/ActivityCompat$SharedElementCallback21Impl;' failed
E/dalvikvm: Could not find class 'androidx.core.app.ActivityCompat$SharedElementCallback21Impl', referenced from method androidx.core.app.ActivityCompat.setExitSharedElementCallback
W/dalvikvm: VFY: unable to resolve new-instance 1733 (Landroidx/core/app/ActivityCompat$SharedElementCallback21Impl;) in Landroidx/core/app/ActivityCompat;
W/dalvikvm: VFY: unable to resolve virtual method 185: Landroid/app/Activity;.setExitSharedElementCallback (Landroid/app/SharedElementCallback;)V
VFY: unable to resolve virtual method 188: Landroid/app/Activity;.shouldShowRequestPermissionRationale (Ljava/lang/String;)Z
VFY: unable to resolve virtual method 195: Landroid/app/Activity;.startPostponedEnterTransition ()V
Unable to resolve superclass of Landroidx/core/app/ActivityCompat$SharedElementCallback21Impl; (78)
Link of class 'Landroidx/core/app/ActivityCompat$SharedElementCallback21Impl;' failed
Unable to resolve superclass of Landroidx/core/app/ActivityCompat$SharedElementCallback21Impl; (78)
Link of class 'Landroidx/core/app/ActivityCompat$SharedElementCallback21Impl;' failed
W/dalvikvm: VFY: unable to resolve static field 907 (ACTION_SHOW_ON_SCREEN) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
VFY: unable to resolve static field 904 (ACTION_SCROLL_TO_POSITION) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
VFY: unable to resolve static field 905 (ACTION_SCROLL_UP) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
VFY: unable to resolve static field 902 (ACTION_SCROLL_LEFT) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
VFY: unable to resolve static field 901 (ACTION_SCROLL_DOWN) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
VFY: unable to resolve static field 903 (ACTION_SCROLL_RIGHT) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
VFY: unable to resolve static field 899 (ACTION_PAGE_UP) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
VFY: unable to resolve static field 896 (ACTION_PAGE_DOWN) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
VFY: unable to resolve static field 897 (ACTION_PAGE_LEFT) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
VFY: unable to resolve static field 898 (ACTION_PAGE_RIGHT) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
W/dalvikvm: VFY: unable to resolve static field 892 (ACTION_CONTEXT_CLICK) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
VFY: unable to resolve static field 906 (ACTION_SET_PROGRESS) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
VFY: unable to resolve static field 895 (ACTION_MOVE_WINDOW) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
VFY: unable to resolve static field 908 (ACTION_SHOW_TOOLTIP) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
VFY: unable to resolve static field 893 (ACTION_HIDE_TOOLTIP) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
VFY: unable to resolve static field 900 (ACTION_PRESS_AND_HOLD) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
VFY: unable to resolve static field 894 (ACTION_IME_ENTER) in Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;
E/dalvikvm: Could not find class 'android.view.accessibility.AccessibilityNodeInfo$AccessibilityAction', referenced from method androidx.core.view.accessibility.AccessibilityNodeInfoCompat$AccessibilityActionCompat.<init>
W/dalvikvm: VFY: unable to resolve new-instance 734 (Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;) in Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$AccessibilityActionCompat;
E/dalvikvm: Could not find class 'android.view.accessibility.AccessibilityNodeInfo$AccessibilityAction', referenced from method androidx.core.view.accessibility.AccessibilityNodeInfoCompat$AccessibilityActionCompat.getId
W/dalvikvm: VFY: unable to resolve check-cast 734 (Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;) in Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$AccessibilityActionCompat;
E/dalvikvm: Could not find class 'android.view.accessibility.AccessibilityNodeInfo$AccessibilityAction', referenced from method androidx.core.view.accessibility.AccessibilityNodeInfoCompat$AccessibilityActionCompat.getLabel
W/dalvikvm: VFY: unable to resolve check-cast 734 (Landroid/view/accessibility/AccessibilityNodeInfo$AccessibilityAction;) in Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat$AccessibilityActionCompat;
W/dalvikvm: VFY: unable to resolve virtual method 10089: Landroidx/appcompat/widget/LinearLayoutCompat;.drawableHotspotChanged (FF)V
W/dalvikvm: VFY: unable to resolve virtual method 4441: Landroid/view/View;.setTooltipText (Ljava/lang/CharSequence;)V
W/dalvikvm: threadid=13: thread exiting with uncaught exception (group=0x417fc438)
E/dalvikvm: GC_CONCURRENT freed 1183K, 28% free 10154K/13955K, paused 12ms+4ms, total 78ms
I don't know what any of these errors mean and how to fix them.
Could anyone help me?
Thank you in advance,
Jomy

Related

[Q] Google Earth - "can't connect to the server right now" error

Hi there,
I have the i9100 and have flashed the Lightnig 1.1 Rom. Otherwise, its brand new.
I tried to run Google Earth and it spat out that it could not connect to the server. There are no network problems (tested with other apps etc).
dmesg spits out this when GE starts - Has anyone seen this afore?
Regards, me.
Code:
I/ActivityManager( 2855): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.earth/.EarthActivity } from pid 3074
I/ActivityManager( 2855): Start proc com.google.earth for activity com.google.earth/.EarthActivity: pid=13035 uid=10132 gids={3003, 1015}
I/OrientationDebug( 2855): [pwm] in updateOrientationListenerLp()
V/OrientationDebug( 2855): in updateOrientationListenerLp(), Screen status=true, current orientation=-1, SensorEnabled=false
I/OrientationDebug( 2855): [pwm] needSensorRunningLp(), return false #3
I/ActivityThread(13035): Pub com.google.earth.SuggestionProvider: com.google.earth.SearchSuggestion
I/dalvikvm(13035): Could not find method com.google.earth.EarthActivity.getActionBar, referenced from method com.google.earth.EarthActivity.earthReady
W/dalvikvm(13035): VFY: unable to resolve virtual method 638: Lcom/google/earth/EarthActivity;.getActionBar ()Landroid/app/ActionBar;
D/dalvikvm(13035): VFY: replacing opcode 0x6e at 0x000d
D/dalvikvm(13035): VFY: dead code 0x0010-0013 in Lcom/google/earth/EarthActivity;.earthReady ()V
I/dalvikvm(13035): Could not find method com.google.earth.EarthActivity.getActionBar, referenced from method com.google.earth.EarthActivity.onCreate
W/dalvikvm(13035): VFY: unable to resolve virtual method 638: Lcom/google/earth/EarthActivity;.getActionBar ()Landroid/app/ActionBar;
D/dalvikvm(13035): VFY: replacing opcode 0x6e at 0x006e
D/dalvikvm(13035): VFY: dead code 0x0071-0079 in Lcom/google/earth/EarthActivity;.onCreate (Landroid/os/Bundle;)V
I/dalvikvm(13035): Could not find method android.view.MenuItem.getActionView, referenced from method com.google.earth.EarthActivity.onCreateOptionsMenu
W/dalvikvm(13035): VFY: unable to resolve interface method 317: Landroid/view/MenuItem;.getActionView ()Landroid/view/View;
D/dalvikvm(13035): VFY: replacing opcode 0x72 at 0x001f
D/dalvikvm(13035): VFY: dead code 0x0022-0053 in Lcom/google/earth/EarthActivity;.onCreateOptionsMenu (Landroid/view/Menu;)Z
I/dalvikvm(13035): Could not find method android.widget.SearchView.setQuery, referenced from method com.google.earth.EarthActivity.onNewIntent
W/dalvikvm(13035): VFY: unable to resolve virtual method 486: Landroid/widget/SearchView;.setQuery (Ljava/lang/CharSequence;Z)V
D/dalvikvm(13035): VFY: replacing opcode 0x6e at 0x005e
D/dalvikvm(13035): VFY: dead code 0x0061-0066 in Lcom/google/earth/EarthActivity;.onNewIntent (Landroid/content/Intent;)V
I/dalvikvm(13035): Could not find method android.widget.SearchView.setIconified, referenced from method com.google.earth.EarthActivity.onOptionsItemSelected
W/dalvikvm(13035): VFY: unable to resolve virtual method 482: Landroid/widget/SearchView;.setIconified (Z)V
D/dalvikvm(13035): VFY: replacing opcode 0x6e at 0x00c7
I/dalvikvm(13035): Could not find method com.google.earth.EarthActivity.getFragmentManager, referenced from method com.google.earth.EarthActivity.showLayerList
W/dalvikvm(13035): VFY: unable to resolve virtual method 641: Lcom/google/earth/EarthActivity;.getFragmentManager ()Landroid/app/FragmentManager;
D/dalvikvm(13035): VFY: replacing opcode 0x6e at 0x0006
D/dalvikvm(13035): VFY: dead code 0x0009-002a in Lcom/google/earth/EarthActivity;.showLayerList ()V
D/dalvikvm(13035): Trying to load lib /data/data/com.google.earth/lib/libearthmobile.so 0x4051d088
D/dalvikvm(13035): Added shared lib /data/data/com.google.earth/lib/libearthmobile.so 0x4051d088
D/dalvikvm(13035): GC_EXTERNAL_ALLOC freed 86K, 53% free 2577K/5379K, external 0K/0K, paused 17ms
D/dalvikvm(13035): GC_EXTERNAL_ALLOC freed 13K, 52% free 2599K/5379K, external 96K/513K, paused 14ms
D/dalvikvm(13035): GC_EXTERNAL_ALLOC freed 9K, 52% free 2590K/5379K, external 1596K/2108K, paused 16ms
D/SensorManager(13035): ====>>>>>Num Sensor: 1
D/SensorManager(13035): ====>>>>>Num Sensor: 2
D/SensorManager(13035): ====>>>>>Num Sensor: 3
D/SensorManager(13035): ====>>>>>Num Sensor: 4
D/SensorManager(13035): ====>>>>>Num Sensor: 5
D/SensorManager(13035): ====>>>>>Num Sensor: 6
D/SensorManager(13035): ====>>>>>Num Sensor: 7
D/SensorManager(13035): ====>>>>>Num Sensor: 8
D/SensorManager(13035): ====>>>>>Num Sensor: 0
I/OrientationDebug( 2855): [pwm] in updateOrientationListenerLp()
V/OrientationDebug( 2855): in updateOrientationListenerLp(), Screen status=true, current orientation=1, SensorEnabled=false
I/OrientationDebug( 2855): [pwm] needSensorRunningLp(), return false #3
E/SensorManager(13035): registerListener :: handle = 2 name= AK8975 Orientation Sensor delay= 20000 Listener= [email protected]
Silly answer but did u try to reinstall?
Yes, I have reinstalled and rebooted the handset.
Same issue here.
I have the same problem. I tried some custom ROM and am now using the Samsung original KE2. Google Earth does not work and asks for a network connection. All other apps work fine.
I think I know what the issue is. Google along with yahoo and Facebook are testing IPv6 today. It is a collective effort to integrate IPv6 and IPv4. This is mostly the reason that people are having trouble with Google Earth. If the network providers and your router do not know how to deal with the addresses or locations of the addresses then this is understandable.
I do not know if they started this yesterday as well, but I saw some other forums where people are experiencing the same thing.
For me it is just when I try to connect with my Asus Eee Pad Transformer. It seems to work fine on my Captivate (Cyanagenmod 7).
I wonder if its not related to the IPv6 test day if its just their servers over loaded due to the Armchair Astronaut video that went viral yesterday so everyone is trying to see the same Mars stuff. I am getting the same error on my Xoom and Thunderbolt.
I think Rich hit the nail on the head.
It's back working today.
Yeah, I agree with Rich.

[Q] [MT6575] Attempt to add RTL support from existing thread boot loop

After deodexing my ROM (successfuly) with android kitchen and manually applying the changes I attempted to perform this modification
http://forum.xda-developers.com/showthread.php?t=1587136
That resulted in a bootloop even though I do have the arabic .so file in it's supposed place.
I've tried to ln -s libs to lib from what I saw in some search results but nothing.
My android version is 2.3.6 and bak/smali commands were issued with -a 10 to support proper API level
Here's my logcat:
Code:
D/dalvikvm( 261): creating instr width table
I/dalvikvm( 261): Could not find method android.graphics.Canvas.native_drawText, referenced from method android.graphic
s.Canvas.drawText
W/dalvikvm( 261): VFY: unable to resolve virtual method 9864: Landroid/graphics/Canvas;.native_drawText (Ljava/lang/Str
ing;FFLandroid/graphics/Paint;)V
D/dalvikvm( 261): VFY: replacing opcode 0x6e at 0x0004
D/dalvikvm( 261): VFY: dead code 0x0007-0007 in Landroid/graphics/Canvas;.drawText (Ljava/lang/String;FFLandroid/graphi
cs/Paint;)V
W/dalvikvm( 261): Unable to register: not native: Landroid/graphics/Canvas;.drawText:(Ljava/lang/String;FFLandroid/grap
hics/Paint;)V
E/JNIHelp ( 261): RegisterNatives failed for 'android/graphics/Canvas'
E/AndroidRuntime( 261): Unable to register all android natives
Thanks upfront for anybody who helps
got it to work, was a code error ;p

[Q] Need help in smali editing

Hi,
I enabled CRT Animation by this awesome guide.I know little bit about smali editing so i tried to make a toggle for it and did some changes ( basically just set up constant harsh_killer as checkbox preference and an interface to toggle it in secsettings and added jump condition in ScreenBrightnessAnimator ).But it is giving me following error in logcat
Code:
W/dalvikvm( 2152): VFY: tried to get class from non-ref register v7 (type=17)
W/dalvikvm( 2152): VFY: rejecting opcode 0x6e at 0x008d
W/dalvikvm( 2152): VFY: rejected Lcom/android/server/PowerManagerService$ScreenBrightnessAnimator;.animateInternal (IZI)V
W/dalvikvm( 2152): Verifier rejected class Lcom/android/server/PowerManagerService$ScreenBrightnessAnimator;
W/dalvikvm( 2152): threadid=14: thread exiting with uncaught exception (group=0x40fc72a0)
E/android.os.Debug( 2152): [email protected] > dumpstate -k -t -z -d -o /data/log/dumpstate_sys_error
E/AndroidRuntime( 2152): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread
E/AndroidRuntime( 2152): java.lang.VerifyError: com/android/server/PowerManagerService$ScreenBrightnessAnimator
E/AndroidRuntime( 2152): at com.android.server.PowerManagerService.init(PowerManagerService.java:867)
E/AndroidRuntime( 2152): at com.android.server.ServerThread.run(SystemServer.java:270)
Here is my PowerManagerService$ScreenBrightnessAnimator.smali
and full logcat and PowerManagerService.smali and PowerManagerService$ScreenBrightnessAnimator.smali are at d-h.st/6zD
I would also like to inform you that CRT animation was working before and i also checked that toggle part of settings was working.I checked it by printing value in logcat.
I also came to this thread where the OP used similiar logic.

[Q] Theme Manager Force Close

Hi,
I am having FC when I am choosing a theme on my Sony Xperia U.
Whenever I click it, an error says "Unfortunately, Theme manager has stopped."
I tried using different thememanager.apk's and tried putting it to SD card then reboot and put it back again but it still didn't work.
I've provided logcats.
Code:
10-23 01:00:19.156 I/ActivityManager(1798): START {act=com.sonyericsson.theme.intent.action.SET_RUNTIME_THEME flg=0x3000000 cmp=com.sonyericsson.thememanager/.ThemeManager} from pid 7062
10-23 01:00:19.196 I/ActivityManager(1798): Start proc com.sonyericsson.thememanager for activity com.sonyericsson.thememanager/.ThemeManager: pid=7873 uid=10119 gids={1015}
10-23 01:00:19.286 I/dalvikvm(7873): Could not find method com.sonyericsson.theme.RuntimeThemeInfo.loadTitle, referenced from method com.sonyericsson.thememanager.ThemeManager.getSelectedThemeName
10-23 01:00:19.296 E/dalvikvm(7873): Could not find class 'com.sonyericsson.theme.RuntimeThemeInfo[]', referenced from method com.sonyericsson.thememanager.ThemeManager.setThemeAsync
10-23 01:00:19.296 W/dalvikvm(7873): VFY: unable to resolve new-array 140 ([Lcom/sonyericsson/theme/RuntimeThemeInfo;) in Lcom/sonyericsson/thememanager/ThemeManager;
10-23 01:00:19.296 I/dalvikvm(7873): Could not find method com.sonyericsson.theme.RuntimeThemeConfiguration.getDefaultSkinPackage, referenced from method com.sonyericsson.thememanager.RealDependencyFactory.getDefaultSkinPackage
10-23 01:00:19.296 I/dalvikvm(7873): Could not find method com.sonyericsson.theme.RuntimeThemePackageManager.getSkinPackages, referenced from method com.sonyericsson.thememanager.RealDependencyFactory.getRuntimeSkinPackages
10-23 01:00:19.326 I/dalvikvm(7873): Could not find method com.sonyericsson.theme.RuntimeThemeInfo.loadLiveWallpaperComponent, referenced from method com.sonyericsson.thememanager.ThemeSetter.setLiveWallpaperPart
10-23 01:00:19.326 I/dalvikvm(7873): Could not find method com.sonyericsson.theme.RuntimeThemeConfiguration.getDefault, referenced from method com.sonyericsson.thememanager.ThemeSetter.setSkinPackagePart
10-23 01:00:19.326 I/dalvikvm(7873): Could not find method com.sonyericsson.theme.RuntimeThemeInfo.loadWallpaperImageInputStream, referenced from method com.sonyericsson.thememanager.ThemeSetter.setWallpaperPart
10-23 01:00:19.326 I/dalvikvm(7873): Could not find method com.sonyericsson.theme.RuntimeThemeInfo.getSkinPackage, referenced from method com.sonyericsson.thememanager.ThemeSetter.setTheme
10-23 01:00:19.326 E/dalvikvm(7873): Could not find class 'com.sonyericsson.theme.RuntimeThemeInfo', referenced from method com.sonyericsson.thememanager.ThemeManager$1.onItemSelected
10-23 01:00:19.326 W/dalvikvm(7873): VFY: unable to resolve check-cast 63 (Lcom/sonyericsson/theme/RuntimeThemeInfo;) in Lcom/sonyericsson/thememanager/ThemeManager$1;
10-23 01:00:19.326 E/dalvikvm(7873): Could not find class 'com.sonyericsson.theme.RuntimeThemeInfo', referenced from method com.sonyericsson.thememanager.ThemeManager$2.onItemClick
10-23 01:00:19.326 W/dalvikvm(7873): VFY: unable to resolve check-cast 63 (Lcom/sonyericsson/theme/RuntimeThemeInfo;) in Lcom/sonyericsson/thememanager/ThemeManager$2;
10-23 01:00:19.336 E/dalvikvm(7873): Could not find class 'com.sonyericsson.theme.RuntimeThemePackageManager', referenced from method com.sonyericsson.thememanager.RuntimeThemePreviewAdapter.ensureQueryMade
10-23 01:00:19.336 W/dalvikvm(7873): VFY: unable to resolve new-instance 64 (Lcom/sonyericsson/theme/RuntimeThemePackageManager;) in Lcom/sonyericsson/thememanager/RuntimeThemePreviewAdapter;
10-23 01:00:19.336 I/dalvikvm(7873): Could not find method com.sonyericsson.theme.RuntimeThemeConfiguration.getDefault, referenced from method com.sonyericsson.thememanager.RuntimeThemePreviewAdapter.getCurrentTheme
10-23 01:00:19.336 E/dalvikvm(7873): Could not find class 'com.sonyericsson.theme.RuntimeThemeInfo', referenced from method com.sonyericsson.thememanager.RuntimeThemePreviewAdapter.getItem
10-23 01:00:19.336 W/dalvikvm(7873): VFY: unable to resolve check-cast 63 (Lcom/sonyericsson/theme/RuntimeThemeInfo;) in Lcom/sonyericsson/thememanager/RuntimeThemePreviewAdapter;
10-23 01:00:19.336 E/dalvikvm(7873): Could not find class 'com.sonyericsson.theme.RuntimeThemeInfo', referenced from method com.sonyericsson.thememanager.RuntimeThemePreviewAdapter.getPreview
10-23 01:00:19.336 W/dalvikvm(7873): VFY: unable to resolve check-cast 63 (Lcom/sonyericsson/theme/RuntimeThemeInfo;) in Lcom/sonyericsson/thememanager/RuntimeThemePreviewAdapter;
10-23 01:00:19.336 E/dalvikvm(7873): Could not find class 'com.sonyericsson.theme.RuntimeThemeInfo', referenced from method com.sonyericsson.thememanager.RuntimeThemePreviewAdapter.putSkinPackageAtIndex
10-23 01:00:19.336 W/dalvikvm(7873): VFY: unable to resolve check-cast 63 (Lcom/sonyericsson/theme/RuntimeThemeInfo;) in Lcom/sonyericsson/thememanager/RuntimeThemePreviewAdapter;
10-23 01:00:19.336 E/dalvikvm(7873): Could not find class 'com.sonyericsson.theme.RuntimeThemeInfo', referenced from method com.sonyericsson.thememanager.RuntimeThemePreviewAdapter.putSkinPackageAtIndex
10-23 01:00:19.336 W/dalvikvm(7873): VFY: unable to resolve check-cast 63 (Lcom/sonyericsson/theme/RuntimeThemeInfo;) in Lcom/sonyericsson/thememanager/RuntimeThemePreviewAdapter;
10-23 01:00:19.336 D/dalvikvm(7873): DexOpt: unable to opt direct call 0x00a5 at 0x13 in Lcom/sonyericsson/thememanager/RuntimeThemePreviewAdapter;.ensureQueryMade
10-23 01:00:19.336 D/dalvikvm(7873): DexOpt: unable to opt direct call 0x009f at 0x37 in Lcom/sonyericsson/thememanager/RuntimeThemePreviewAdapter;.ensureQueryMade
10-23 01:00:19.336 E/AndroidRuntime(7873): at com.sonyericsson.thememanager.RuntimeThemePreviewAdapter.ensureQueryMade(RuntimeThemePreviewAdapter.java:283)
10-23 01:00:19.336 E/AndroidRuntime(7873): at com.sonyericsson.thememanager.RuntimeThemePreviewAdapter.getCount(RuntimeThemePreviewAdapter.java:100)
10-23 01:00:19.336 E/AndroidRuntime(7873): at com.sonyericsson.thememanager.ThemeManager.onCreate(ThemeManager.java:224)
10-23 01:00:19.346 W/ActivityManager(1798): Force finishing activity com.sonyericsson.thememanager/.ThemeManager
10-23 01:00:19.887 W/ActivityManager(1798): Activity pause timeout for ActivityRecord{41534800 com.sonyericsson.thememanager/.ThemeManager}
10-23 01:00:21.048 I/ActivityManager(1798): Process com.sonyericsson.thememanager (pid 7873) has died.
10-23 01:00:29.957 W/ActivityManager(1798): Activity destroy timeout for ActivityRecord{41534800 com.sonyericsson.thememanager/.ThemeManager}

[Q] don't understand logcat errors for plugin between Eclipse and Unity

Hi,
I am trying to debug an Eclipse project linked to Unity with a plugin. The Eclipse project works on my device (Alcatel One Touch 997), it connects to facebook and shows the user name. But once connected as a plugin to Unity, it does not work anymore. I don't understand the errors from the logcat, or the weird message from Unity about the "portrait" mode (the orientation is set to portrait in the unity settings and in the manifest) :
from Unity :
Code:
Unable to find unity activity in manifest. You need to make sure orientation attribut is set to portrait manually.
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
from the logcat :
Code:
V/ActivityManager( 250): New app record ProcessRecord{41d57940 20062:com.firstandroidapp/10114} [email protected] pid=20062
D/PowerManagerService( 250): setKeyboardVisibility: false
V/ActivityManager( 250): ACT-Launching: ActivityRecord{41d4f3a8 com.firstandroidapp/.MainActivity}
D/NetworkPolicy( 250): onRecv: MSG_FOREGROUND_ACTIVITIES_CHANGED pid:uid:act=20062:10114:true
V/WindowManager( 250): Changing focus from Window{4199c6c8 com.jrdcom.launcher/com.jrdcom.launcher.Launcher paused=false} to null
I/WindowManager( 250): Losing focus: Window{4199c6c8 com.jrdcom.launcher/com.jrdcom.launcher.Launcher paused=false}
D/OpenGLRenderer( 515): Flushing caches (mode 1)
D/OpenGLRenderer( 515): Flushing caches (mode 0)
D/ActivityThread(20062): BIND_APPLICATION handled : 0 / AppBindData{appInfo=ApplicationInfo{418319c8 com.firstandroidapp}}
I/dalvikvm(20062): Failed resolving Lcom/firstandroidapp/MainActivity$1; interface 103 'Lcom/facebook/Session$StatusCallback;'
W/dalvikvm(20062): Link of class 'Lcom/firstandroidapp/MainActivity$1;' failed
E/dalvikvm(20062): Could not find class 'com.firstandroidapp.MainActivity$1', referenced from method com.firstandroidapp.MainActivity.<init>
W/dalvikvm(20062): VFY: unable to resolve new-instance 113 (Lcom/firstandroidapp/MainActivity$1;) in Lcom/firstandroidapp/MainActivity;
D/dalvikvm(20062): VFY: replacing opcode 0x22 at 0x0003
W/dalvikvm(20062): VFY: unable to find class referenced in signature (Lcom/facebook/Session;)
W/dalvikvm(20062): VFY: unable to find class referenced in signature (Lcom/facebook/SessionState;)
W/dalvikvm(20062): VFY: unable to find class referenced in signature (Lcom/facebook/Session;)
W/dalvikvm(20062): VFY: unable to find class referenced in signature (Lcom/facebook/SessionState;)
W/dalvikvm(20062): VFY: unable to find class referenced in signature (Lcom/facebook/model/GraphUser;)
W/dalvikvm(20062): VFY: unable to find class referenced in signature (Lcom/facebook/Session;)
W/dalvikvm(20062): VFY: unable to find class referenced in signature (Lcom/facebook/SessionState;)
I/dalvikvm(20062): Could not find method com.facebook.Session.getActiveSession, referenced from method com.firstandroidapp.MainActivity.updateUI
W/dalvikvm(20062): VFY: unable to resolve static method 264: Lcom/facebook/Session;.getActiveSession ()Lcom/facebook/Session;
D/dalvikvm(20062): VFY: replacing opcode 0x71 at 0x0000
I/dalvikvm(20062): Could not find method com.facebook.UiLifecycleHelper.onActivityResult, referenced from method com.firstandroidapp.MainActivity.onActivityResult
W/dalvikvm(20062): VFY: unable to resolve virtual method 267: Lcom/facebook/UiLifecycleHelper;.onActivityResult (IILandroid/content/Intent;Lcom/facebook/widget/FacebookDialog$Callback;)V
D/dalvikvm(20062): VFY: replacing opcode 0x6e at 0x0007
E/dalvikvm(20062): Could not find class 'com.facebook.UiLifecycleHelper', referenced from method com.firstandroidapp.MainActivity.onCreate
W/dalvikvm(20062): VFY: unable to resolve new-instance 106 (Lcom/facebook/UiLifecycleHelper;) in Lcom/firstandroidapp/MainActivity;
D/dalvikvm(20062): VFY: replacing opcode 0x22 at 0x0005
I/dalvikvm(20062): Could not find method com.facebook.UiLifecycleHelper.onDestroy, referenced from method com.firstandroidapp.MainActivity.onDestroy
W/dalvikvm(20062): VFY: unable to resolve virtual method 269: Lcom/facebook/UiLifecycleHelper;.onDestroy ()V
D/dalvikvm(20062): VFY: replacing opcode 0x6e at 0x0005
I/dalvikvm(20062): Could not find method com.facebook.UiLifecycleHelper.onPause, referenced from method com.firstandroidapp.MainActivity.onPause
W/dalvikvm(20062): VFY: unable to resolve virtual method 270: Lcom/facebook/UiLifecycleHelper;.onPause ()V
D/dalvikvm(20062): VFY: replacing opcode 0x6e at 0x0005
I/dalvikvm(20062): Could not find method com.facebook.UiLifecycleHelper.onResume, referenced from method com.firstandroidapp.MainActivity.onResume
W/dalvikvm(20062): VFY: unable to resolve virtual method 271: Lcom/facebook/UiLifecycleHelper;.onResume ()V
D/dalvikvm(20062): VFY: replacing opcode 0x6e at 0x0005
I/dalvikvm(20062): Could not find method com.facebook.UiLifecycleHelper.onSaveInstanceState, referenced from method com.firstandroidapp.MainActivity.onSaveInstanceState
W/dalvikvm(20062): VFY: unable to resolve virtual method 272: Lcom/facebook/UiLifecycleHelper;.onSaveInstanceState (Landroid/os/Bundle;)V
D/dalvikvm(20062): VFY: replacing opcode 0x6e at 0x0005
I/dalvikvm(20062): Failed resolving Lcom/firstandroidapp/MainActivity$1; interface 103 'Lcom/facebook/Session$StatusCallback;'
W/dalvikvm(20062): Link of class 'Lcom/firstandroidapp/MainActivity$1;' failed
D/dalvikvm(20062): DexOpt: unable to opt direct call 0x0113 at 0x05 in Lcom/firstandroidapp/MainActivity;.<init>
I/dalvikvm(20062): Failed resolving Lcom/firstandroidapp/MainActivity$2; interface 108 'Lcom/facebook/widget/FacebookDialog$Callback;'
W/dalvikvm(20062): Link of class 'Lcom/firstandroidapp/MainActivity$2;' failed
D/dalvikvm(20062): DexOpt: unable to opt direct call 0x0115 at 0x0c in Lcom/firstandroidapp/MainActivity;.<init>
D/dalvikvm(20062): DexOpt: unable to opt direct call 0x010a at 0x09 in Lcom/firstandroidapp/MainActivity;.onCreate
I/dalvikvm(20062): Failed resolving Lcom/firstandroidapp/MainActivity$3; interface 110 'Lcom/facebook/widget/LoginButton$UserInfoChangedCallback;'
W/dalvikvm(20062): Link of class 'Lcom/firstandroidapp/MainActivity$3;' failed
D/dalvikvm(20062): DexOpt: unable to opt direct call 0x0118 at 0x2f in Lcom/firstandroidapp/MainActivity;.onCreate
D/AndroidRuntime(20062): Shutting down VM
W/dalvikvm(20062): threadid=1: thread exiting with uncaught exception (group=0x40f10258)
D/dalvikvm(20051): threadid=0: all daemons have suspended
D/dalvikvm(20051): VM cleaning up
E/AndroidRuntime(20062): FATAL EXCEPTION: main
E/AndroidRuntime(20062): java.lang.NoClassDefFoundError: com.firstandroidapp.MainActivity$1
E/AndroidRuntime(20062): at com.firstandroidapp.MainActivity.<init>(MainActivity.java:27)
E/AndroidRuntime(20062): at java.lang.Class.newInstanceImpl(Native Method)
E/AndroidRuntime(20062): at java.lang.Class.newInstance(Class.java:1319)
E/AndroidRuntime(20062): at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
E/AndroidRuntime(20062): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2011)
E/AndroidRuntime(20062): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2124)
E/AndroidRuntime(20062): at android.app.ActivityThread.access$600(ActivityThread.java:135)
E/AndroidRuntime(20062): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1248)
E/AndroidRuntime(20062): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(20062): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(20062): at android.app.ActivityThread.main(ActivityThread.java:4645)
E/AndroidRuntime(20062): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(20062): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(20062): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
E/AndroidRuntime(20062): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
E/AndroidRuntime(20062): at dalvik.system.NativeStart.main(Native Method)
D/dalvikvm(20051): threadid=4: freeing
D/dalvikvm( 250): threadid=77: interp stack at 0x4d273000
W/ActivityManager( 250): Force finishing activity com.firstandroidapp/.MainActivity
D/dalvikvm( 250): threadid=77: calling run()
W/AES ( 250): Exception Log handling...
D/dalvikvm(20051): LinearAlloc 0x0 used 1005804 of 8388608 (11%)
D/ADB_SERVICES( 6920): closing because is_eof=1 r=-1 s->fde.force_eof=0
D/PowerManagerService( 250): acquireWakeLock flags=0x1 tag=ActivityManager-Launch
D/AES ( 250): ExceptionLog: notify aed
D/AES ( 250): process : com.firstandroidapp
D/AES ( 250): module : com.firstandroidapp v1 (1.0)
D/AES ( 250):
D/AES ( 250): cause : data_app_crash
This is the manifest file in Unity :
Code:
//in Unity, the Manifest file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="(i cannot post links)res/android" package="com.firstandroidapp">
<application
android:allowBackup="true"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
android:screenOrientation="portrait" >
<activity
android:name="com.firstandroidapp.MainActivity"
android:label="MyApp" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data android:value="(numbersHidden)" android:name="com.facebook.sdk.ApplicationId"/>
<activity android:name="com.facebook.LoginActivity"></activity>
</application>
</manifest>
This is how I call the plugin (the project is set as a library, and I pasted the .jar from the bin folder in the folder Plugins/Android in my project in Unity) :
Code:
if(GUI.Button(new Rect(20,250,150,150), "TEST")) {
Debug.Log("hello facebook");
using (AndroidJavaClass javaClass = new AndroidJavaClass("com.firstandroidapp.MainActivity"))
{
using (AndroidJavaObject activity = javaClass.GetStatic<AndroidJavaObject>("ctx"))
{
activity.Call("testFunc");
}
}
}
and the simple method in Eclipse :
Code:
public class MainActivity extends UnityPlayerActivity {
public void testFunc(){
Log.i("test func","test func");
}
The only thing I did was importing the classes.jar (to allow to extend UnityPlayerActivity) in the Eclipse project (Properties > Java Build Path) and I added the FacebookSDK folder as a library (below the checkbox use as a Library in Eclipse, where you can add a folder to add other libraries).
Without facebook, the connection between Unity and Eclipse works fine. But with facebook, the errors above show up.
If anyone would have a slight idea how to debug this, i would really appreciate, I cannot manage to fix this problem.
Thanks

Categories

Resources