I am concerned what the System warning in my android app means.
ch.ethz.inf.vs.a4.minker.einz W/System: ClassLoader referenced unknown path: /data/app/ch.ethz.inf.vs.a4.minker.einz-1/lib/arm64
This warning comes up when I run the app and then don't do anything - just displaying the main Activity. The app does not crash, but I'd like to know why these warnings are showing up.
This is the complete logcat when I run the application on my Sony Xperia device, but the Emulator creates similar logs.
11-25 17:02:48.261 27908-27908/ch.ethz.inf.vs.a4.minker.einz I/art: Late-
enabling -Xcheck:jni
11-25 17:02:48.295 27908-27908/ch.ethz.inf.vs.a4.minker.einz W/System: ClassLoader referenced unknown path: /data/app/ch.ethz.inf.vs.a4.minker.einz-1/lib/arm64
11-25 17:02:48.319 27908-27908/ch.ethz.inf.vs.a4.minker.einz W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
11-25 17:02:48.400 27908-27936/ch.ethz.inf.vs.a4.minker.einz I/Adreno: QUALCOMM build : ce5aeb9, I750f7f2fa6
Build Date : 03/24/17
OpenGL ES Shader Compiler Version: XE031.09.00.03
Local Branch :
Remote Branch : quic/LA.BF64.1.2.3_rb1.11
Remote Branch : NONE
Reconstruct Branch : NOTHING
11-25 17:02:48.405 27908-27936/ch.ethz.inf.vs.a4.minker.einz I/OpenGLRenderer: Initialized EGL, version 1.4
11-25 17:02:48.406 27908-27936/ch.ethz.inf.vs.a4.minker.einz D/OpenGLRenderer: Swap behavior 1
11-25 17:02:48.435 27908-27908/ch.ethz.inf.vs.a4.minker.einz I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#d84f7af time:215890379
Log on Emulator (Nexus 5 API 23 (Android 6.0, API23))
11-25 16:18:02.052 16216-16216/? I/art: Not late-enabling -Xcheck:jni (already on)
11-25 16:18:02.092 16216-16216/ch.ethz.inf.vs.a4.minker.einz W/System: ClassLoader referenced unknown path: /data/app/ch.ethz.inf.vs.a4.minker.einz-1/lib/x86
11-25 16:18:02.105 16216-16216/ch.ethz.inf.vs.a4.minker.einz W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
11-25 16:18:02.141 16216-16241/ch.ethz.inf.vs.a4.minker.einz D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
[ 11-25 16:18:02.153 16216:16216 D/ ]
HostConnection::get() New Host Connection established 0xab1a4140, tid 16216
11-25 16:18:02.227 16216-16241/ch.ethz.inf.vs.a4.minker.einz I/OpenGLRenderer: Initialized EGL, version 1.4
11-25 16:18:02.227 16216-16241/ch.ethz.inf.vs.a4.minker.einz W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
11-25 16:18:02.285 16216-16241/ch.ethz.inf.vs.a4.minker.einz D/EGL_emulation: eglCreateContext: 0xaee144e0: maj 3 min 1 rcv 4
11-25 16:18:02.298 16216-16241/ch.ethz.inf.vs.a4.minker.einz D/EGL_emulation: eglMakeCurrent: 0xaee144e0: ver 3 1 (tinfo 0xaee126f0)
11-25 16:18:02.299 16216-16241/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da
11-25 16:18:02.299 16216-16241/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
11-25 16:18:02.299 16216-16241/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
11-25 16:18:02.370 16216-16241/ch.ethz.inf.vs.a4.minker.einz D/EGL_emulation: eglMakeCurrent: 0xaee144e0: ver 3 1 (tinfo 0xaee126f0)
Log on Emulator Nexus 5X API 26 x86 (Android 8.0.0, API 26)
11-25 16:19:22.549 6786-6786/? I/zygote: Not late-enabling -Xcheck:jni (already on)
11-25 16:19:22.560 6786-6786/? W/zygote: Unexpected CPU variant for X86 using defaults: x86
11-25 16:19:22.730 6786-6804/ch.ethz.inf.vs.a4.minker.einz D/OpenGLRenderer: HWUI GL Pipeline
11-25 16:19:22.773 6786-6804/ch.ethz.inf.vs.a4.minker.einz I/OpenGLRenderer: Initialized EGL, version 1.4
11-25 16:19:22.773 6786-6804/ch.ethz.inf.vs.a4.minker.einz D/OpenGLRenderer: Swap behavior 1
11-25 16:19:22.773 6786-6804/ch.ethz.inf.vs.a4.minker.einz W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
11-25 16:19:22.773 6786-6804/ch.ethz.inf.vs.a4.minker.einz D/OpenGLRenderer: Swap behavior 0
11-25 16:19:22.783 6786-6804/ch.ethz.inf.vs.a4.minker.einz D/EGL_emulation: eglCreateContext: 0x989fda40: maj 3 min 1 rcv 4
11-25 16:19:22.811 6786-6804/ch.ethz.inf.vs.a4.minker.einz D/EGL_emulation: eglMakeCurrent: 0x989fda40: ver 3 1 (tinfo 0xa4a8b850)
11-25 16:19:22.812 6786-6804/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da
11-25 16:19:22.812 6786-6804/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da
11-25 16:19:22.812 6786-6804/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
11-25 16:19:22.812 6786-6804/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
11-25 16:19:22.812 6786-6804/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
11-25 16:19:22.812 6786-6804/ch.ethz.inf.vs.a4.minker.einz E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
11-25 16:19:22.884 6786-6804/ch.ethz.inf.vs.a4.minker.einz D/EGL_emulation: eglMakeCurrent: 0x989fda40: ver 3 1 (tinfo 0xa4a8b850)
This answer mentioned disabling instantRun, which I have already done because of my version of IntelliJ not supporting the latest version of gradle yet (last time I checked with support). It also mentions WiFi, but that doesn't seem to make a difference.
This answer mentions clearing app cache and data, but this also does not make a difference.
It might be worth mentioning that the first time I run the app, IntelliJ shows the following error in the logcat. This happens both on the emulator and my real device. With "the first time", I mean that it does not show the error when I click run again and select "restart app". This behaviour is not 100% consistent though.
11-25 16:14:41.358 14185-14185/? I/art: Not late-enabling -Xcheck:jni (already on)
11-25 16:14:41.371 14185-14189/? E/art: Failed sending reply to debugger: Broken pipe
11-25 16:14:41.371 14185-14189/? I/art: Debugger is no longer active
11-25 16:14:41.403 14185-14185/? W/System: ClassLoader referenced unknown path: /data/app/ch.ethz.inf.vs.a4.minker.einz-2/lib/x86
What could be reasons for these warnings? I am afraid that if I ignore them, I will at some point spend days debugging only to find out that these warnings would have told me.
you need to set the flag of intent.
Intent intent = new Intent(context,Route.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
Related
I have created a google map activity in android studio. I have also generated an api key from the link given and placed it in the appropriate place. But when I run the app it crashes without displaying anything. Here is the logcat
2018-12-19 16:13:00.080 17295-17295/? I/ik7.locationap: Not late-enabling -Xcheck:jni (already on)
2018-12-19 16:13:00.312 17295-17295/? W/ik7.locationap: Unexpected CPU variant for X86 using defaults: x86
2018-12-19 16:13:00.667 17295-17295/com.example.nik7.locationapp W/ik7.locationap: JIT profile information will not be recorded: profile file does not exits.
2018-12-19 16:13:00.669 17295-17295/com.example.nik7.locationapp I/chatty: uid=10087(com.example.nik7.locationapp) identical 10 lines
2018-12-19 16:13:00.670 17295-17295/com.example.nik7.locationapp W/ik7.locationap: JIT profile information will not be recorded: profile file does not exits.
2018-12-19 16:13:00.733 17295-17295/com.example.nik7.locationapp I/InstantRun: starting instant run server: is main process
2018-12-19 16:13:01.001 17295-17295/com.example.nik7.locationapp I/zzbz: Making Creator dynamically
2018-12-19 16:13:01.022 17295-17295/com.example.nik7.locationapp W/ik7.locationap: Unsupported class loader
2018-12-19 16:13:01.023 17295-17295/com.example.nik7.locationapp W/ik7.locationap: Skipping duplicate class check due to unsupported classloader
2018-12-19 16:13:01.033 17295-17295/com.example.nik7.locationapp I/DynamiteModule: Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:221
2018-12-19 16:13:01.033 17295-17295/com.example.nik7.locationapp I/DynamiteModule: Selected remote version of com.google.android.gms.maps_dynamite, version >= 221
2018-12-19 16:13:01.033 17295-17295/com.example.nik7.locationapp V/DynamiteModule: Dynamite loader version >= 2, using loadModule2NoCrashUtils
2018-12-19 16:13:01.113 17295-17295/com.example.nik7.locationapp W/ik7.locationap: Unsupported class loader
2018-12-19 16:13:01.131 17295-17295/com.example.nik7.locationapp W/ik7.locationap: Skipping duplicate class check due to unsupported classloader
2018-12-19 16:13:01.180 17295-17295/com.example.nik7.locationapp I/Google Maps Android API: Google Play services client version: 12451000
2018-12-19 16:13:01.192 17295-17295/com.example.nik7.locationapp I/Google Maps Android API: Google Play services package version: 14799040
2018-12-19 16:13:01.319 17295-17295/com.example.nik7.locationapp W/ik7.locationap: Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection)
2018-12-19 16:13:01.712 17295-17295/com.example.nik7.locationapp D/OpenGLRenderer: HWUI GL Pipeline
2018-12-19 16:13:01.877 17295-17341/com.example.nik7.locationapp I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2018-12-19 16:13:01.878 17295-17341/com.example.nik7.locationapp I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2018-12-19 16:13:01.878 17295-17341/com.example.nik7.locationapp I/OpenGLRenderer: Initialized EGL, version 1.4
2018-12-19 16:13:01.878 17295-17341/com.example.nik7.locationapp D/OpenGLRenderer: Swap behavior 1
2018-12-19 16:13:01.883 17295-17341/com.example.nik7.locationapp W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2018-12-19 16:13:01.883 17295-17341/com.example.nik7.locationapp D/OpenGLRenderer: Swap behavior 0
2018-12-19 16:13:01.907 17295-17341/com.example.nik7.locationapp D/EGL_emulation: eglCreateContext: 0xe8310280: maj 2 min 0 rcv 2
2018-12-19 16:13:01.913 17295-17341/com.example.nik7.locationapp D/EGL_emulation: eglMakeCurrent: 0xe8310280: ver 2 0 (tinfo 0xe7093fa0)
2018-12-19 16:13:02.025 17295-17341/com.example.nik7.locationapp D/EGL_emulation: eglMakeCurrent: 0xe8310280: ver 2 0 (tinfo 0xe7093fa0)
2018-12-19 16:13:02.034 17295-17338/com.example.nik7.locationapp D/EGL_emulation: eglCreateContext: 0xe9d05f00: maj 1 min 0 rcv 1
2018-12-19 16:13:02.229 17295-17338/com.example.nik7.locationapp D/EGL_emulation: eglMakeCurrent: 0xe9d05f00: ver 1 0 (tinfo 0xe9d03470)
2018-12-19 16:13:02.564 17295-17319/com.example.nik7.locationapp D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2018-12-19 16:13:03.305 17295-17319/com.example.nik7.locationapp E/AndroidRuntime: FATAL EXCEPTION: Thread-6
Process: com.example.nik7.locationapp, PID: 17295
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/ProtocolVersion;
at ez.b(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):3)
at ey.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):3)
at fa.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):15)
at com.google.maps.api.android.lib6.drd.al.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):6)
at ed.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):21)
at ed.run(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):8)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.ProtocolVersion" on path: DexPathList[[zip file "/data/user_de/0/com.google.android.gms/app_chimera/m/00000015/MapsDynamite.apk"],nativeLibraryDirectories=[/data/user_de/0/com.google.android.gms/app_chimera/m/00000015/MapsDynamite.apk!/lib/x86, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at ad.loadClass(:com.google.android.gms.dynamite_dynamiteloader#14799084#14.7.99 (100700-223214910):4)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at ez.b(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):3)
at ey.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):3)
at fa.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):15)
at com.google.maps.api.android.lib6.drd.al.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):6)
at ed.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):21)
at ed.run(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):8)
2018-12-19 16:13:03.338 17295-17295/com.example.nik7.locationapp E/SchedPolicy: set_timerslack_ns write failed: Operation not permitted
2018-12-19 16:13:03.379 17295-17319/com.example.nik7.locationapp I/Process: Sending signal. PID: 17295 SIG: 9
This is the compelte log.I have even tried by removing the restrictions but that didn't work. Whats the issue here. I have also seledted api 23 marshmallow. I have done nothing except entering the api key in its place
EDIT: I also included the key in the manifest but still the app is crashing
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="YOUR_API_KEY"/>
EDIT:
Seems to be an issue in API 28
To fix it add this code under application in your manifest file:
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
Its probably because you dont have google play services installed. If you ran the app on your actual phone it would work just fine.
To fix it, you either add this line of code inside the in the manifest
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
Or
to upgrade your play-services-maps in build.gradle to
implementation 'com.google.android.gms:play-services-maps:16.1.0'
That worked for me
I have an android studio project where I am using a map view fragment. In my old project, it worked well and displayed a map, but in my new one, the map is just blank (grey). Even the google logo is missing on the map.
Here is my logcat error log:
2018-11-16 13:14:20.286 1627-5883/system_process I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=mls.client/.clientviews.MapActivity (has extras)} from uid 10020 on display 0
--------- beginning of main
2018-11-16 13:14:20.290 1372-1392/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 4547748 , only wrote 4547520
2018-11-16 13:14:20.303 6528-6528/? I/art: Not late-enabling -Xcheck:jni (already on)
2018-11-16 13:14:20.303 6528-6528/? W/art: Unexpected CPU variant for X86 using defaults: x86
2018-11-16 13:14:20.310 1627-1639/system_process I/ActivityManager: Start proc 6528:mls.client/u0a83 for activity mls.client/.clientviews.MapActivity
2018-11-16 13:14:20.330 1307-1323/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 1536000
2018-11-16 13:14:20.363 2148-2359/com.android.launcher3 D/EGL_emulation: eglMakeCurrent: 0x9fae0980: ver 3 0 (tinfo 0xa0d57ee0)
2018-11-16 13:14:20.500 6528-6528/mls.client W/System: ClassLoader referenced unknown path: /data/app/mls.client-1/lib/x86
2018-11-16 13:14:20.532 6528-6528/mls.client I/InstantRun: starting instant run server: is main process
2018-11-16 13:14:20.540 6528-6544/mls.client I/GMPM: App measurement is starting up
2018-11-16 13:14:20.545 6528-6544/mls.client E/GMPM: getGoogleAppId failed with status: 10
2018-11-16 13:14:20.546 6528-6544/mls.client E/GMPM: Uploading is not possible. App measurement disabled
2018-11-16 13:14:20.609 6528-6528/mls.client I/zzy: Making Creator dynamically
2018-11-16 13:14:20.614 6528-6528/mls.client W/System: ClassLoader referenced unknown path: /system/priv-app/PrebuiltGmsCore/lib/x86
2018-11-16 13:14:20.621 6528-6528/mls.client W/System: ClassLoader referenced unknown path:
2018-11-16 13:14:20.621 6528-6528/mls.client W/System: ClassLoader referenced unknown path: /system/priv-app/PrebuiltGmsCore/lib/x86
2018-11-16 13:14:20.664 6528-6528/mls.client I/Google Maps Android API: Google Play services client version: 8298000
2018-11-16 13:14:20.667 6528-6528/mls.client I/Google Maps Android API: Google Play services package version: 12874026
2018-11-16 13:14:20.706 6528-6528/mls.client E/art: The String#value field is not present on Android versions >= 6.0
2018-11-16 13:14:20.832 6528-6557/mls.client D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2018-11-16 13:14:20.899 1627-1741/system_process I/ActivityManager: START u0 {act=android.content.pm.action.REQUEST_PERMISSIONS pkg=com.google.android.packageinstaller cmp=com.google.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity (has extras)} from uid 10083 on display 0
2018-11-16 13:14:20.910 1307-1355/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
2018-11-16 13:14:20.982 6528-6584/mls.client I/OpenGLRenderer: Initialized EGL, version 1.4
2018-11-16 13:14:20.982 6528-6584/mls.client D/OpenGLRenderer: Swap behavior 1
2018-11-16 13:14:20.982 6528-6584/mls.client W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2018-11-16 13:14:20.982 6528-6584/mls.client D/OpenGLRenderer: Swap behavior 0
2018-11-16 13:14:20.986 6528-6584/mls.client D/EGL_emulation: eglCreateContext: 0xa3586320: maj 3 min 0 rcv 3
2018-11-16 13:14:20.989 6528-6584/mls.client D/EGL_emulation: eglMakeCurrent: 0xa3586320: ver 3 0 (tinfo 0xa3583ae0)
2018-11-16 13:14:20.990 6528-6584/mls.client E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
2018-11-16 13:14:20.991 6528-6584/mls.client E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
2018-11-16 13:14:21.015 6528-6528/mls.client W/art: Before Android 4.1, method int android.support.v7.internal.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
2018-11-16 13:14:21.024 6528-6584/mls.client D/EGL_emulation: eglMakeCurrent: 0xa3586320: ver 3 0 (tinfo 0xa3583ae0)
2018-11-16 13:14:21.099 1627-1813/system_process I/WindowManager: Destroying surface Surface(name=com.android.launcher3/com.android.launcher3.Launcher) called by com.android.server.wm.WindowStateAnimator.destroySurface:2016 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:882 com.android.server.wm.WindowState.destroyOrSaveSurface:2100 com.android.server.wm.AppWindowToken.destroySurfaces:363 com.android.server.wm.AppWindowToken.notifyAppStopped:389 com.android.server.wm.WindowManagerService.notifyAppStopped:4463 com.android.server.am.ActivityStack.activityStoppedLocked:1252 com.android.server.am.ActivityManagerService.activityStopped:6903
2018-11-16 13:14:21.109 1627-5883/system_process I/GnssLocationProvider: WakeLock acquired by sendMessage(3, 0, com.android.server.location.GnssLocationProvider$GpsRequest#88ac655)
2018-11-16 13:14:21.109 1627-1640/system_process I/GnssLocationProvider: WakeLock released by handleMessage(3, 0, com.android.server.location.GnssLocationProvider$GpsRequest#88ac655)
2018-11-16 13:14:21.111 1715-1906/com.android.systemui D/EGL_emulation: eglMakeCurrent: 0xa3585780: ver 3 0 (tinfo 0xa3583730)
2018-11-16 13:14:21.297 1627-1648/system_process I/WindowManager: Destroying surface Surface(name=Starting mls.client) called by com.android.server.wm.WindowStateAnimator.destroySurface:2016 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:882 com.android.server.wm.WindowState.destroyOrSaveSurface:2100 com.android.server.wm.AppWindowToken.destroySurfaces:363 com.android.server.wm.WindowStateAnimator.finishExit:565 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:491 com.android.server.wm.WindowAnimator.updateWindowsLocked:303 com.android.server.wm.WindowAnimator.animateLocked:704
2018-11-16 13:14:22.871 6528-6581/mls.client W/DynamiteModule: Local module descriptor class for com.google.android.gms.googlecertificates not found.
2018-11-16 13:14:22.871 6528-6581/mls.client W/DynamiteModule: Failed to load module via V2: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.dynamite.DynamiteModule$DynamiteLoaderClassLoader" on path: DexPathList[[zip file "/data/app/mls.client-1/base.apk", zip file "/data/app/mls.client-1/split_lib_dependencies_apk.apk", zip file "/data/app/mls.client-1/split_lib_slice_0_apk.apk", zip file "/data/app/mls.client-1/split_lib_slice_1_apk.apk", zip file "/data/app/mls.client-1/split_lib_slice_2_apk.apk", zip file "/data/app/mls.client-1/split_lib_slice_3_apk.apk", zip file "/data/app/mls.client-1/split_lib_slice_4_apk.apk", zip file "/data/app/mls.client-1/split_lib_slice_5_apk.apk", zip file "/data/app/mls.client-1/split_lib_slice_6_apk.apk", zip file "/data/app/mls.client-1/split_lib_slice_7_apk.apk", zip file "/data/app/mls.client-1/split_lib_slice_8_apk.apk", zip file "/data/app/mls.client-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/mls.client-1/lib/x86, /system/lib, /vendor/lib]]
2018-11-16 13:14:22.875 6528-6581/mls.client I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:4
2018-11-16 13:14:22.875 6528-6581/mls.client I/DynamiteModule: Selected remote version of com.google.android.gms.googlecertificates, version >= 4
2018-11-16 13:14:23.516 1372-1393/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 4855373 , only wrote 4702320
Any idea what is going wrong with my MapView?
if you need more info or code, please write me.
Thanks.
You need to check if the Google Maps Android API is enabled in your Developer's Console. If it is, check if you put the Android API Key in the google_maps_api.xml
go to https://console.cloud.google.com/apis/credentials
update Application restrictions with used domains and API restrictions with used API.
the changes takes more than 5 mins to reflect
Here i am facing a problem like, Sometime app is perfectly installing and running in all versions of mobiles but sometimes it is showing App not installing Error Please help any one.
here i am using a toolbar in my activity.xml file like below is it effect my app in the above scenario.
android:id="#+id/tlbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#5F9EA0"
tools:targetApi="lollipop"></Toolbar>
Here is my log:
03-05 10:58:50.162 3718-3718/? E/libprocessgroup: failed to make and chown /acct/uid_10058: Read-only file system
03-05 10:58:50.162 3718-3718/? W/Zygote: createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?
03-05 10:58:50.162 3718-3718/? I/art: Not late-enabling -Xcheck:jni (already on)
03-05 10:58:50.273 3718-3718/com.example.lenovo.trainapp W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
03-05 10:58:50.472 3718-3731/com.example.lenovo.trainapp I/art: Background sticky concurrent mark sweep GC freed 3169(275KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 28MB/28MB, paused 2.107ms total 162.384ms
03-05 10:58:50.861 3718-3736/com.example.lenovo.trainapp D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
[ 03-05 10:58:50.863 3718: 3718 D/ ]
HostConnection::get() New Host Connection established 0xb437b290, tid 3718
03-05 10:58:50.873 3718-3718/com.example.lenovo.trainapp D/Atlas: Validating map...
03-05 10:58:51.287 3718-3736/com.example.lenovo.trainapp I/OpenGLRenderer: Initialized EGL, version 1.4
03-05 10:58:51.317 3718-3736/com.example.lenovo.trainapp D/EGL_emulation: eglCreateContext: 0xae834820: maj 2 min 0 rcv 2
03-05 10:58:51.333 3718-3736/com.example.lenovo.trainapp D/EGL_emulation: eglMakeCurrent: 0xae834820: ver 2 0
03-05 10:58:51.377 3718-3736/com.example.lenovo.trainapp D/OpenGLRenderer: Enabling debug mode 0
03-05 10:58:51.465 3718-3736/com.example.lenovo.trainapp D/EGL_emulation: eglMakeCurrent: 0xae834820: ver 2 0
03-05 10:58:51.542 3718-3718/com.example.lenovo.trainapp I/Choreographer: Skipped 37 frames! The application may be doing too much work on its main thread.
03-05 10:58:52.708 3718-3718/com.example.lenovo.trainapp I/Choreographer: Skipped 68 frames! The application may be doing too much work on its main thread.
I have an adview in one of my activitites. When I go to this activity, I get a dialog on the emulator telling me Chrome has stopped and the ad doesn't show anything.
I've checked over the code itself and I'm fairly sure it matches what it should -
Activity.xml
<com.google.android.gms.ads.AdView
android:id="#+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
ads:adSize="BANNER"
ads:adUnitId="#string/banner_ad_unit_id"></com.google.android.gms.ads.AdView>
Activity.java
mAdView = (AdView) findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
Here is the logcat -
09-08 09:26:47.779 5777-5777/? D/EGL_emulation: eglCreateContext: 0x872ca5e0: maj 2 min 0 rcv 2
09-08 09:26:47.783 5777-5777/? D/EGL_emulation: eglMakeCurrent: 0x872ca5e0: ver 2 0 (tinfo 0x8379e7b0)
09-08 09:26:47.784 5892-5892/? E/asset: setgid: Operation not permitted
09-08 09:26:47.795 5878-5878/? W/ResourceType: Entry identifier 0xc is larger than entry count 0x8
09-08 09:26:47.795 5878-5878/? D/AndroidRuntime: Shutting down VM
09-08 09:26:47.795 5878-5878/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.android.chrome:sandboxed_process0, PID: 5878
android.content.res.Resources$NotFoundException: Array resource ID #0x7f03000c
at android.content.res.Resources.obtainTypedArray(Resources.java:617)
at android.content.res.Resources.preloadFonts(Resources.java:379)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5815)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.WebViewZygoteInit.main(WebViewZygoteInit.java:121)
09-08 09:26:47.799 1584-1600/? I/ActivityManager: Showing crash dialog for package com.androidandyuk.autobuddy u0
09-08 09:26:47.825 1357-1357/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
09-08 09:26:47.826 1584-2280/? I/OpenGLRenderer: Initialized EGL, version 1.4
09-08 09:26:47.826 1584-2280/? D/OpenGLRenderer: Swap behavior 1
09-08 09:26:47.826 1584-2280/? W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
09-08 09:26:47.826 1584-2280/? D/OpenGLRenderer: Swap behavior 0
09-08 09:26:47.842 1357-1357/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
09-08 09:26:47.842 1584-2280/? D/EGL_emulation: eglCreateContext: 0xa44a4be0: maj 2 min 0 rcv 2
09-08 09:26:47.848 1357-1357/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 4096
09-08 09:26:47.849 1584-2280/? D/EGL_emulation: eglMakeCurrent: 0xa44a4be0: ver 2 0 (tinfo
On my Pixel XL, it doesn't crash, but no ad is shown, so I guess something isn't right?
We had the same crash in our app. A temporary solution was to disable the use of the preloaded_fonts tag in AndroidManifest.xml.
There appears to be a bug in Android 8.0 Oreo at present as this does not happen in earlier API's.
This question already has answers here:
What is a NullPointerException, and how do I fix it?
(12 answers)
Closed 5 years ago.
I just finished a project in android studio and I have a problem here. When generating the application and installing on the smartphone (android nougat 7.1.1 oneplus3) it simply aborts. In the emulator it gives the message that the application stops and aborts. I need the help of you more experienced. I'm a beginner. Here's the LOGCAT lines below when you try to open the application:
08-16 13:51:44.610 13313-13313/agdesenvolvimentoweb.projetopiloto I/art: Not late-enabling -Xcheck:jni (already on)
08-16 13:51:44.610 13313-13313/agdesenvolvimentoweb.projetopiloto W/art: Unexpected CPU variant for X86 using defaults: x86_64
08-16 13:51:45.249 13313-13313/agdesenvolvimentoweb.projetopiloto W/System: ClassLoader referenced unknown path: /data/app/agdesenvolvimentoweb.projetopiloto-1/lib/x86_64
08-16 13:51:45.281 13313-13313/agdesenvolvimentoweb.projetopiloto I/InstantRun: starting instant run server: is main process
08-16 13:51:45.576 13313-13313/agdesenvolvimentoweb.projetopiloto W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
08-16 13:51:45.647 13313-13313/agdesenvolvimentoweb.projetopiloto W/System: ClassLoader referenced unknown path: /system/app/Chrome/lib/x86_64
08-16 13:51:45.648 13313-13313/agdesenvolvimentoweb.projetopiloto D/ApplicationLoaders: ignored Vulkan layer search path /system/app/Chrome/lib/x86_64:/system/app/Chrome/Chrome.apk!/lib/x86_64:/system/lib64:/vendor/lib64 for namespace 0x7fcbeb8400f0
08-16 13:51:45.650 13313-13313/agdesenvolvimentoweb.projetopiloto I/WebViewFactory: Loading com.android.chrome version 55.0.2883.91 (code 288309162)
08-16 13:51:45.670 13313-13313/agdesenvolvimentoweb.projetopiloto I/cr_LibraryLoader: Time to load native libraries: 2 ms (timestamps 9774-9776)
08-16 13:51:45.670 13313-13313/agdesenvolvimentoweb.projetopiloto I/cr_LibraryLoader: Expected native library version number "55.0.2883.91", actual native library version number "55.0.2883.91"
08-16 13:51:45.678 13313-13313/agdesenvolvimentoweb.projetopiloto I/cr_LibraryLoader: Expected native library version number "55.0.2883.91", actual native library version number "55.0.2883.91"
08-16 13:51:45.678 13313-13313/agdesenvolvimentoweb.projetopiloto I/chromium: [INFO:library_loader_hooks.cc(163)] Chromium logging enabled: level = 0, default verbosity = 0
08-16 13:51:45.683 13313-13313/agdesenvolvimentoweb.projetopiloto I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
[ 08-16 13:51:45.692 13313:13313 D/ ]
HostConnection::get() New Host Connection established 0x7fcbd18d6000, tid 13313
[ 08-16 13:51:45.694 13313:13313 W/ ]
Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1
08-16 13:51:45.696 13313-13313/agdesenvolvimentoweb.projetopiloto D/EGL_emulation: eglCreateContext: 0x7fcbde5c12a0: maj 2 min 0 rcv 2
08-16 13:51:45.697 13313-13313/agdesenvolvimentoweb.projetopiloto D/EGL_emulation: eglMakeCurrent: 0x7fcbde5c12a0: ver 2 0 (tinfo 0x7fcbd18f1c20)
08-16 13:51:45.798 13313-13359/agdesenvolvimentoweb.projetopiloto W/cr_media: Requires BLUETOOTH permission
08-16 13:51:45.807 13313-13313/agdesenvolvimentoweb.projetopiloto I/cr_Ime: ImeThread is enabled.
08-16 13:51:45.885 13313-13368/agdesenvolvimentoweb.projetopiloto I/OpenGLRenderer: Initialized EGL, version 1.4
08-16 13:51:45.885 13313-13368/agdesenvolvimentoweb.projetopiloto D/OpenGLRenderer: Swap behavior 1
[ 08-16 13:51:45.885 13313:13368 D/ ]
HostConnection::get() New Host Connection established 0x7fcbcdea13c0, tid 13368
[ 08-16 13:51:45.888 13313:13368 W/ ]
Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1
08-16 13:51:45.892 13313-13368/agdesenvolvimentoweb.projetopiloto D/EGL_emulation: eglCreateContext: 0x7fcbcdf532c0: maj 2 min 0 rcv 2
08-16 13:51:45.904 13313-13368/agdesenvolvimentoweb.projetopiloto D/EGL_emulation: eglMakeCurrent: 0x7fcbcdf532c0: ver 2 0 (tinfo 0x7fcbcdfb3920)
08-16 13:51:45.979 13313-13374/agdesenvolvimentoweb.projetopiloto E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)
[ 08-16 13:51:45.980 13313:13374 D/ ]
HostConnection::get() New Host Connection established 0x7fcbcd52f2e0, tid 13374
[ 08-16 13:51:45.982 13313:13374 W/ ]
Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1
08-16 13:51:45.995 13313-13374/agdesenvolvimentoweb.projetopiloto D/EGL_emulation: eglCreateContext: 0x7fcbcdf55ca0: maj 2 min 0 rcv 2
08-16 13:51:45.998 13313-13374/agdesenvolvimentoweb.projetopiloto D/EGL_emulation: eglMakeCurrent: 0x7fcbcdf55ca0: ver 2 0 (tinfo 0x7fcbcd54d900)
08-16 13:51:46.018 13313-13313/agdesenvolvimentoweb.projetopiloto W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
08-16 13:51:46.050 13313-13313/agdesenvolvimentoweb.projetopiloto W/art: Attempt to remove non-JNI local reference, dumping thread
08-16 13:51:46.054 13313-13368/agdesenvolvimentoweb.projetopiloto D/EGL_emulation: eglMakeCurrent: 0x7fcbcdf532c0: ver 2 0 (tinfo 0x7fcbcdfb3920)
08-16 13:51:46.067 13313-13374/agdesenvolvimentoweb.projetopiloto I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
08-16 13:51:46.088 13313-13324/agdesenvolvimentoweb.projetopiloto W/art: Suspending all threads took: 12.371ms
08-16 13:51:46.167 13313-13374/agdesenvolvimentoweb.projetopiloto D/EGL_emulation: eglCreateContext: 0x7fcbcdf569c0: maj 2 min 0 rcv 2
08-16 13:51:46.169 13313-13374/agdesenvolvimentoweb.projetopiloto D/EGL_emulation: eglMakeCurrent: 0x7fcbcdf569c0: ver 2 0 (tinfo 0x7fcbcd54d900)
08-16 13:51:46.175 13313-13374/agdesenvolvimentoweb.projetopiloto E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
08-16 13:51:46.176 13313-13374/agdesenvolvimentoweb.projetopiloto E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
08-16 13:51:46.176 13313-13374/agdesenvolvimentoweb.projetopiloto E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
08-16 13:51:46.176 13313-13374/agdesenvolvimentoweb.projetopiloto E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
08-16 13:51:46.180 13313-13374/agdesenvolvimentoweb.projetopiloto E/libEGL: called unimplemented OpenGL ES API
08-16 13:51:46.707 13313-13313/agdesenvolvimentoweb.projetopiloto W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13313
08-16 13:51:46.709 13313-13313/agdesenvolvimentoweb.projetopiloto I/Choreographer: Skipped 40 frames! The application may be doing too much work on its main thread.
08-16 13:51:46.716 13313-13313/agdesenvolvimentoweb.projetopiloto W/art: Attempt to remove non-JNI local reference, dumping thread
08-16 13:51:46.752 13313-13313/agdesenvolvimentoweb.projetopiloto E/chromium: [ERROR:interface_registry.cc(104)] Failed to locate a binder for interface: autofill::mojom::PasswordManagerDriver
08-16 13:51:46.753 13313-13313/agdesenvolvimentoweb.projetopiloto D/AndroidRuntime: Shutting down VM
--------- beginning of crash
08-16 13:51:46.753 13313-13313/agdesenvolvimentoweb.projetopiloto E/AndroidRuntime: FATAL EXCEPTION: main
Process: agdesenvolvimentoweb.projetopiloto, PID: 13313
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.ProgressDialog.dismiss()' on a null object reference
at agdesenvolvimentoweb.projetopiloto.MainActivity$MyWebViewClient.onPageFinished(MainActivity.java:161)
at com.android.webview.chromium.WebViewContentsClientAdapter.onPageFinished(WebViewContentsClientAdapter.java:545)
at org.chromium.android_webview.AwContentsClientCallbackHelper$MyHandler.handleMessage(AwContentsClientCallbackHelper.java:201)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Your setting dismiss() on your progress bar somewhere in your code with out having initialised it.
do
if(progress!= null)
progress.dismiss()
First, put only your application's log.
Second, you are trying to dismiss a progress dialog when its not initialized.
java.lang.NullPointerException: Attempt to invoke virtual
method 'void android.app.ProgressDialog.dismiss()' on a null object reference
I'd start my inspections with MainActivity.java:161