I am having a hard time debugging the main java class for my google maps page. I always got a not responding output whenever I run my application. Thank you for those who would answer.
Here is the java code for maps:
public class MapsActivity extends FragmentActivity {
private GoogleMap map;
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_maps);
setUpMapIfNeeded();
}
#Override
protected void onResume() {
super.onResume();
setUpMapIfNeeded();
}
public void onSearch(View view) {
EditText location_tf = (EditText) findViewById(R.id.TFPickup);
String location = location_tf.getText().toString();
List<Address> addressList = null; //stores the list of address
if (location != null || !location.equals("")) {
Geocoder geocoder = new Geocoder(this);
try {
addressList = geocoder.getFromLocationName(location, 1);
} catch (IOException e) {
e.printStackTrace();
}
Address address = addressList.get(0); //stores lang and long
LatLng latLng = new LatLng(address.getLatitude(), address.getLongitude());
map.addMarker(new MarkerOptions().position(latLng).title("You are here!"));
map.animateCamera(CameraUpdateFactory.newLatLng(latLng));
}
}
private void setUpMapIfNeeded() {
if (map == null) {
// Try to obtain the map from the SupportMapFragment.
map = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))
.getMap(); //creates map fragment //getmap- initializes map and view
// Check if we were successful in obtaining the map.
if (map != null) {
setUpMap();
}
}
}
private void setUpMap() {
map.addMarker(new MarkerOptions().position(new LatLng(0,0)).title("You are here!"));
map.setMyLocationEnabled(true); //see current location
}
}
Here is the xml file for the maps:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="#android:color/background_dark"
android:weightSum="1">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#drawable/bg"
/>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#drawable/header"
android:focusable="false"
android:id="#+id/header1"
android:layout_above="#+id/logo" />
<ImageView
android:layout_width="275dp"
android:layout_height="220dp"
android:src="#drawable/logo"
android:id="#+id/logo"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true" />
<EditText
android:layout_width="300dp"
android:layout_height="wrap_content"
android:text="Location"
android:textColor="#android:color/white"
android:textStyle="italic"
android:id="#+id/TFPickup"
android:layout_alignBottom="#+id/logo"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<Button
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="GO"
android:id="#+id/Bsearch"
android:layout_gravity="right"
android:onClick="onSearch"
android:layout_alignBottom="#+id/TFPickup"
android:layout_toRightOf="#+id/TFPickup"
android:layout_toEndOf="#+id/TFPickup" />
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="385dp"
android:layout_height="260dp"
android:id="#+id/map"
tools:context=".MapsActivity"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_below="#+id/logo"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<ImageButton
android:layout_width="140dp"
android:layout_height="40dp"
android:src="#drawable/book_now"
android:id="#+id/book_now"
android:layout_below="#+id/map"
android:layout_centerHorizontal="true"
android:onClick="onClick1"/>
<SearchView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Location"
android:layout_alignTop="#+id/map"
android:layout_centerHorizontal="true"
android:id="#+id/search"
/>
</RelativeLayout>
And here is the function to call the map activity page:
case R.id.bBook:
userLocalStore.getLoggedInUser();
userLocalStore.setUserLoggedIn(true);
startActivity(new Intent(this, MapsActivity.class));
break;
Here is the Manifest file which was requested:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.alienwarevin.loginregister" >
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<!--
The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
Google Maps Android API v2, but are recommended.
-->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/Theme.AppCompat.NoActionBar" >
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version">
</meta-data>
<meta-data
android:name="com.google.android.maps.v2.API_Key"
android:value="AIzaSyCCqPL_zo8vv_LUt6Y5rVD8vh8QijlYyaU">
</meta-data>
<activity
android:name=".SplashScreen"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Login"
android:label="#string/title_activity_login" >
</activity>
<activity
android:name=".Register"
android:label="#string/title_activity_register" >
</activity>
<activity android:name=".MainActivity"
android:label="Main"></activity>
<activity android:name=".MapsActivity"
android:label="MapsActivity">
</activity>
</application>
</manifest>
Here is the Logcat which was requested:
This results whenever I hit the book now button from the login page.
10-02 15:57:16.864 24679-24679/? D/dalvikvm﹕ Late-enabling CheckJNI
10-02 15:57:17.354 24679-24679/com.example.alienwarevin.loginregister D/ActivityThread﹕ setTargetHeapUtilization:0.25
10-02 15:57:17.354 24679-24679/com.example.alienwarevin.loginregister D/ActivityThread﹕ setTargetHeapIdealFree:8388608
10-02 15:57:17.354 24679-24679/com.example.alienwarevin.loginregister D/ActivityThread﹕ setTargetHeapConcurrentStart:2097152
10-02 15:57:18.544 24679-24679/com.example.alienwarevin.loginregister D/dalvikvm﹕ GC_FOR_ALLOC freed 110K, 14% free 13109K/15107K, paused 17ms, total 17ms
10-02 15:57:18.574 24679-24679/com.example.alienwarevin.loginregister I/dalvikvm-heap﹕ Grow heap (frag case) to 29.374MB for 8294416-byte allocation
10-02 15:57:18.624 24679-24681/com.example.alienwarevin.loginregister D/dalvikvm﹕ GC_CONCURRENT freed 1K, 9% free 21208K/23239K, paused 15ms+6ms, total 52ms
10-02 15:57:19.654 24679-24679/com.example.alienwarevin.loginregister D/libEGL﹕ loaded /system/lib/egl/libEGL_adreno200.so
10-02 15:57:19.694 24679-24679/com.example.alienwarevin.loginregister D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_adreno200.so
10-02 15:57:19.704 24679-24679/com.example.alienwarevin.loginregister D/libEGL﹕ loaded /system/lib/egl/libGLESv2_adreno200.so
10-02 15:57:19.714 24679-24679/com.example.alienwarevin.loginregister I/Adreno200-EGL﹕ <qeglDrvAPI_eglInitialize:299>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_REL_2.0.3.04.01.02.21.107_msm8625_JB_REL_2.0.3_CL3357771_release_AU (CL3357771)
Build Date: 02/25/13 Mon
Local Branch:
Remote Branch: quic/jb_rel_2.0.3
Local Patches: NONE
Reconstruct Branch: AU_LINUX_ANDROID_JB_REL_2.0.3.04.01.02.21.107 + NOTHING
10-02 15:57:20.484 24679-24679/com.example.alienwarevin.loginregister D/OpenGLRenderer﹕ Enabling debug mode 0
10-02 15:57:22.514 24679-24681/com.example.alienwarevin.loginregister D/dalvikvm﹕ GC_CONCURRENT freed 3659K, 20% free 23707K/29319K, paused 12ms+3ms, total 88ms
10-02 15:57:22.614 24679-24679/com.example.alienwarevin.loginregister I/dalvikvm﹕ Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.internal.widget.ResourcesWrapper.getDrawable
10-02 15:57:22.624 24679-24679/com.example.alienwarevin.loginregister W/dalvikvm﹕ VFY: unable to resolve virtual method 577: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
10-02 15:57:22.624 24679-24679/com.example.alienwarevin.loginregister D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
10-02 15:57:22.624 24679-24679/com.example.alienwarevin.loginregister I/dalvikvm﹕ Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.internal.widget.ResourcesWrapper.getDrawableForDensity
10-02 15:57:22.624 24679-24679/com.example.alienwarevin.loginregister W/dalvikvm﹕ VFY: unable to resolve virtual method 579: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
10-02 15:57:22.624 24679-24679/com.example.alienwarevin.loginregister D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
10-02 15:57:22.674 24679-24679/com.example.alienwarevin.loginregister I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
10-02 15:57:22.674 24679-24679/com.example.alienwarevin.loginregister W/dalvikvm﹕ VFY: unable to resolve virtual method 614: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
10-02 15:57:22.674 24679-24679/com.example.alienwarevin.loginregister D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
10-02 15:57:22.674 24679-24679/com.example.alienwarevin.loginregister I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
10-02 15:57:22.674 24679-24679/com.example.alienwarevin.loginregister W/dalvikvm﹕ VFY: unable to resolve virtual method 636: Landroid/content/res/TypedArray;.getType (I)I
10-02 15:57:22.674 24679-24679/com.example.alienwarevin.loginregister D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
10-02 15:57:23.224 24679-24679/com.example.alienwarevin.loginregister E/SpannableStringBuilder﹕ SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-02 15:57:23.224 24679-24679/com.example.alienwarevin.loginregister E/SpannableStringBuilder﹕ SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
10-02 15:57:33.574 24679-24679/com.example.alienwarevin.loginregister I/dalvikvm﹕ Could not find method android.app.Notification$Builder.setLocalOnly, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza
10-02 15:57:33.574 24679-24679/com.example.alienwarevin.loginregister W/dalvikvm﹕ VFY: unable to resolve virtual method 243: Landroid/app/Notification$Builder;.setLocalOnly (Z)Landroid/app/Notification$Builder;
10-02 15:57:33.574 24679-24679/com.example.alienwarevin.loginregister D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x00c2
10-02 15:57:33.574 24679-24679/com.example.alienwarevin.loginregister I/dalvikvm﹕ DexOpt: access denied from Lcom/google/android/gms/common/GooglePlayServicesUtil; to field Landroid/app/Notification;.extras
10-02 15:57:33.574 24679-24679/com.example.alienwarevin.loginregister W/dalvikvm﹕ VFY: unable to resolve instance field 18
10-02 15:57:33.574 24679-24679/com.example.alienwarevin.loginregister D/dalvikvm﹕ VFY: replacing opcode 0x54 at 0x00e1
10-02 15:57:33.574 24679-24679/com.example.alienwarevin.loginregister E/dalvikvm﹕ Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zza
10-02 15:57:33.574 24679-24679/com.example.alienwarevin.loginregister W/dalvikvm﹕ VFY: unable to resolve check-cast 25 (Landroid/app/AppOpsManager;) in Lcom/google/android/gms/common/GooglePlayServicesUtil;
10-02 15:57:33.574 24679-24679/com.example.alienwarevin.loginregister D/dalvikvm﹕ VFY: replacing opcode 0x1f at 0x000e
10-02 15:57:33.574 24679-24679/com.example.alienwarevin.loginregister I/dalvikvm﹕ Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.zzh
10-02 15:57:33.574 24679-24679/com.example.alienwarevin.loginregister W/dalvikvm﹕ VFY: unable to resolve virtual method 539: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
10-02 15:57:33.574 24679-24679/com.example.alienwarevin.loginregister D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000b
10-02 15:57:33.594 24679-24679/com.example.alienwarevin.loginregister I/zzy﹕ Making Creator dynamically
10-02 15:57:33.774 24679-24679/com.example.alienwarevin.loginregister E/dalvikvm﹕ Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.common.kz.a
10-02 15:57:33.774 24679-24679/com.example.alienwarevin.loginregister W/dalvikvm﹕ VFY: unable to resolve check-cast 36 (Landroid/app/AppOpsManager;) in Lcom/google/android/gms/common/kz;
10-02 15:57:33.774 24679-24679/com.example.alienwarevin.loginregister D/dalvikvm﹕ VFY: replacing opcode 0x1f at 0x0010
10-02 15:57:33.774 24679-24679/com.example.alienwarevin.loginregister I/dalvikvm﹕ Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.kz.a
10-02 15:57:33.774 24679-24679/com.example.alienwarevin.loginregister W/dalvikvm﹕ VFY: unable to resolve virtual method 446: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
10-02 15:57:33.774 24679-24679/com.example.alienwarevin.loginregister D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000d
10-02 15:57:33.784 24679-24679/com.example.alienwarevin.loginregister I/dalvikvm﹕ Could not find method android.app.Notification$Builder.setLocalOnly, referenced from method com.google.android.gms.common.kz.b
10-02 15:57:33.784 24679-24679/com.example.alienwarevin.loginregister W/dalvikvm﹕ VFY: unable to resolve virtual method 155: Landroid/app/Notification$Builder;.setLocalOnly (Z)Landroid/app/Notification$Builder;
10-02 15:57:33.784 24679-
24679/com.example.alienwarevin.loginregister D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0206
10-02 15:57:33.784 24679-24679/com.example.alienwarevin.loginregister I/dalvikvm﹕ DexOpt: access denied from Lcom/google/android/gms/common/kz; to field Landroid/app/Notification;.extras
10-02 15:57:33.784 24679-24679/com.example.alienwarevin.loginregister W/dalvikvm﹕ VFY: unable to resolve instance field 27
10-02 15:57:33.784 24679-24679/com.example.alienwarevin.loginregister D/dalvikvm﹕ VFY: replacing opcode 0x54 at 0x0225
10-02 15:57:33.784 24679-24679/com.example.alienwarevin.loginregister E/dalvikvm﹕ Could not find class 'android.os.UserManager', referenced from method com.google.android.gms.common.kz.j
10-02 15:57:33.784 24679-24679/com.example.alienwarevin.loginregister W/dalvikvm﹕ VFY: unable to resolve check-cast 245 (Landroid/os/UserManager;) in Lcom/google/android/gms/common/kz;
10-02 15:57:33.784 24679-24679/com.example.alienwarevin.loginregister D/dalvikvm﹕ VFY: replacing opcode 0x1f at 0x000e
10-02 15:57:33.804 24679-24679/com.example.alienwarevin.loginregister D/ChimeraCfgMgr﹕ Loading module com.google.android.gms.maps from APK /data/data/com.google.android.gms/app_chimera/chimera-module-root/module-d6493fd1739bd078c31af6d7054443fe0541820e/MapsModule.apk
10-02 15:57:33.804 24679-24679/com.example.alienwarevin.loginregister D/ChimeraModuleLdr﹕ Loading module APK /data/data/com.google.android.gms/app_chimera/chimera-module-root/module-d6493fd1739bd078c31af6d7054443fe0541820e/MapsModule.apk
10-02 15:57:33.864 24679-24679/com.example.alienwarevin.loginregister D/ChimeraFileApk﹕ Primary ABI of requesting process is armeabi-v7a
10-02 15:57:33.864 24679-24679/com.example.alienwarevin.loginregister D/ChimeraFileApk﹕ Classloading successful, but code may not be optimized. It will either run in fallback (interpreted mode) or the odex has been found and isDexOptNeeded is misreporting a failure.
10-02 15:57:34.004 24679-24679/com.example.alienwarevin.loginregister I/Google Maps Android API﹕ Google Play services client version: 7895000
10-02 15:57:34.004 24679-24679/com.example.alienwarevin.loginregister I/Google Maps Android API﹕ Google Play services package version: 8115034
10-02 15:57:34.014 24679-24679/com.example.alienwarevin.loginregister D/AndroidRuntime﹕ Shutting down VM
10-02 15:57:34.014 24679-24679/com.example.alienwarevin.loginregister W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x4135a438)
10-02 15:57:34.044 24679-24679/com.example.alienwarevin.loginregister E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.alienwarevin.loginregister/com.example.alienwarevin.loginregister.MapsActivity}: android.view.InflateException: Binary XML file line #11: Error inflating class fragment
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2114)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2139)
at android.app.ActivityThread.access$700(ActivityThread.java:143)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1241)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4960)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class fragment
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:710)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:752)
at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:318)
at android.app.Activity.setContentView(Activity.java:1925)
at com.example.alienwarevin.loginregister.MapsActivity.onCreate(MapsActivity.java:27)
at android.app.Activity.performCreate(Activity.java:5203)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2078)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2139)
at android.app.ActivityThread.access$700(ActivityThread.java:143)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1241)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4960)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: API key not found. Check that <meta-data android:name="com.google.android.geo.API_KEY" android:value="your API key"/> is in the <application> element of AndroidManifest.xml
at com.google.maps.api.android.lib6.c.ad.a(Unknown Source)
at com.google.maps.api.android.lib6.a.e.a(Unknown Source)
These results whenever I hit the Book now button in the Login page.
Geocoder geocoder = new Geocoder(this);
should be
Geocoder geocoder = new Geocoder(getActivity());
Related
Can anyone kindly help me, please with this error?
07-06 21:22:04.794 8489-8489/? D/dalvikvm: Late-enabling CheckJNI
07-06 21:22:04.944 8489-8489/? I/dalvikvm: Could not find method android.view.Window$Callback.onProvideKeyboardShortcuts, referenced from method android.support.v7.view.WindowCallbackWrapper.onProvideKeyboardShortcuts
07-06 21:22:04.944 8489-8489/? W/dalvikvm: VFY: unable to resolve interface method 15403: Landroid/view/Window$Callback;.onProvideKeyboardShortcuts (Ljava/util/List;Landroid/view/Menu;I)V
07-06 21:22:04.944 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
07-06 21:22:04.944 8489-8489/? W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
07-06 21:22:04.944 8489-8489/? I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.view.WindowCallbackWrapper.onSearchRequested
07-06 21:22:04.944 8489-8489/? W/dalvikvm: VFY: unable to resolve interface method 15405: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
07-06 21:22:04.944 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
07-06 21:22:04.944 8489-8489/? I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
07-06 21:22:04.944 8489-8489/? W/dalvikvm: VFY: unable to resolve interface method 15409: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
07-06 21:22:04.944 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002
07-06 21:22:04.954 8489-8489/? I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.widget.TintTypedArray.getChangingConfigurations
07-06 21:22:04.954 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 477: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
07-06 21:22:04.954 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
07-06 21:22:04.954 8489-8489/? I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.widget.TintTypedArray.getType
07-06 21:22:04.954 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 499: Landroid/content/res/TypedArray;.getType (I)I
07-06 21:22:04.954 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0008
07-06 21:22:04.954 8489-8489/? I/dalvikvm: Could not find method android.content.Context.createDeviceProtectedStorageContext, referenced from method android.support.v4.content.ContextCompat.createDeviceProtectedStorageContext
07-06 21:22:04.954 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 268: Landroid/content/Context;.createDeviceProtectedStorageContext ()Landroid/content/Context;
07-06 21:22:04.954 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.954 8489-8489/? I/dalvikvm: Could not find method android.content.Context.getCodeCacheDir, referenced from method android.support.v4.content.ContextCompat.getCodeCacheDir
07-06 21:22:04.954 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 273: Landroid/content/Context;.getCodeCacheDir ()Ljava/io/File;
07-06 21:22:04.954 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.954 8489-8489/? I/dalvikvm: Could not find method android.content.Context.getColor, referenced from method android.support.v4.content.ContextCompat.getColor
07-06 21:22:04.964 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 274: Landroid/content/Context;.getColor (I)I
07-06 21:22:04.964 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.964 8489-8489/? I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method android.support.v4.content.ContextCompat.getColorStateList
07-06 21:22:04.964 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 275: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
07-06 21:22:04.964 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.964 8489-8489/? I/dalvikvm: Could not find method android.content.Context.getDataDir, referenced from method android.support.v4.content.ContextCompat.getDataDir
07-06 21:22:04.964 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 277: Landroid/content/Context;.getDataDir ()Ljava/io/File;
07-06 21:22:04.964 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.964 8489-8489/? I/dalvikvm: Could not find method android.content.Context.getDrawable, referenced from method android.support.v4.content.ContextCompat.getDrawable
07-06 21:22:04.964 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 278: Landroid/content/Context;.getDrawable (I)Landroid/graphics/drawable/Drawable;
07-06 21:22:04.964 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.964 8489-8489/? I/dalvikvm: Could not find method android.content.Context.getNoBackupFilesDir, referenced from method android.support.v4.content.ContextCompat.getNoBackupFilesDir
07-06 21:22:04.964 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 285: Landroid/content/Context;.getNoBackupFilesDir ()Ljava/io/File;
07-06 21:22:04.964 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.964 8489-8489/? I/dalvikvm: Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method android.support.v4.content.ContextCompat.isDeviceProtectedStorage
07-06 21:22:04.964 8489-8489/? W/dalvikvm: VFY: unable to resolve virtual method 298: Landroid/content/Context;.isDeviceProtectedStorage ()Z
07-06 21:22:04.964 8489-8489/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
07-06 21:22:04.984 8489-8489/? D/AndroidRuntime: Shutting down VM
07-06 21:22:04.984 8489-8489/? W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41692c08)
07-06 21:22:04.994 8489-8489/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.lenovo.app, PID: 8489
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.lenovo.app/com.example.lenovo.app.MainActivity}: java.lang.IllegalStateException: This app has been built with an incorrect configuration. Please configure your build for VectorDrawableCompat.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2339)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2391)
at android.app.ActivityThread.access$900(ActivityThread.java:166)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1281)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5511)
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:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: This app has been built with an incorrect configuration. Please configure your build for VectorDrawableCompat.
at android.support.v7.widget.AppCompatDrawableManager.checkVectorDrawableSetup(AppCompatDrawableManager.java:713)
at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:194)
at android.support.v7.widget.TintTypedArray.getDrawableIfKnown(TintTypedArray.java:81)
at android.support.v7.app.AppCompatDelegateImplBase.<init>(AppCompatDelegateImplBase.java:129)
at android.support.v7.app.AppCompatDelegateImplV9.<init>(AppCompatDelegateImplV9.java:152)
at android.support.v7.app.AppCompatDelegateImplV11.<init>(AppCompatDelegateImplV11.java:29)
at android.support.v7.app.AppCompatDelegateImplV14.<init>(AppCompatDelegateImplV14.java:53)
at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:204)
at android.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.java:184)
at android.support.v7.app.AppCompatActivity.getDelegate(AppCompatActivity.java:518)
at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:70)
at com.example.lenovo.app.MainActivity.onCreate(MainActivity.java:10)
at android.app.Activity.performCreate(Activity.java:5322)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2303)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2391)
at android.app.ActivityThread.access$900(ActivityThread.java:166)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1281)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5511)
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:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
07-06 21:22:07.814 8489-8489/? I/Process: Sending signal. PID: 8489 SIG: 9
add this code to your app.gradle :
android {
//....something
defaultConfig {
generatedDensities = []
}
aaptOptions {
additionalParameters "--no-version-vectors"
}
Yo need to implement correctly VectorDrawableCompat:
1- Make sure that your gradle is updated at less at v2.3.3
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
}
2- In your Gradle:
android {
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
}
dependencies {
compile 'com.android.support:appcompat-v7:23.2.0'
}
3- In your Application class:
#Override
public void onCreate() {
super.onCreate();
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
}
4- In your xmls use app:srcCompat instead of android:src
Note:
If you are enabling vector compat in each activity like this
static {
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
}
please don't forget extend your activity from AppCompatActivity
If still not works please provide us more information about your project
This question already has answers here:
Can not find a View with findViewById()
(4 answers)
What is a NullPointerException, and how do I fix it?
(12 answers)
What is a stack trace, and how can I use it to debug my application errors?
(7 answers)
Closed 5 years ago.
03-30 23:49:56.536 15105-15105/? D/dalvikvm: Late-enabling CheckJNI
03-30 23:49:56.560 15105-15111/? E/jdwp: Failed writing handshake
bytes: Broken pipe (-1 of 14) 03-30 23:49:56.560 15105-15111/?
D/dalvikvm: Debugger has detached; object registry had 0 entries 03-30
23:49:56.600 15105-15105/? I/dalvikvm: Could not find method
android.view.Window$Callback.onProvideKeyboardShortcuts, referenced
from method
android.support.v7.view.WindowCallbackWrapper.onProvideKeyboardShortcuts
03-30 23:49:56.600 15105-15105/? W/dalvikvm: VFY: unable to resolve
interface method 21845:
Landroid/view/Window$Callback;.onProvideKeyboardShortcuts
(Ljava/util/List;Landroid/view/Menu;I)V 03-30 23:49:56.600
15105-15105/? D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002 03-30
23:49:56.604 15105-15105/? W/dalvikvm: VFY: unable to find class
referenced in signature (Landroid/view/SearchEvent;) 03-30
23:49:56.604 15105-15105/? I/dalvikvm: Could not find method
android.view.Window$Callback.onSearchRequested, referenced from method
android.support.v7.view.WindowCallbackWrapper.onSearchRequested 03-30
23:49:56.604 15105-15105/? W/dalvikvm: VFY: unable to resolve
interface method 21847:
Landroid/view/Window$Callback;.onSearchRequested
(Landroid/view/SearchEvent;)Z 03-30 23:49:56.604 15105-15105/?
D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002 03-30 23:49:56.604
15105-15105/? I/dalvikvm: Could not find method
android.view.Window$Callback.onWindowStartingActionMode, referenced
from method
android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
03-30 23:49:56.604 15105-15105/? W/dalvikvm: VFY: unable to resolve
interface method 21851:
Landroid/view/Window$Callback;.onWindowStartingActionMode
(Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode; 03-30
23:49:56.604 15105-15105/? D/dalvikvm: VFY: replacing opcode 0x72 at
0x0002 03-30 23:49:56.604 15105-15105/? I/dalvikvm: Could not find
method android.content.res.TypedArray.getChangingConfigurations,
referenced from method
android.support.v7.widget.TintTypedArray.getChangingConfigurations
03-30 23:49:56.604 15105-15105/? W/dalvikvm: VFY: unable to resolve
virtual method 502:
Landroid/content/res/TypedArray;.getChangingConfigurations ()I 03-30
23:49:56.604 15105-15105/? D/dalvikvm: VFY: replacing opcode 0x6e at
0x0002 03-30 23:49:56.604 15105-15105/? I/dalvikvm: Could not find
method android.content.res.TypedArray.getType, referenced from method
android.support.v7.widget.TintTypedArray.getType 03-30 23:49:56.604
15105-15105/? W/dalvikvm: VFY: unable to resolve virtual method 524:
Landroid/content/res/TypedArray;.getType (I)I 03-30 23:49:56.604
15105-15105/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0008 03-30
23:49:56.636 15105-15105/? I/dalvikvm: Could not find method
android.widget.FrameLayout.startActionModeForChild, referenced from
method
android.support.v7.widget.ActionBarContainer.startActionModeForChild
03-30 23:49:56.636 15105-15105/? W/dalvikvm: VFY: unable to resolve
virtual method 22329:
Landroid/widget/FrameLayout;.startActionModeForChild
(Landroid/view/View;Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
03-30 23:49:56.640 15105-15105/? D/dalvikvm: VFY: replacing opcode
0x6f at 0x0002 03-30 23:49:56.640 15105-15105/? I/dalvikvm: Could not
find method android.content.Context.getColorStateList, referenced from
method
android.support.v7.content.res.AppCompatResources.getColorStateList
03-30 23:49:56.640 15105-15105/? W/dalvikvm: VFY: unable to resolve
virtual method 315: Landroid/content/Context;.getColorStateList
(I)Landroid/content/res/ColorStateList; 03-30 23:49:56.640
15105-15105/? D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006 03-30
23:49:56.652 15105-15105/? I/dalvikvm: Could not find method
android.content.res.Resources.getDrawable, referenced from method
android.support.v7.widget.ResourcesWrapper.getDrawable 03-30
23:49:56.652 15105-15105/? W/dalvikvm: VFY: unable to resolve virtual
method 465: Landroid/content/res/Resources;.getDrawable
(ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
03-30 23:49:56.652 15105-15105/? D/dalvikvm: VFY: replacing opcode
0x6e at 0x0002 03-30 23:49:56.652 15105-15105/? I/dalvikvm: Could not
find method android.content.res.Resources.getDrawableForDensity,
referenced from method
android.support.v7.widget.ResourcesWrapper.getDrawableForDensity 03-30
23:49:56.652 15105-15105/? W/dalvikvm: VFY: unable to resolve virtual
method 467: Landroid/content/res/Resources;.getDrawableForDensity
(IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
03-30 23:49:56.652 15105-15105/? D/dalvikvm: VFY: replacing opcode
0x6e at 0x0002 03-30 23:49:56.660 15105-15105/? E/dalvikvm: Could not
find class 'android.graphics.drawable.RippleDrawable', referenced from
method
android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
03-30 23:49:56.660 15105-15105/? W/dalvikvm: VFY: unable to resolve
instanceof 150 (Landroid/graphics/drawable/RippleDrawable;) in
Landroid/support/v7/widget/AppCompatImageHelper; 03-30 23:49:56.660
15105-15105/? D/dalvikvm: VFY: replacing opcode 0x20 at 0x000c 03-30
23:49:56.680 15105-15108/? D/dalvikvm: GC_CONCURRENT freed 234K, 22%
free 2639K/3364K, paused 1ms+2ms, total 9ms 03-30 23:49:56.692
15105-15105/? D/dalvikvm: GC_FOR_ALLOC freed 31K, 21% free
2676K/3364K, paused 3ms, total 3ms 03-30 23:49:56.692 15105-15105/?
I/dalvikvm-heap: Grow heap (frag case) to 3.506MB for 435468-byte
allocation 03-30 23:49:56.692 15105-15114/? D/dalvikvm: GC_FOR_ALLOC
freed 1K, 19% free 3100K/3792K, paused 3ms, total 3ms 03-30
23:49:56.700 15105-15108/? D/dalvikvm: GC_CONCURRENT freed 3K, 19%
free 3097K/3792K, paused 0ms+0ms, total 6ms 03-30 23:49:56.700
15105-15105/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 5ms 03-30
23:49:56.700 15105-15105/? I/dalvikvm-heap: Grow heap (frag case) to
3.821MB for 333408-byte allocation 03-30 23:49:56.704 15105-15114/? D/dalvikvm: GC_FOR_ALLOC freed <1K, 17% free 3422K/4120K, paused 4ms,
total 4ms 03-30 23:49:56.748 15105-15105/? D/libEGL: loaded
/system/lib/egl/libEGL_genymotion.so
[ 03-30 23:49:56.748 15105:15105 D/ ]
HostConnection::get() New Host Connection established 0xb85b25b0, tid 15105
[ 03-30 23:49:56.752 62: 62 D/ ]
Socket deconnection 03-30 23:49:56.756 15105-15105/? D/libEGL: loaded
/system/lib/egl/libGLESv1_CM_genymotion.so 03-30 23:49:56.756
15105-15105/? D/libEGL: loaded /system/lib/egl/libGLESv2_genymotion.so
03-30 23:49:56.804 15105-15105/? W/EGL_genymotion: eglSurfaceAttrib
not implemented 03-30 23:49:56.804 15105-15105/? E/OpenGLRenderer:
Getting MAX_TEXTURE_SIZE from GradienCache 03-30 23:49:56.812
15105-15105/? E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from
Caches::initConstraints() 03-30 23:49:56.812 15105-15105/?
D/OpenGLRenderer: Enabling debug mode 0 03-30 23:50:19.456
15105-15105/com.example.samsungvy277.myapp E/InputEventSender:
Exception dispatching finished signal. 03-30 23:50:19.456
15105-15105/com.example.samsungvy277.myapp E/MessageQueue-JNI:
Exception in MessageQueue callback: handleReceiveCallback 03-30
23:50:19.468 15105-15105/com.example.samsungvy277.myapp D/dalvikvm:
GC_FOR_ALLOC freed 806K, 30% free 3127K/4428K, paused 5ms, total 5ms
03-30 23:50:19.468 15105-15105/com.example.samsungvy277.myapp
E/MessageQueue-JNI: java.lang.IllegalStateException: Could not execute
method for android:onClick
at
android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:293)
at android.view.View.performClick(View.java:4240)
at android.view.View.onKeyUp(View.java:7928)
at android.widget.TextView.onKeyUp(TextView.java:5606)
at android.view.KeyEvent.dispatch(KeyEvent.java:2647)
at android.view.View.dispatchKeyEvent(View.java:7343)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:1933)
at
com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1408)
at android.app.Activity.dispatchKeyEvent(Activity.java:2384)
at
android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:541)
at
android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59)
at
android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:319)
at
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1860)
at
android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:3791)
at
android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3774)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at
android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3483)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3406)
at
android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3540)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3406)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at
android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3516)
at
android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:3666)
at
android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:1982)
at
android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1698)
at
android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1689)
at
android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:1959)
at
android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:132)
at android.os.Looper.loop(Looper.java:124)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at an 03-30 23:50:19.468 15105-15105/com.example.samsungvy277.myapp
D/AndroidRuntime: Shutting down VM 03-30 23:50:19.472
15105-15105/com.example.samsungvy277.myapp W/dalvikvm: threadid=1:
thread exiting with uncaught exception (group=0xa4c2e648) 03-30
23:50:19.480 15105-15105/com.example.samsungvy277.myapp
E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.IllegalStateException: Could not execute method for
android:onClick
at
android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:293)
at android.view.View.performClick(View.java:4240)
at android.view.View.onKeyUp(View.java:7928)
at android.widget.TextView.onKeyUp(TextView.java:5606)
at android.view.KeyEvent.dispatch(KeyEvent.java:2647)
at android.view.View.dispatchKeyEvent(View.java:7343)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
at
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:1933)
at
com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1408)
at android.app.Activity.dispatchKeyEvent(Activity.java:2384)
at
android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:541)
at
android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:59)
at
android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:319)
at
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1860)
at
android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:3791)
at
android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:3774)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at
android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3483)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3406)
at
android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3540)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3406)
at
android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3379)
at
android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3429)
at
android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3398)
at
android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3516)
at
android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:3666)
at
android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:1982)
at
android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1698)
at
android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1689)
at
android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:1959)
at
android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:132)
at android.os.Looper.loop(Looper.java:124)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Met 03-30 23:50:22.504
15105-15105/? I/Process: Sending signal. PID: 15105 SIG: 9
Use findViewById after setting your setContentView(R.layout.activity_main)
I'm encountering some problems running my app on devices with android version <5 (works fine on Lollipop and Marshmellow, crashes on start on Jelly Bean).
Things that can help: i'm using google maps on my app.
Here's the debug code:
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1302)
I/ActivityThread: Pub com.developer.project.firebaseinitprovider: com.google.firebase.provider.FirebaseInitProvider
I/FirebaseInitProvider: FirebaseApp initialization unsuccessful
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 21082: Landroid/view/Window$Callback;.onProvideKeyboardShortcuts (Ljava/util/List;Landroid/view/Menu;I)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 21084: 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 21088: 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 683: 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 705: Landroid/content/res/TypedArray;.getType (I)I
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0008
I/dalvikvm: Could not find method android.support.graphics.drawable.VectorDrawableCompat.getLayoutDirection, referenced from method android.support.graphics.drawable.VectorDrawableCompat.needMirroring
W/dalvikvm: VFY: unable to resolve virtual method 3949: Landroid/support/graphics/drawable/VectorDrawableCompat;.getLayoutDirection ()I
D/dalvikvm: VFY: replacing opcode 0x6e at 0x000f
I/dalvikvm: Could not find method android.widget.FrameLayout.startActionModeForChild, referenced from method android.support.v7.widget.ActionBarContainer.startActionModeForChild
W/dalvikvm: VFY: unable to resolve virtual method 21671: Landroid/widget/FrameLayout;.startActionModeForChild (Landroid/view/View;Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0002
I/dalvikvm: Could not find method android.view.ViewGroup.onRtlPropertiesChanged, referenced from method android.support.v7.widget.Toolbar.onRtlPropertiesChanged
W/dalvikvm: VFY: unable to resolve virtual method 20966: Landroid/view/ViewGroup;.onRtlPropertiesChanged (I)V
D/dalvikvm: VFY: replacing opcode 0x6f at 0x0007
I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method android.support.v7.content.res.AppCompatResources.getColorStateList
W/dalvikvm: VFY: unable to resolve virtual method 442: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm: Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawable
W/dalvikvm: VFY: unable to resolve virtual method 646: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
I/dalvikvm: Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawableForDensity
W/dalvikvm: VFY: unable to resolve virtual method 648: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002
E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
W/dalvikvm: VFY: unable to resolve instanceof 186 (Landroid/graphics/drawable/RippleDrawable;) in Landroid/support/v7/widget/AppCompatImageHelper;
D/dalvikvm: VFY: replacing opcode 0x20 at 0x000c
D/dalvikvm: GC_CONCURRENT freed 221K, 4% free 8135K/8391K, paused 14ms+1ms, total 24ms
W/ResourceType: Failure getting entry for 0x7f020083 (t=1 e=131) in package 0 (error -75)
D/AndroidRuntime: Shutting down VM
W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xae6aa228)
E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.developer.project/com.developer.project.MainActivity}: android.view.InflateException: Binary XML file line #30: Error inflating class ImageView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
at android.app.ActivityThread.access$600(ActivityThread.java:130)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #30: Error inflating class ImageView
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.developer.project.MainActivity.onCreate(MainActivity.java:38)
at android.app.Activity.performCreate(Activity.java:5008)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
at android.app.ActivityThread.access$600(ActivityThread.java:130)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f020083 a=-1 r=0x7f020083}
at android.content.res.Resources.loadDrawable(Resources.java:1897)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.widget.ImageView.<init>(ImageView.java:120)
at android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:60)
at android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:56)
at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)
at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1017)
at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1076)
at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView(LayoutInflaterCompatHC.java:44)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:675)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:143)
at com.developer.project.MainActivity.onCreate(MainActivity.java:38)
at android.app.Activity.performCreate(Activity.java:5008)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
at android.app.ActivityThread.access$600(ActivityThread.java:130)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
In the exception, you can see "Error inflating class ImageView", but if I remove the ImageView the error it's in the textvivew and so on...
The error in "MainActivity" is on the line "setContentView"
This is the mainActivity xml (I think not useful...):
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#F8F8F8">
<TextView
android:layout_width="100dp"
android:layout_height="5dp"
android:id="#+id/textView72"
android:textSize="20dp"
android:gravity="center_vertical"
android:background="#CCCCCC"
android:paddingLeft="10dp"
android:textColor="#FFFFFF"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:id="#+id/imageViewInfo"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:src="#drawable/info_logo"
android:layout_marginBottom="5dp"
android:layout_marginRight="5dp" />
<GridLayout
android:layout_width="295dp"
android:layout_height="175dp"
android:id="#+id/gridLayoutStart"
android:background="#FFF9F9"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true">
<Button
android:layout_width="285dp"
android:layout_height="85dp"
android:text="#string/searchByCity"
android:id="#+id/btnSearchCity"
android:layout_row="0"
android:layout_column="0"
android:background="#drawable/circlebutton_top"
android:textColor="#FFFFFF"
android:textSize="18dp"
android:typeface="sans"
android:textAllCaps="false"
android:drawableLeft="#drawable/search_40"
android:paddingLeft="10dp"
android:layout_columnSpan="2"/>
<Button
android:layout_width="285dp"
android:layout_height="85dp"
android:text="#string/nearMe"
android:id="#+id/btnNearMe"
android:layout_row="1"
android:layout_column="0"
android:background="#drawable/circlebutton_bottom"
android:textColor="#FFFFFF"
android:textSize="18dp"
android:typeface="sans"
android:textAllCaps="false"
android:drawableLeft="#drawable/map_40"
android:paddingLeft="10dp"
android:layout_marginTop="5dp"
android:layout_columnSpan="2" />
</GridLayout>
</RelativeLayout>
<ListView
android:id="#+id/navListBench"
android:layout_width="200dp"
android:layout_height="match_parent"
android:layout_gravity="left|start"
android:background="#ffeeeeee"/>
</android.support.v4.widget.DrawerLayout>
I confirm that on my devices with android 5 and 6 the app is working perfectly...
Solved.
The problem was not firebase, but the drawables.
In the exception, the right thing to watch was "Resource is not a Drawable".
There was two drawable folders: one called "drawable" and an another "drawable-21".
I've moved all to the main drawable folder and now it's working.
Am trying to use admob native ads express
https://firebase.google.com/docs/admob/android/native-express
Downloaded the sample app from github.
(https://github.com/googleads/googleads-mobile-android-examples/tree/master/admob/NativeExpressExample)
But the app not showing native ads. I spent a lot of time to find the issue but i failed.
Anyone facing the same issue? or have any ways to display it.
Here is the logcat
06-15 21:07:29.539 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ Late-enabling CheckJNI
06-15 21:07:29.689 9609-9609/com.google.example.gms.ads.nativeexpressexample D/ActivityThread﹕ setTargetHeapUtilization:0.25
06-15 21:07:29.689 9609-9609/com.google.example.gms.ads.nativeexpressexample D/ActivityThread﹕ setTargetHeapIdealFree:8388608
06-15 21:07:29.689 9609-9609/com.google.example.gms.ads.nativeexpressexample D/ActivityThread﹕ setTargetHeapConcurrentStart:2097152
06-15 21:07:29.869 9609-9609/com.google.example.gms.ads.nativeexpressexample I/ActivityThread﹕ Pub com.google.example.gms.ads.nativeexpressexample.firebaseinitprovider: com.google.firebase.provider.FirebaseInitProvider
06-15 21:07:29.959 9609-9609/com.google.example.gms.ads.nativeexpressexample D/FirebaseApp﹕ com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
06-15 21:07:29.969 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.content.Context.getNoBackupFilesDir, referenced from method com.google.android.gms.common.util.zzx.getNoBackupFilesDir
06-15 21:07:29.969 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 358: Landroid/content/Context;.getNoBackupFilesDir ()Ljava/io/File;
06-15 21:07:29.969 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0006
06-15 21:07:30.029 9609-9609/com.google.example.gms.ads.nativeexpressexample D/FirebaseApp﹕ Initialized class com.google.firebase.iid.FirebaseInstanceId.
06-15 21:07:30.029 9609-9609/com.google.example.gms.ads.nativeexpressexample D/FirebaseApp﹕ com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
06-15 21:07:30.079 9609-9609/com.google.example.gms.ads.nativeexpressexample E/dalvikvm﹕ Could not find class 'android.os.UserManager', referenced from method com.google.android.gms.common.zze.zzan
06-15 21:07:30.079 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve check-cast 267 (Landroid/os/UserManager;) in Lcom/google/android/gms/common/zze;
06-15 21:07:30.079 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x1f at 0x000c
06-15 21:07:30.089 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.zze.zzk
06-15 21:07:30.089 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 497: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
06-15 21:07:30.089 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000b
06-15 21:07:30.149 9609-9609/com.google.example.gms.ads.nativeexpressexample I/FA﹕ App measurement is starting up, version: 9080
06-15 21:07:30.149 9609-9609/com.google.example.gms.ads.nativeexpressexample I/FA﹕ To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
06-15 21:07:30.179 9609-9609/com.google.example.gms.ads.nativeexpressexample E/dalvikvm﹕ Could not find class 'android.app.AppOpsManager', referenced from method com.google.android.gms.internal.zzpv.zzg
06-15 21:07:30.179 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve check-cast 25 (Landroid/app/AppOpsManager;) in Lcom/google/android/gms/internal/zzpv;
06-15 21:07:30.179 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x1f at 0x0010
06-15 21:07:30.879 9609-9609/com.google.example.gms.ads.nativeexpressexample D/FirebaseApp﹕ Initialized class com.google.android.gms.measurement.AppMeasurement.
06-15 21:07:30.879 9609-9609/com.google.example.gms.ads.nativeexpressexample I/FirebaseInitProvider﹕ FirebaseApp initialization successful
06-15 21:07:30.959 9609-9644/com.google.example.gms.ads.nativeexpressexample V/GoogleSignatureVerifier﹕ com.google.android.gms signature not valid. Found:
MIIEQzCCAyugAwIBAgIJAMLgh0ZkSjCNMA0GCSqGSIb3DQEBBAUAMHQxCzAJBgNVBAYTAlVTMRMw
EQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29n
bGUgSW5jLjEQMA4GA1UECxMHQW5kcm9pZDEQMA4GA1UEAxMHQW5kcm9pZDAeFw0wODA4MjEyMzEz
MzRaFw0zNjAxMDcyMzEzMzRaMHQxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYw
FAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtHb29nbGUgSW5jLjEQMA4GA1UECxMHQW5k
cm9pZDEQMA4GA1UEAxMHQW5kcm9pZDCCASAwDQYJKoZIhvcNAQEBBQADggENADCCAQgCggEBAKtW
LgDYO6IIrgqWbxJOKdoR8qtW0I9Y4sypEwPpt1TTcvZApxsdyxMJZ2JORland2qSGT2y5b+3JKke
dxiLDmpHpDsz2WCbdxgxRczfey5YZnTJ4VZbH0xqWVW/8lGmPav5xVwnIiJS6HXk+BVKZF+JcWjA
sb/GEuq/eFdpuzSqeYTcfi6idkyugwfYwXFU1+5fZKUaRKYCwkkFQVfcAs1fXA5V+++FGfvjJ/Cx
URaSxaBvGdGDhfXE28LWuT9ozCl5xw4Yq5OGazvV24mZVSoOO0yZ31j7kYvtwYK6NeADwbSxDdJE
qO4k//0zOHKrUiGYXtqw/A0LFFtqoZKFjnkCAQOjgdkwgdYwHQYDVR0OBBYEFMd9jMIhF1Ylmn/T
gt9r45jk14alMIGmBgNVHSMEgZ4wgZuAFMd9jMIhF1Ylmn/Tgt9r45jk14aloXikdjB0MQswCQYD
VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIG
A1UEChMLR29vZ2xlIEluYy4xEDAOBgNVBAsTB0FuZHJvaWQxEDAOBgNVBAMTB0FuZHJvaWSCCQDC
4IdGZEowjTAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBAUAA4IBAQBt0lLO74UwLDYKqs6Tm8/y
zKkEu116FmH4rkaymUIE0P9KaMftGlMexFlaYjzmB2OxZyl6euNXEsQH8gjwyxCUKRJNexBiGcCE
yj6z+a1fuHHvkiaai+KL8W1EyNmgjmyy8AW7P+LLlkR+ho5zEHatRbM/YAnqGcFh5iZBqpknHf1S
KMXFh4dd239FJ1jWYfbMDMy3NS5CTMQ2XFI1MvcyUTdZPErjQfTbQe3aDQsQcafEQPD+nqActifK
Z0Np0IS9L9kR/wbNvyz6ENwPiTrjV2KRkEjH78ZMcUQXg0L3BYHJ3lc69Vs5Ddf9uUGGMYldX3Wf
MBEmh/9iFBDAaTCK
06-15 21:07:30.989 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
06-15 21:07:30.989 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.internal.view.WindowCallbackWrapper.onSearchRequested
06-15 21:07:30.989 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve interface method 14515: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
06-15 21:07:30.989 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x72 at 0x0002
06-15 21:07:30.999 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.internal.view.WindowCallbackWrapper.onWindowStartingActionMode
06-15 21:07:30.999 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve interface method 14519: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
06-15 21:07:30.999 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x72 at 0x0002
06-15 21:07:31.149 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.view.ViewGroup.onRtlPropertiesChanged, referenced from method android.support.v7.widget.Toolbar.onRtlPropertiesChanged
06-15 21:07:31.149 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 14410: Landroid/view/ViewGroup;.onRtlPropertiesChanged (I)V
06-15 21:07:31.149 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0007
06-15 21:07:31.149 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
06-15 21:07:31.149 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 573: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
06-15 21:07:31.149 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
06-15 21:07:31.149 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
06-15 21:07:31.149 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 595: Landroid/content/res/TypedArray;.getType (I)I
06-15 21:07:31.149 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
06-15 21:07:31.899 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.security.NetworkSecurityPolicy.getInstance, referenced from method dah.a
06-15 21:07:31.899 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve static method 1659: Landroid/security/NetworkSecurityPolicy;.getInstance ()Landroid/security/NetworkSecurityPolicy;
06-15 21:07:31.899 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x71 at 0x0072
06-15 21:07:31.949 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method iek.a
06-15 21:07:31.949 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 1063: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
06-15 21:07:31.949 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000d
06-15 21:07:31.959 9609-9609/com.google.example.gms.ads.nativeexpressexample E/dalvikvm﹕ Could not find class 'android.os.UserManager', referenced from method iek.s
06-15 21:07:31.959 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve check-cast 383 (Landroid/os/UserManager;) in Liek;
06-15 21:07:31.959 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x1f at 0x000e
06-15 21:07:32.129 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.app.Notification$Builder.setLocalOnly, referenced from method iei.a
06-15 21:07:32.129 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 792: Landroid/app/Notification$Builder;.setLocalOnly (Z)Landroid/app/Notification$Builder;
06-15 21:07:32.129 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x00f4
06-15 21:07:32.129 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ DexOpt: access denied from Liei; to field Landroid/app/Notification;.extras
06-15 21:07:32.129 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve instance field 521
06-15 21:07:32.129 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x54 at 0x0113
06-15 21:07:32.149 9609-9609/com.google.example.gms.ads.nativeexpressexample D/ChimeraCfgMgr﹕ Reading stored module config
06-15 21:07:32.289 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_64_BIT_ABIS
06-15 21:07:32.289 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve static field 612 (SUPPORTED_64_BIT_ABIS) in Landroid/os/Build;
06-15 21:07:32.289 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x62 at 0x0012
06-15 21:07:32.289 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_32_BIT_ABIS
06-15 21:07:32.289 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve static field 611 (SUPPORTED_32_BIT_ABIS) in Landroid/os/Build;
06-15 21:07:32.289 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x62 at 0x0021
06-15 21:07:32.289 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_64_BIT_ABIS
06-15 21:07:32.289 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve static field 612 (SUPPORTED_64_BIT_ABIS) in Landroid/os/Build;
06-15 21:07:32.289 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x62 at 0x0008
06-15 21:07:32.309 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_ABIS
06-15 21:07:32.309 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve static field 613 (SUPPORTED_ABIS) in Landroid/os/Build;
06-15 21:07:32.309 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x62 at 0x0008
06-15 21:07:32.329 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_64_BIT_ABIS
06-15 21:07:32.329 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ DexOpt: unable to optimize static field ref 0x0264 at 0x17 in Lcom/google/android/chimera/container/FileApkUtils;.getSupportedAbisForCurrentRuntime
06-15 21:07:32.329 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_32_BIT_ABIS
06-15 21:07:32.329 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ DexOpt: unable to optimize static field ref 0x0263 at 0x26 in Lcom/google/android/chimera/container/FileApkUtils;.getSupportedAbisForCurrentRuntime
06-15 21:07:32.329 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_64_BIT_ABIS
06-15 21:07:32.329 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ DexOpt: unable to optimize static field ref 0x0264 at 0x0d in Lcom/google/android/chimera/container/FileApkUtils;.is64BitRuntime
06-15 21:07:32.379 9609-9609/com.google.example.gms.ads.nativeexpressexample D/ChimeraFileApk﹕ Primary ABI of requesting process is armeabi-v7a
06-15 21:07:32.379 9609-9609/com.google.example.gms.ads.nativeexpressexample D/ChimeraFileApk﹕ Classloading successful, but code may not be optimized. It will either run in fallback (interpreted mode) or the odex has been found and isDexOptNeeded is misreporting a failure.
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.content.ContextWrapper.createDisplayContext, referenced from method com.google.android.chimera.ModuleContext.createDisplayContext
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 966: Landroid/content/ContextWrapper;.createDisplayContext (Landroid/view/Display;)Landroid/content/Context;
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0000
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.content.res.Resources.getColor, referenced from method com.google.android.chimera.container.internal.ModuleResources.getColor
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 1087: Landroid/content/res/Resources;.getColor (ILandroid/content/res/Resources$Theme;)I
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0006
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.content.res.Resources.getColor, referenced from method com.google.android.chimera.container.internal.ModuleResources.getColor
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 1087: Landroid/content/res/Resources;.getColor (ILandroid/content/res/Resources$Theme;)I
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000d
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.content.res.Resources.getColorStateList, referenced from method com.google.android.chimera.container.internal.ModuleResources.getColorStateList
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 1089: Landroid/content/res/Resources;.getColorStateList (ILandroid/content/res/Resources$Theme;)Landroid/content/res/ColorStateList;
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0006
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.content.res.Resources.getColorStateList, referenced from method com.google.android.chimera.container.internal.ModuleResources.getColorStateList
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 1089: Landroid/content/res/Resources;.getColorStateList (ILandroid/content/res/Resources$Theme;)Landroid/content/res/ColorStateList;
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000d
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.content.res.Resources.getDrawable, referenced from method com.google.android.chimera.container.internal.ModuleResources.getDrawable
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 1096: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0006
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.content.res.Resources.getDrawable, referenced from method com.google.android.chimera.container.internal.ModuleResources.getDrawable
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 1096: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000d
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method com.google.android.chimera.container.internal.ModuleResources.getDrawableForDensity
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 1098: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6f at 0x0006
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method com.google.android.chimera.container.internal.ModuleResources.getDrawableForDensity
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 1098: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
06-15 21:07:32.389 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000d
06-15 21:07:32.419 9609-9609/com.google.example.gms.ads.nativeexpressexample D/DynamitePackage﹕ Instantiated singleton DynamitePackage.
06-15 21:07:32.419 9609-9609/com.google.example.gms.ads.nativeexpressexample D/DynamitePackage﹕ Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
06-15 21:07:32.469 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.security.NetworkSecurityPolicy.getInstance, referenced from method aru.a
06-15 21:07:32.469 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve static method 2392: Landroid/security/NetworkSecurityPolicy;.getInstance ()Landroid/security/NetworkSecurityPolicy;
06-15 21:07:32.469 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x71 at 0x0072
06-15 21:07:32.499 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method brv.a
06-15 21:07:32.499 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 1971: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
06-15 21:07:32.499 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000e
06-15 21:07:32.499 9609-9609/com.google.example.gms.ads.nativeexpressexample E/dalvikvm﹕ Could not find class 'android.os.UserManager', referenced from method brv.a
06-15 21:07:32.499 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve check-cast 523 (Landroid/os/UserManager;) in Lbrv;
06-15 21:07:32.499 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x1f at 0x0040
06-15 21:07:32.499 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ DexOpt: couldn't find static field Lnx;.common_google_play_services_unknown_issue
06-15 21:07:32.499 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve static field 4140 (common_google_play_services_unknown_issue) in Lnx;
06-15 21:07:32.499 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x60 at 0x0012
06-15 21:07:32.569 9609-9663/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ DexOpt: couldn't find static field Lnx;.common_google_play_services_updating_text
06-15 21:07:32.569 9609-9663/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve static field 4146 (common_google_play_services_updating_text) in Lnx;
06-15 21:07:32.569 9609-9663/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x60 at 0x0021
06-15 21:07:32.569 9609-9663/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ DexOpt: couldn't find static field Lnx;.common_google_play_services_updating_title
06-15 21:07:32.569 9609-9663/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ DexOpt: unable to optimize static field ref 0x1033 at 0x2e in Lazx;.a
06-15 21:07:32.819 9609-9616/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Total arena pages for JIT: 11
06-15 21:07:32.819 9609-9616/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Total arena pages for JIT: 12
06-15 21:07:32.819 9609-9616/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Total arena pages for JIT: 13
06-15 21:07:32.819 9609-9616/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Total arena pages for JIT: 14
06-15 21:07:32.819 9609-9616/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Total arena pages for JIT: 15
06-15 21:07:32.819 9609-9616/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Total arena pages for JIT: 16
06-15 21:07:32.829 9609-9616/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Total arena pages for JIT: 17
06-15 21:07:32.879 9609-9609/com.google.example.gms.ads.nativeexpressexample I/webclipboard﹕ clipservice: android.sec.clipboard.ClipboardExManager#41ba3480
06-15 21:07:32.889 9609-9663/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method java.util.concurrent.ThreadLocalRandom.current, referenced from method ia.a
06-15 21:07:32.889 9609-9663/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve static method 8340: Ljava/util/concurrent/ThreadLocalRandom;.current ()Ljava/util/concurrent/ThreadLocalRandom;
06-15 21:07:32.889 9609-9663/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x71 at 0x0000
06-15 21:07:32.929 9609-9616/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Total arena pages for JIT: 18
06-15 21:07:33.249 9609-9609/com.google.example.gms.ads.nativeexpressexample I/Ads﹕ Starting ad request.
06-15 21:07:33.249 9609-9609/com.google.example.gms.ads.nativeexpressexample I/Ads﹕ Use AdRequest.Builder.addTestDevice("315EA0C5061DFD25EBB0E5BC28752424") to get test ads on this device.
06-15 21:07:33.849 9609-9672/com.google.example.gms.ads.nativeexpressexample V/webkit﹕ BrowserFrame constructor: this=Handler (android.webkit.BrowserFrame) {41b9fa18}
06-15 21:07:33.899 9609-9609/com.google.example.gms.ads.nativeexpressexample D/libEGL﹕ loaded /system/lib/egl/libEGL_adreno200.so
06-15 21:07:33.979 9609-9609/com.google.example.gms.ads.nativeexpressexample D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_adreno200.so
06-15 21:07:33.999 9609-9609/com.google.example.gms.ads.nativeexpressexample D/libEGL﹕ loaded /system/lib/egl/libGLESv2_adreno200.so
06-15 21:07:34.009 9609-9609/com.google.example.gms.ads.nativeexpressexample I/Adreno200-EGL﹕ <qeglDrvAPI_eglInitialize:299>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_REL_2.0.3.04.01.02.21.107_msm8625_JB_REL_2.0.3_CL3357771_release_AU (CL3357771)
Build Date: 02/25/13 Mon
Local Branch:
Remote Branch: quic/jb_rel_2.0.3
Local Patches: NONE
Reconstruct Branch: AU_LINUX_ANDROID_JB_REL_2.0.3.04.01.02.21.107 + NOTHING
06-15 21:07:34.499 9609-9609/com.google.example.gms.ads.nativeexpressexample D/OpenGLRenderer﹕ Enabling debug mode 0
06-15 21:07:36.979 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.webkit.WebSettings.setMixedContentMode, referenced from method avu.<init>
06-15 21:07:36.979 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 2662: Landroid/webkit/WebSettings;.setMixedContentMode (I)V
06-15 21:07:36.979 9609-9609/com.google.example.gms.ads.nativeexpressexample D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0057
06-15 21:07:36.989 9609-9609/com.google.example.gms.ads.nativeexpressexample I/dalvikvm﹕ Could not find method android.webkit.WebView.evaluateJavascript, referenced from method avu.evaluateJavascript
06-15 21:07:36.989 9609-9609/com.google.example.gms.ads.nativeexpressexample W/dalvikvm﹕ VFY: unable to resolve virtual method 2672: Landroid/webkit/WebView;.evaluateJavascript
The reason for this problem was there is not enough width on the screen to display native ads. When i removed the root Relative layout's margin left and margin right the ad started showing. In native ad Express we don't have much control over ad width that is the reason for this problem.
I've had Google Maps v2 up and running for months, no code has changed, and now every fragment with a MapFragment crashes when attached. (Building without proguard and signing with debug key)
I am guessing that it has to do with Play Services, because it appeared to work after re-installing the Play Services updates. But now it crashes again, even with re-installing. This occurs on two Samsung Note 8s, a Note 3, a Note 1, and a Nexus 5.
I have tried clean builds and regenerating the Maps API with a different Google APIs account.
I've included the necessary bits in my AndroidManifest:
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="#string/app_id_maps"/>
I include the following xml in the my fragment layouts:
<?xml version="1.0" encoding="utf-8"?>
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
android:id="#+id/map"
android:name="com.google.android.gms.maps.MapFragment"
map:mapType="normal"
map:uiCompass="true"
map:uiRotateGestures="true"
map:uiScrollGestures="true"
map:uiTiltGestures="true"
map:uiZoomControls="false"
map:uiZoomGestures="true"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
Logcat:
07-31 08:23:57.721 31926-31926/com.packagename I/u﹕ Making Creator dynamically
07-31 08:23:57.731 31926-31926/com.packagename I/Google Maps Android API﹕ Google Play services client version: 5077000
07-31 08:23:57.731 31926-31926/com.packagename I/dalvikvm﹕ Could not find method guj.a, referenced from method gqi.a
07-31 08:23:57.731 31926-31926/com.packagename W/dalvikvm﹕ VFY: unable to resolve static method 24936: Lguj;.a (Landroid/content/Context;)Lgri;
07-31 08:23:57.731 31926-31926/com.packagename D/dalvikvm﹕ VFY: replacing opcode 0x71 at 0x0003
07-31 08:23:57.731 31926-31926/com.packagename E/dalvikvm﹕ Could not find class 'gpr', referenced from method gps.a
07-31 08:23:57.731 31926-31926/com.packagename W/dalvikvm﹕ VFY: unable to resolve new-instance 4090 (Lgpr;) in Lgps;
07-31 08:23:57.731 31926-31926/com.packagename D/dalvikvm﹕ VFY: replacing opcode 0x22 at 0x0000
07-31 08:23:57.736 31926-31926/com.packagename E/dalvikvm﹕ Could not find class 'gpr', referenced from method gps.a
07-31 08:23:57.736 31926-31926/com.packagename W/dalvikvm﹕ VFY: unable to resolve new-instance 4090 (Lgpr;) in Lgps;
07-31 08:23:57.736 31926-31926/com.packagename D/dalvikvm﹕ VFY: replacing opcode 0x22 at 0x0000
07-31 08:23:57.736 31926-31926/com.packagename E/dalvikvm﹕ Could not find class 'gpr', referenced from method gps.a
07-31 08:23:57.736 31926-31926/com.packagename W/dalvikvm﹕ VFY: unable to resolve new-instance 4090 (Lgpr;) in Lgps;
07-31 08:23:57.736 31926-31926/com.packagename D/dalvikvm﹕ VFY: replacing opcode 0x22 at 0x0000
07-31 08:23:57.736 31926-31926/com.packagename D/dalvikvm﹕ DexOpt: unable to opt direct call 0x5ea3 at 0x0a in Lgps;.a
07-31 08:23:57.736 31926-31926/com.packagename D/dalvikvm﹕ DexOpt: unable to opt direct call 0x5ea3 at 0x0c in Lgps;.a
07-31 08:23:57.736 31926-31926/com.packagename D/dalvikvm﹕ DexOpt: unable to opt direct call 0x5ea3 at 0x0a in Lgps;.a
07-31 08:23:57.741 31926-31926/com.packagename I/Google Maps Android API﹕ Google Play services package version: 5084030
07-31 08:23:57.746 31926-31926/com.packagename W/dalvikvm﹕ VFY: unable to resolve static field 20873 (t) in Lyp;
07-31 08:23:57.746 31926-31926/com.packagename D/dalvikvm﹕ VFY: replacing opcode 0x62 at 0x000e
07-31 08:23:57.746 31926-31926/com.packagename W/dalvikvm﹕ VFY: unable to resolve static field 20873 (t) in Lyp;
07-31 08:23:57.746 31926-31926/com.packagename D/dalvikvm﹕ VFY: replacing opcode 0x62 at 0x000d
07-31 08:23:57.846 31926-31926/com.packagename I/dalvikvm﹕ Failed resolving Lcom/google/android/gms/location/internal/ParcelableGeofence; interface 4023 'Lgln;'
07-31 08:23:57.846 31926-31926/com.packagename W/dalvikvm﹕ Link of class 'Lcom/google/android/gms/location/internal/ParcelableGeofence;' failed
07-31 08:23:57.846 31926-31926/com.packagename E/dalvikvm﹕ Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence', referenced from method glt.a
07-31 08:23:57.846 31926-31926/com.packagename W/dalvikvm﹕ VFY: unable to resolve check-cast 2086 (Lcom/google/android/gms/location/internal/ParcelableGeofence;) in Lglt;
07-31 08:23:57.846 31926-31926/com.packagename D/dalvikvm﹕ VFY: replacing opcode 0x1f at 0x0019
07-31 08:23:57.886 31926-31926/com.packagename D/dalvikvm﹕ GC_FOR_ALLOC freed 3142K, 31% free 10122K/14616K, paused 19ms, total 19ms
07-31 08:23:57.901 31926-31926/com.packagename D/AbsListView﹕ Get MotionRecognitionManager
07-31 08:23:57.916 31926-32063/com.packagename A/libc﹕ Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 32063 (DataRequestDisp)
07-31 08:23:57.921 31926-31926/com.packagename D/ProgressBar﹕ setProgressDrawable drawableHeight = 0
07-31 08:23:57.921 31926-31926/com.packagename D/AbsSeekBar﹕ AbsSeekBar Constructor: misSeebarAnimationAvailable = false
07-31 08:23:57.956 31926-31926/com.packagename W/GmsClientEvents﹕ registerConnectionCallbacks(): listener com.google.android.gms.internal.hc$c#429b29d0 is already registered
07-31 08:23:58.011 31926-31926/com.packagename D/ProgressBar﹕ updateDrawableBounds: left = 0
07-31 08:23:58.011 31926-31926/com.packagename D/ProgressBar﹕ updateDrawableBounds: top = 0
07-31 08:23:58.011 31926-31926/com.packagename D/ProgressBar﹕ updateDrawableBounds: right = 64
07-31 08:23:58.011 31926-31926/com.packagename D/ProgressBar﹕ updateDrawableBounds: bottom = 64
On Samsung devices I also get this stacktrace:
07-31 08:23:57.656 31926-31926/com.packagename W/dalvikvm﹕ No implementation found for native Ldalvik/system/VMRuntime;.pauseGc:(Ljava/lang/String;)I
07-31 08:23:57.661 31926-31926/com.packagename E/ActivityThread﹕ Pause GC
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at android.app.ActivityThread.pauseGC(ActivityThread.java:5410)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2277)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2392)
at android.app.ActivityThread.access$900(ActivityThread.java:169)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1280)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5487)
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:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.UnsatisfiedLinkError: Native method not found: dalvik.system.VMRuntime.pauseGc:(Ljava/lang/String;)I
at dalvik.system.VMRuntime.pauseGc(Native Method)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at android.app.ActivityThread.pauseGC(ActivityThread.java:5410)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2277)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2392)
at android.app.ActivityThread.access$900(ActivityThread.java:169)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1280)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5487)
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:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)