emulator after installing latest Android Studio v3.1.1 - android

I have removed Android Studio v2.1 and installed version 3.1.1, but after installation, I try to run the code with emulator, However, the following error occurs within the LogCat section. May I ask is there any solutions for this ? I think this is somewhat related to my user name of the installed OS.
04-17 15:23:49.644 1267-1305/? E/vold: Failed to prepare /data/system/users/0: No such file or directory
Failed to prepare user 0 storage
04-17 15:23:49.802 1313-1313/? E/libEGL: load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found
04-17 15:23:49.809 1267-1322/? E/Cryptfs: Bad magic for real block device /dev/block/vdd
04-17 15:23:49.859 1313-1313/? E/SurfaceFlinger: hwcomposer module not found
04-17 15:23:49.885 1313-1313/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da
04-17 15:23:49.885 1267-1305/? E/vold: Failed to chmod /data/system_ce/0: No such file or directory
04-17 15:23:49.885 1313-1313/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
04-17 15:23:49.885 1267-1305/? E/vold: Failed to chmod /data/misc_ce/0: No such file or directory
Failed to chmod /data/media/0: No such file or directory
04-17 15:23:49.885 1313-1313/? E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
04-17 15:23:50.771 1313-1320/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
04-17 15:23:50.994 1341-1346/? E/libEGL: load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found
04-17 15:24:06.261 1435-1435/? E/EmulatedCamera_Factory: 0 cameras are being emulated. 0 of them are fake cameras.
04-17 15:24:06.261 1435-1435/? E/CameraService: setUpVendorTags: Vendor tag operations not fully defined. Ignoring definitions.
04-17 15:24:06.348 1434-1434/? E/RadioService: couldn't load radio module radio.primary (No such file or directory)
04-17 15:24:06.348 1434-1434/? E/SoundTriggerHwService: couldn't load sound trigger module sound_trigger.primary (No such file or directory)
04-17 15:24:09.611 1686-1686/? E/PowerManagerService-JNI: Couldn't load power module (No such file or directory)
04-17 15:24:09.629 1313-1323/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
04-17 15:24:09.796 1686-1686/? E/art: DexFile_getDexOptNeeded file '/system/framework/org.apache.http.legacy.jar' does not exist
04-17 15:24:16.377 1686-1686/? E/PackageManager: There should probably be exactly one verifier; found []
04-17 15:24:16.446 1686-1705/? E/BatteryStatsService: power: gPowerModule not loaded
04-17 15:24:16.477 1686-1700/? E/KernelCpuSpeedReader: Failed to read cpu-freq: /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state (No such file or directory)
04-17 15:24:16.478 1686-1700/? E/KernelUidCpuTimeReader: Failed to read uid_cputime: /proc/uid_cputime/show_uid_stat (No such file or directory)
04-17 15:24:16.695 1686-1686/? E/ActivityThread: Failed to find provider info for settings
04-17 15:24:16.714 1686-1686/? E/System: ******************************************
04-17 15:24:16.736 1686-1686/? E/System: ************ Failure starting core service
java.lang.NullPointerException: Attempt to invoke interface method 'android.os.Bundle android.content.IContentProvider.call(java.lang.String, java.lang.String, java.lang.String, android.os.Bundle)' on a null object reference
at android.provider.Settings$NameValueCache.getStringForUser(Settings.java:1625)
at android.provider.Settings$Secure.getStringForUser(Settings.java:4259)
at android.provider.Settings$Secure.getIntForUser(Settings.java:4329)
at android.provider.Settings$Secure.getInt(Settings.java:4319)
at com.android.server.am.CoreSettingsObserver.populateSettings(CoreSettingsObserver.java:121)
at com.android.server.am.CoreSettingsObserver.sendCoreSettings(CoreSettingsObserver.java:77)
at com.android.server.am.CoreSettingsObserver.<init>(CoreSettingsObserver.java:62)
at com.android.server.am.ActivityManagerService.installSystemProviders(ActivityManagerService.java:11335)
at com.android.server.SystemServer.startOtherServices(SystemServer.java:583)
at com.android.server.SystemServer.run(SystemServer.java:326)
at com.android.server.SystemServer.main(SystemServer.java:211)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
04-17 15:24:16.872 1686-1686/? E/ActivityThread: Failed to find provider info for settings
04-17 15:24:16.873 1686-1686/? E/System: ******************************************
04-17 15:24:16.875 1686-1686/? E/System: ************ Failure starting system services
java.lang.RuntimeException: Failed to create service com.android.server.InputMethodManagerService$Lifecycle: service constructor threw an exception
at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:103)
at com.android.server.SystemServer.startOtherServices(SystemServer.java:667)
at com.android.server.SystemServer.run(SystemServer.java:326)
at com.android.server.SystemServer.main(SystemServer.java:211)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:92)
at com.android.server.SystemServer.startOtherServices(SystemServer.java:667) 
at com.android.server.SystemServer.run(SystemServer.java:326) 
at com.android.server.SystemServer.main(SystemServer.java:211) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756) 
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'android.os.Bundle android.content.IContentProvider.call(java.lang.String, java.lang.String, java.lang.String, android.os.Bundle)' on a null object reference
at android.provider.Settings$NameValueCache.getStringForUser(Settings.java:1625)
at android.provider.Settings$Secure.getStringForUser(Settings.java:4259)
at com.android.internal.inputmethod.InputMethodUtils$InputMethodSettings.getString(InputMethodUtils.java:997)
at com.android.internal.inputmethod.InputMethodUtils$InputMethodSettings.getEnabledInputMethodsStr(InputMethodUtils.java:1178)
at com.android.internal.inputmethod.InputMethodUtils$InputMethodSettings.getEnabledInputMethodsAndSubtypeListLocked(InputMethodUtils.java:1100)
at com.android.internal.inputmethod.InputMethodUtils$InputMethodSettings.getEnabledInputMethodListLocked(InputMethodUtils.java:1044)
at com.android.internal.inputmethod.InputMethodUtils$InputMethodSettings.getExplicitlyOrImplicitlyEnabledInputMethodsAndSubtypeListLocked(InputMethodUtils.java:1438)
at com.android.internal.inputmethod.InputMethodSubtypeSwitchingController$InputMethodAndSubtypeList.getSortedInputMethodAndSubtypeList(InputMethodSubtypeSwitchingController.java:200)
at com.android.internal.inputmethod.InputMethodSubtypeSwitchingController.resetCircularListLocked(InputMethodSubtypeSwitchingController.java:575)
at com.android.internal.inputmethod.InputMethodSubtypeSwitchingController.<init>(InputMethodSubtypeSwitchingController.java:554)
at com.android.internal.inputmethod.InputMethodSubtypeSwitchingController.createInstanceLocked(InputMethodSubtypeSwitchingController.java:559)
at com.android.server.InputMethodManagerService.<init>(InputMethodManagerService.java:910)
at com.android.server.InputMethodManagerService$Lifecycle.<init>(InputMethodManagerService.java:789)
at java.lang.reflect.Constructor.newInstance0(Native Method) 
at java.lang.reflect.Constructor.newInstance(Constructor.java:430) 
at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:92) 
at com.android.server.SystemServer.startOtherServices(SystemServer.java:667) 
at com.android.server.SystemServer.run(SystemServer.java:326) 
at com.android.server.SystemServer.main(SystemServer.java:211) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756) 
04-17 15:24:16.876 1686-1686/? E/AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
java.lang.RuntimeException: Failed to create service com.android.server.InputMethodManagerService$Lifecycle: service constructor threw an exception

Related

Firebase API initialization failure after renaming package name

I am getting FirebaseApp: Firebase API initialisation failure. error after renaming application package name, but with the original package name it is working fine
I have created new firebase app for new package as well as using new google-json file.
error log:
09-07 17:39:56.940 10181-10181/com.upliftapp D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
09-07 17:39:56.952 10181-10181/com.upliftapp E/FirebaseApp: Firebase API initialization failure.
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.google.firebase.FirebaseApp.zza(SourceFile:739)
at com.google.firebase.FirebaseApp.zze(SourceFile:707)
at com.google.firebase.FirebaseApp.initializeApp(SourceFile:328)
at com.google.firebase.FirebaseApp.initializeApp(SourceFile:294)
at com.google.firebase.FirebaseApp.initializeApp(SourceFile:281)
at com.google.firebase.provider.FirebaseInitProvider.onCreate(SourceFile:37)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1917)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1892)
at com.google.firebase.provider.FirebaseInitProvider.attachInfo(SourceFile:31)
at android.app.ActivityThread.installProvider(ActivityThread.java:6239)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:5805)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5722)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zztv;
at com.google.firebase.crash.internal.config.flag.Flags.<clinit>(Unknown Source:10)
at com.google.firebase.crash.internal.config.flag.Flags.initialize(Unknown Source:0)
at com.google.firebase.crash.FirebaseCrash.getInstance(Unknown Source:4)
at java.lang.reflect.Method.invoke(Native Method) 
at com.google.firebase.FirebaseApp.zza(SourceFile:739) 
at com.google.firebase.FirebaseApp.zze(SourceFile:707) 
at com.google.firebase.FirebaseApp.initializeApp(SourceFile:328) 
at com.google.firebase.FirebaseApp.initializeApp(SourceFile:294) 
at com.google.firebase.FirebaseApp.initializeApp(SourceFile:281) 
at com.google.firebase.provider.FirebaseInitProvider.onCreate(SourceFile:37) 
at android.content.ContentProvider.attachInfo(ContentProvider.java:1917) 
at android.content.ContentProvider.attachInfo(ContentProvider.java:1892) 
at com.google.firebase.provider.FirebaseInitProvider.attachInfo(SourceFile:31) 
at android.app.ActivityThread.installProvider(ActivityThread.java:6239) 
at android.app.ActivityThread.installContentProviders(ActivityThread.java:5805) 
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5722) 
at android.app.ActivityThread.-wrap1(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656) 
at android.os.Handler.dispatchMessage(Handler.java:106) 
at android.os.Looper.loop(Looper.java:164) 
at android.app.ActivityThread.main(ActivityThread.java:6494) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 
09-07 17:39:56.953 10181-10181/com.upliftapp E/FirebaseApp: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.internal.zztv" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/base.apk", zip file "/data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_dependencies_apk.apk", zip file "/data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_0_apk.apk", zip file "/data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_1_apk.apk", zip file "/data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_2_apk.apk", zip file "/data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_3_apk.apk", zip file "/data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_4_apk.apk", zip file "/data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_5_apk.apk", zip file "/data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_6_apk.apk", zip file "/data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_7_apk.apk", zip file "/data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_8_apk.apk", zip file "/data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/lib/x86, /data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/base.apk!/lib/x86, /data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_dependencies_apk.apk!/lib/x86, /data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_0_apk.apk!/lib/x86, /data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_1_apk.apk!/lib/x86, /data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_2_apk.apk!/lib/x86, /data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_3_apk.apk!/lib/x86, /data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_4_apk.apk!/lib/x86, /data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_5_apk.apk!/lib/x86, /data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_6_apk.apk!/lib/x86, /data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_7_apk.apk!/lib/x86, /data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_8_apk.apk!/lib/x86, /data/app/com.upliftapp-loT5KzpsPyXgUB1ROEaJ7w==/split_lib_slice_9_apk.apk!/lib/x86, /system/lib, /vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 24 more
09-07 17:39:56.991 10181-10181/com.upliftapp V/FA: Registered activity lifecycle callback
09-07 17:39:56.993 10181-10181/com.upliftapp I/FirebaseInitProvider: FirebaseApp initialization successful
09-07 17:39:57.040 10181-10181/com.upliftapp E/com.facebook.internal.AttributionIdentifiers: getAttributionIdentifiers should not be called from the main thread
09-07 17:39:57.055 10181-10198/com.upliftapp I/zygote: Background concurrent copying GC freed 13187(4MB) AllocSpace objects, 3(56KB) LOS objects, 52% free, 1392KB/2MB, paused 329us total 107.573ms
09-07 17:39:57.094 10181-10216/com.upliftapp D/NetworkSecurityConfig: No Network Security Config specified, using platform default
09-07 17:39:57.158 10181-10215/com.upliftapp V/FA: Collection enabled
App package, google app id: com.upliftapp, 1:456357737763:android:898ccf45fd84a88b
09-07 17:39:57.158 10181-10215/com.upliftapp I/FA: App measurement is starting up, version: 12451
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.upliftapp
09-07 17:39:57.158 10181-10215/com.upliftapp D/FA: Debug-level message logging enabled
09-07 17:39:57.176 10181-10215/com.upliftapp V/FA: Connecting to remote service
09-07 17:39:57.195 10181-10215/com.upliftapp V/FA: Connection attempt already in progress
09-07 17:40:27.011 10181-10212/com.upliftapp E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
09-07 17:40:34.157 10181-10192/com.upliftapp I/zygote: Thread[3,tid=10192,WaitingInMainSignalCatcherLoop,Thread*=0xe3059c00,peer=0x16440ad0,"Signal Catcher"]: reacting to signal 3
09-07 17:40:34.183 10181-10192/com.upliftapp I/zygote: Wrote stack traces to '[tombstoned]'
this is the log i am getting.
When you first connect your Android App to your Firebase App to enable the FCM a file named google-services.json was obtained. That file contains the package name of your app and has the information needed to connect to Firebase.
If you've changed the package name, go open and edit that file with the new package name. Or go to the Firebase Console and get a new google-services.json file with the correct package name.
That's why old one work and new does not

Android Studio 3 debug on kitkat device Logcat not showing source reference

When debugging on an older Samsung GT-P5210 Android 4.4.2 Tablet the logcat
when app crash is showen in Logcat but, it´s like it´s missing information.
In the Log there´s usually some link directly to offending source file
but not in this log.
I look in the Tablet developer option setting but cant see anything controlling this, I think this is some settings in Android Studio 3 for older apis, How to fix this?
03-25 16:49:43.108 29697-30049/com.game.android.debug E/UncaughtException:
java.lang.AssertionError: java.lang.NoSuchFieldException: ROUTE
at com.google.gson.internal.bind.i$a.<init>(SourceFile:791)
at com.google.gson.internal.bind.TypeAdapters$30.a(SourceFile:817)
at com.google.gson.f.a(SourceFile:423)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory.a(SourceFile:53)
at com.google.gson.f.a(SourceFile:423)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:115)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:164)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:100)
at com.google.gson.f.a(SourceFile:423)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory.a(SourceFile:53)
at com.google.gson.f.a(SourceFile:423)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:115)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:164)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:100)
at com.google.gson.f.a(SourceFile:423)
at com.google.gson.f.a(SourceFile:886)
at com.google.gson.f.a(SourceFile:825)
at com.game.android.PlacesProvider.a.c.b.a(SourceFile:55)
at com.game.android.PlacesProvider.a.e.a$1.a(SourceFile:51)
at com.game.android.PlacesProvider.a.e.a$1.b(SourceFile:47)
at com.game.android.PlacesProvider.a.e.c.a(SourceFile:60)
at com.game.android.PlacesProvider.a.e.a.a(SourceFile:47)
at com.game.android.PlacesProvider.a.c.a(SourceFile:229)
at com.game.android.PlacesProvider.a.e.performFiltering(SourceFile:104)
at android.widget.Filter$RequestHandler.handleMessage(Filter.java:234)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: java.lang.NoSuchFieldException: ROUTE
at java.lang.Class.getField(Class.java:724)
at com.google.gson.internal.bind.i$a.<init>(SourceFile:780)
at com.google.gson.internal.bind.TypeAdapters$30.a(SourceFile:817) 
at com.google.gson.f.a(SourceFile:423) 
at com.google.gson.internal.bind.CollectionTypeAdapterFactory.a(SourceFile:53) 
at com.google.gson.f.a(SourceFile:423) 
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:115) 
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:164) 
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:100) 
at com.google.gson.f.a(SourceFile:423) 
at com.google.gson.internal.bind.CollectionTypeAdapterFactory.a(SourceFile:53) 
at com.google.gson.f.a(SourceFile:423) 
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:115) 
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:164) 
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:100) 
at com.google.gson.f.a(SourceFile:423) 
at com.google.gson.f.a(SourceFile:886) 
at com.google.gson.f.a(SourceFile:825) 
at com.game.android.PlacesProvider.a.c.b.a(SourceFile:55) 
at com.game.android.PlacesProvider.a.e.a$1.a(SourceFile:51) 
at com.game.android.PlacesProvider.a.e.a$1.b(SourceFile:47) 
at com.game.android.PlacesProvider.a.e.c.a(SourceFile:60) 
at com.game.android.PlacesProvider.a.e.a.a(SourceFile:47) 
at com.game.android.PlacesProvider.a.c.a(SourceFile:229) 
at com.game.android.PlacesProvider.a.e.performFiltering(SourceFile:104) 
at android.widget.Filter$RequestHandler.handleMessage(Filter.java:234) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:146) 
at android.os.HandlerThread.run(HandlerThread.java:61) 
03-25 16:49:43.678 29697-29697/com.game.android.debug E/UncaughtException: java.lang.NullPointerException
at com.game.android.PlacesProvider.a.e.publishResults(SourceFile:140)
at android.widget.Filter$ResultsHandler.handleMessage(Filter.java:282)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5653)
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:1291)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
at dalvik.system.NativeStart.main(Native Method)
03-25 16:49:43.978 29697-30049/com.game.android.debug E/AndroidRuntime: FATAL EXCEPTION: Filter
Process: com.game.android.debug, PID: 29697
java.lang.AssertionError: java.lang.NoSuchFieldException: ROUTE
at com.google.gson.internal.bind.i$a.<init>(SourceFile:791)
at com.google.gson.internal.bind.TypeAdapters$30.a(SourceFile:817)
at com.google.gson.f.a(SourceFile:423)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory.a(SourceFile:53)
at com.google.gson.f.a(SourceFile:423)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:115)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:164)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:100)
at com.google.gson.f.a(SourceFile:423)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory.a(SourceFile:53)
at com.google.gson.f.a(SourceFile:423)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:115)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:164)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:100)
at com.google.gson.f.a(SourceFile:423)
at com.google.gson.f.a(SourceFile:886)
at com.google.gson.f.a(SourceFile:825)
at com.game.android.PlacesProvider.a.c.b.a(SourceFile:55)
at com.game.android.PlacesProvider.a.e.a$1.a(SourceFile:51)
at com.game.android.PlacesProvider.a.e.a$1.b(SourceFile:47)
at com.game.android.PlacesProvider.a.e.c.a(SourceFile:60)
at com.game.android.PlacesProvider.a.e.a.a(SourceFile:47)
at com.game.android.PlacesProvider.a.c.a(SourceFile:229)
at com.game.android.PlacesProvider.a.e.performFiltering(SourceFile:104)
at android.widget.Filter$RequestHandler.handleMessage(Filter.java:234)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: java.lang.NoSuchFieldException: ROUTE
at java.lang.Class.getField(Class.java:724)
at com.google.gson.internal.bind.i$a.<init>(SourceFile:780)
at com.google.gson.internal.bind.TypeAdapters$30.a(SourceFile:817) 
at com.google.gson.f.a(SourceFile:423) 
at com.google.gson.internal.bind.CollectionTypeAdapterFactory.a(SourceFile:53) 
at com.google.gson.f.a(SourceFile:423) 
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:115) 
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:164) 
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:100) 
at com.google.gson.f.a(SourceFile:423) 
at com.google.gson.internal.bind.CollectionTypeAdapterFactory.a(SourceFile:53) 
at com.google.gson.f.a(SourceFile:423) 
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:115) 
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:164) 
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a(SourceFile:100) 
at com.google.gson.f.a(SourceFile:423) 
at com.google.gson.f.a(SourceFile:886) 
at com.google.gson.f.a(SourceFile:825) 
at com.game.android.PlacesProvider.a.c.b.a(SourceFile:55) 
at com.game.android.PlacesProvider.a.e.a$1.a(SourceFile:51) 
at com.game.android.PlacesProvider.a.e.a$1.b(SourceFile:47) 
at com.game.android.PlacesProvider.a.e.c.a(SourceFile:60) 
at com.game.android.PlacesProvider.a.e.a.a(SourceFile:47) 
at com.game.android.PlacesProvider.a.c.a(SourceFile:229) 
at com.game.android.PlacesProvider.a.e.performFiltering(SourceFile:104) 
at android.widget.Filter$RequestHandler.handleMessage(Filter.java:234) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:146) 
at android.os.HandlerThread.run(HandlerThread.java:61) 
The stack trace shows the information present in the APK that caused the Exception. If it misses the source file name, this means that these information had been removed from the APK, e.g. by a code obfuscator.
If you have the source code of the app you should create a debug build or a release build without obfuscation.
If you don't have the source code of the app there is nothing you can do on your own. You can only contact the app author and describe the problem.

Can't load any external fonts in android studio

Update:
I created an asset folder and inside of it is a century.ttf file. First I got a wrong encoding problem but after I followed these steps after File was loaded in the wrong encoding 'UTF-8' while pasting new font to Assets Folder in Android Studio the error message disappeared.
Then I wrote into my MainActivity:
FOURTH UPDATE:
Typeface typeface = Typeface.createFromAsset(getAssets(),"century.ttf");
Text.setTypeface(typrface);
But then my app suddenly stops.
FOURTH UPDATE:
09-08 20:17:54.742 1266-1301/? E/cutils: Failed to mkdir(/data/system/users/0): No such file or directory
09-08 20:17:54.742 1266-1301/? E/vold: Failed to prepare /data/system/users/0: No such file or directory
09-08 20:17:54.743 1266-1301/? E/vold: Failed to prepare user 0 storage
09-08 20:17:54.822 1266-1314/? E/Cryptfs: Bad magic for real block device /dev/block/vdd
09-08 20:17:54.742 1266-1301/? E/cutils: Failed to mkdir(/data/system/users/0): No such file or directory
09-08 20:17:54.742 1266-1301/? E/vold: Failed to prepare /data/system/users/0: No such file or directory
09-08 20:17:54.743 1266-1301/? E/vold: Failed to prepare user 0 storage
09-08 20:17:54.822 1266-1314/? E/Cryptfs: Bad magic for real block device /dev/block/vdd
09-08 20:17:56.997 1310-1310/? E/libEGL: load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found
09-08 20:17:57.012 1266-1301/? E/vold: Failed to chmod /data/system_ce/0: No such file or directory
09-08 20:17:57.012 1266-1301/? E/vold: Failed to chmod /data/misc_ce/0: No such file or directory
09-08 20:17:57.012 1266-1301/? E/vold: Failed to chmod /data/media/0: No such file or directory
09-08 20:17:57.048 1310-1310/? E/SurfaceFlinger: hwcomposer module not found
09-08 20:17:57.851 1310-1326/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
09-08 20:17:57.853 1340-1345/? E/libEGL: load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found
09-08 20:18:05.693 1266-1301/? E/vold: Failed to chmod /data/system_ce/0: No such file or directory
09-08 20:18:05.693 1266-1301/? E/vold: Failed to chmod /data/misc_ce/0: No such file or directory
09-08 20:18:05.693 1266-1301/? E/vold: Failed to chmod /data/media/0: No such file or directory
09-08 20:18:05.928 1405-1405/? E/cutils: Failed to read /data/.layout_version: No such file or directory
[ 09-08 20:18:05.928 1405: 1405 D/ ]
Assuming that device has multi-user storage layout; upgrade no longer supported
[ 09-08 20:18:05.928 1405: 1405 D/ ]
Upgrading to /data/misc/user directories
09-08 20:18:05.968 1416-1416/? E/perfprofd: unable to open configuration file /data/data/com.google.android.gms/files/perfprofd.conf
09-08 20:18:06.123 1403-1403/? E/EmulatedCamera_Factory: 2 cameras are being emulated. 0 of them are fake cameras.
09-08 20:18:06.123 1403-1403/? E/EmulatedCamera_HotplugThread: createFileIfNotExists: Could not create file '/data/misc/media/emulator.camera.hotplug.0', error: 'Permission denied' (13)
09-08 20:18:06.123 1403-1403/? E/EmulatedCamera_HotplugThread: createFileIfNotExists: Could not create file '/data/misc/media/emulator.camera.hotplug.1', error: 'Permission denied' (13)
09-08 20:18:06.123 1403-1403/? E/CameraService: setUpVendorTags: Vendor tag operations not fully defined. Ignoring definitions.
09-08 20:18:06.204 1402-1402/? E/RadioService: couldn't load radio module radio.primary (No such file or directory)
09-08 20:18:06.204 1402-1402/? E/SoundTriggerHwService: couldn't load sound trigger module sound_trigger.primary (No such file or directory)
09-08 20:18:07.021 1534-1534/? E/ipv6proxy: Failed to forward Neighbor Solicitation for fe80::5c01:45ff:fe1b:e65c from radio0-peer to eth0: Cannot assign requested address
09-08 20:18:07.039 1544-1544/? E/hostapd: Configuration file: /system/etc/simulated_hostapd.conf
09-08 20:18:07.308 1401-1401/? E/memtrack: Couldn't load memtrack module (No such file or directory)
09-08 20:18:07.308 1401-1401/? E/android.os.Debug: failed to load memtrack module: -2
09-08 20:18:07.695 1401-1401/? E/Typeface: Error mapping font file /system/fonts/DroidSansFallback.ttf
09-08 20:18:08.021 1534-1534/? E/ipv6proxy: Failed to forward Router Advertisement from eth0 to wlan1: Network is unreachable
09-08 20:18:08.021 1534-1534/? E/ipv6proxy: Failed to forward Router Advertisement from eth0 to radio0-peer: Cannot assign requested address
09-08 20:18:08.231 1411-1411/? E/Netd: cannot find interface dummy0
09-08 20:18:08.398 1401-1401/? E/libEGL: load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found
09-08 20:18:08.423 1401-1401/? E/Hyphenator: error loading hyphenation /system/usr/hyphen-data/hyph-as.hyb
java.io.FileNotFoundException: /system/usr/hyphen-data/hyph-nb.hyb: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:455)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:247)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:118)
at android.text.Hyphenator.init(Hyphenator.java:224)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:252)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:206)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:743)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:187)
at libcore.io.IoBridge.open(IoBridge.java:441)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:247) 
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:118) 
at android.text.Hyphenator.init(Hyphenator.java:224) 
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:252) 
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:206) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:743) 
09-08 20:18:08.430 1401-1401/? E/Hyphenator: error loading hyphenation /system/usr/hyphen-data/hyph-nn.hyb
java.io.FileNotFoundException: /system/usr/hyphen-data/hyph-nn.hyb: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:455)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:247)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:118)
at android.text.Hyphenator.init(Hyphenator.java:224)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:252)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:206)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:743)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:187)
at libcore.io.IoBridge.open(IoBridge.java:441)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:247) 
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:118) 
at android.text.Hyphenator.init(Hyphenator.java:224) 
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:252) 
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:206) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:743) 
09-08 20:18:08.430 1401-1401/? E/Hyphenator: error loading hyphenation /system/usr/hyphen-data/hyph-or.hyb
java.io.FileNotFoundException: /system/usr/hyphen-data/hyph-or.hyb: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:455)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:247)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:118)
at android.text.Hyphenator.init(Hyphenator.java:224)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:252)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:206)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:743)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:187)
at libcore.io.IoBridge.open(IoBridge.java:441)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:247) 
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:118) 
at android.text.Hyphenator.init(Hyphenator.java:224) 
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:252) 
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:206) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:743) 
09-08 20:18:08.430 1401-1401/? E/Hyphenator: error loading hyphenation /system/usr/hyphen-data/hyph-pa.hyb
java.io.FileNotFoundException: /system/usr/hyphen-data/hyph-pa.hyb: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:455)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:247)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:118)
at android.text.Hyphenator.init(Hyphenator.java:224)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:252)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:206)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:743)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:187)
at libcore.io.IoBridge.open(IoBridge.java:441)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:247) 
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:118) 
at android.text.Hyphenator.init(Hyphenator.java:224) 
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:252) 
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:206) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:743) 
09-08 20:18:08.431 1401-1401/? E/Hyphenator: error loading hyphenation /system/usr/hyphen-data/hyph-pt.hyb
Process: com.example.fdai3744.t_online20, PID: 3050
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.fdai3744.t_online20/com.example.fdai3744.t_online20.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setTypeface(android.graphics.Typeface)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
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)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setTypeface(android.graphics.Typeface)' on a null object reference
at com.example.fdai3744.t_online20.MainActivity.onCreate(MainActivity.java:25)
at android.app.Activity.performCreate(Activity.java:6679)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) 
at android.app.ActivityThread.-wrap12(ActivityThread.java) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477) 
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) 
FOURTH UPDATE:
Follow the instructions in the link below and go to the manifest file and add android:name="the-below-implementation" under application xml tag
https://github.com/chrisjenx/Calligraphy
Considering you use ttf fonts in asset folder, generate typeface like this.
Typeface typeface = Typeface.createFromAsset(getAssets(),"YourFontName.ttf");
Text.setTypeface(typrface);
Your code is requesting font/century (see: Caused by: java.lang.RuntimeException: Font asset not found font/century). The actual asset is font/century.tff (according to your comment), or possibly font/century.ttf (which would be the more likely file extension for TrueType fonts).
The font path you provide needs to match the actual path in assets/, including file extensions.
Try putting the ttf file into a "fonts" folder inside the "Assets" folder and then change the source path "fonts/century.ttf". My guess is that the file isn't being recognized as a font file.
This is how I have it set-up in one of my projects:

LocalFingerprints: cannot compute fingerprint

I am getting one strange error it occurs randomly to any time and crashes the app. i am testing on nexus 6 in Android 7.0
here is log cat
E/LocalFingerprints: cannot compute fingerprint for: content://media/external/images/media/306155
java.io.IOException: read failed: EISDIR (Is a directory)
at libcore.io.IoBridge.read(IoBridge.java:481)
at java.io.FileInputStream.read(FileInputStream.java:252)
at android.os.ParcelFileDescriptor$AutoCloseInputStream.read(ParcelFileDescriptor.java:889)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:273)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at java.security.DigestInputStream.read(DigestInputStream.java:161)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at kei.b(PG:81)
at imp.a(PG:1324)
at ilf.a(PG:131)
at com.google.android.libraries.social.autobackup.FingerprintScannerIntentService.onHandleIntent(PG:81)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:67)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: android.system.ErrnoException: read failed: EISDIR (Is a directory)
at libcore.io.Posix.readBytes(Native Method)
at libcore.io.Posix.read(Posix.java:169)
at libcore.io.BlockGuardOs.read(BlockGuardOs.java:231)
at libcore.io.IoBridge.read(IoBridge.java:471)
at java.io.FileInputStream.read(FileInputStream.java:252) 
at android.os.ParcelFileDescriptor$AutoCloseInputStream.read(ParcelFileDescriptor.java:889) 
at java.io.BufferedInputStream.read1(BufferedInputStream.java:273) 
at java.io.BufferedInputStream.read(BufferedInputStream.java:334) 
at java.security.DigestInputStream.read(DigestInputStream.java:161) 
at java.io.FilterInputStream.read(FilterInputStream.java:107) 
at kei.b(PG:81) 
at imp.a(PG:1324) 
at ilf.a(PG:131) 
at com.google.android.libraries.social.autobackup.FingerprintScannerIntentService.onHandleIntent(PG:81) 
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:67) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:154) 
at android.os.HandlerThread.run(HandlerThread.java:61) 

Zygote Errors in Android Studio

I am getting these errors in Android Studio (logcat) when apps are being run
06-05 22:59:03.664 23521-23521/com.policia E/Zygote﹕ Zygote: error closing descriptor
libcore.io.ErrnoException: close failed: EBADF (Bad file number)
at libcore.io.Posix.close(Native Method)
at libcore.io.BlockGuardOs.close(BlockGuardOs.java:75)
at com.android.internal.os.ZygoteInit.closeServerSocket(ZygoteInit.java:224)
at com.android.internal.os.ZygoteConnection.handleChildProc(ZygoteConnection.java:879)
at com.android.internal.os.ZygoteConnection.runOnce(ZygoteConnection.java:242)
at com.android.internal.os.ZygoteInit.runSelectLoop(ZygoteInit.java:704)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
at dalvik.system.NativeStart.main(Native Method)
can anybody tell me what causes these errors and how to solve them?

Categories

Resources