android FATAL EXCEPTION java.lang.IllegalStateException: AssetManager has been finalized? - android

it wast when the app in background and i have no services in the app!!
java.lang.IllegalStateException: AssetManager has been finalized!
at android.content.res.AssetManager.setConfiguration(Native Method)
at android.content.res.ResourcesImpl.updateConfiguration(ResourcesImpl.java:429)
at android.app.ResourcesManager.applyConfigurationToResourcesLocked(ResourcesManager.java:978)
at android.app.ActivityThread.handleConfigurationChanged(ActivityThread.java:5224)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1767)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6688)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)

Related

Firebase real-time database error in Android Studio

This error happens when I click the category from which I expect to see all the categories from firebase where I put all the category names and pictures. I am a beginner of Android studio and not many solved issues can be found in the search on Google.
04-07 18:35:13.271 25281-25281/com.example.a2015015407.edenparkproject E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.a2015015407.edenparkproject, PID: 25281
com.google.firebase.database.DatabaseException: Invalid Firebase Database url specified
at com.google.android.gms.internal.zzepd.zzqj(Unknown Source)
at com.google.firebase.database.FirebaseDatabase.getInstance(Unknown Source)
at com.google.firebase.database.FirebaseDatabase.getInstance(Unknown Source)
at com.example.a2015015407.edenparkproject.CategoryFragment.onCreate(CategoryFragment.java:41)
at android.support.v4.app.Fragment.performCreate(Fragment.java:2328)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1379)
at android.support.v4.app.FragmentTransition.addToFirstInLastOut(FragmentTransition.java:1188)
at android.support.v4.app.FragmentTransition.calculateFragments(FragmentTransition.java:1071)
at android.support.v4.app.FragmentTransition.startTransitions(FragmentTransition.java:115)
at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2379)
at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2337)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2244)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:702)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
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.net.URISyntaxException: Invalid scheme specified: Category
at com.google.android.gms.internal.zzepd.zzqj(Unknown Source)
at com.google.firebase.database.FirebaseDatabase.getInstance(Unknown Source)
at com.google.firebase.database.FirebaseDatabase.getInstance(Unknown Source)
at com.example.a2015015407.edenparkproject.CategoryFragment.onCreate(CategoryFragment.java:41)
at android.support.v4.app.Fragment.performCreate(Fragment.java:2328)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1379)
at android.support.v4.app.FragmentTransition.addToFirstInLastOut(FragmentTransition.java:1188)
at android.support.v4.app.FragmentTransition.calculateFragments(FragmentTransition.java:1071)
at android.support.v4.app.FragmentTransition.startTransitions(FragmentTransition.java:115)
at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2379)
at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2337)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2244)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:702)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
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)
From the error message, it looks like you're initializing Firebase with an invalid URL:
Invalid Firebase Database url specified
My guess is that you're calling getReferenceFromUrl("some/path"). To get a reference, instead call FirebaseDatabase.getInstance().getReference("some/path") as shown in the getting started page of the documentation.
Update: it looks like you need:
FirebaseDatabase.getInstance().getReference("Category")

android.os.DeadObjectException at android.os.BinderProxy.transactNative(Native Method)

I am aware about the generic explanation of DeadObjectException and I have gone through all the related links. How to handle this exception?
InputMethodManagerService: Session failed to close due to remote exception android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:504)
at com.android.internal.view.IInputMethodSession$Stub$Proxy.finishSession(IInputMethodSession.java:305)
at com.android.server.InputMethodManagerService.finishSessionLocked(InputMethodManagerService.java:1474)
at com.android.server.InputMethodManagerService.clearClientSessionLocked(InputMethodManagerService.java:1465)
at com.android.server.InputMethodManagerService.clearCurMethodLocked(InputMethodManagerService.java:1491)
at com.android.server.InputMethodManagerService.onServiceDisconnected(InputMethodManagerService.java:1510)
at android.app.LoadedApk$ServiceDispatcher.doDeath(LoadedApk.java:1254)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1268)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at com.android.server.SystemServer.run(SystemServer.java:342)
at com.android.server.SystemServer.main(SystemServer.java:223)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:956)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:751)

GoogleSign in error only on Xiomi Devices

Using com.google.android.gms:play-services-auth:10.0.1 for google signin in android app and its not working on xiomi devices and on other devices its working.
Stacktrace :
Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp/com.google.android.gms.auth.api.signin.internal.SignInHubActivity}: java.lang.IllegalStateException: Bad magic number for Bundle: 0xffff4f45
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2332)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2394)
at android.app.ActivityThread.access$800(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5276)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706) Caused by java.lang.IllegalStateException: Bad magic number for Bundle: 0xffff4f45
at android.os.Parcel.readException(Parcel.java:1554)
at android.os.Parcel.readException(Parcel.java:1499)
at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:2441)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1500)
at android.app.Activity.startActivityForResult(Activity.java:3796)
at android.app.Activity.startActivityForResult(Activity.java:3757)
at android.support.v4.app.FragmentActivity.startActivityForResult(SourceFile:842)
at com.google.android.gms.auth.api.signin.internal.SignInHubActivity.zzj(Unknown Source)
at com.google.android.gms.auth.api.signin.internal.SignInHubActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:6041)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1109)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2285)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2394)
at android.app.ActivityThread.access$800(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5276)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:706)

Unity3d android pluggin using exoplayer NoClassDefFoundError

I'm trying to add a native dialog over a scene to play a video with exoplayer.
So far I've managed to show the dialog correctly but when I'm starting calling exoplayer stuff I get this exception in the logcat :
Caused by: java.lang.NoClassDefFoundError: Failed resolution of:
Lcom/eppz/plugins/DemoPlayer; at
com.eppz.plugins.EPPZ_DialogFragment.preparePlayer(EPPZ_DialogFragment.java:96)
at
com.eppz.plugins.EPPZ_DialogFragment.onCreateView(EPPZ_DialogFragment.java:87)
at android.app.Fragment.performCreateView(Fragment.java:2352) at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:995)
at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
at android.app.BackStackRecord.run(BackStackRecord.java:815) at
android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
at android.app.FragmentManagerImpl$1.run(FragmentManager.java:483) at
android.os.Handler.handleCallback(Handler.java:751) at
android.os.Handler.dispatchMessage(Handler.java:95) at
android.os.Looper.loop(Looper.java:154) at
android.app.ActivityThread.main(ActivityThread.java:6077) at
java.lang.reflect.Method.invoke(Native Method) at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) Caused
by: java.lang.ClassNotFoundException: com.eppz.plugins.DemoPlayer at
java.lang.VMClassLoader.findLoadedClass(Native Method) at
java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742) at
java.lang.ClassLoader.loadClass(ClassLoader.java:362) at
java.lang.ClassLoader.loadClass(ClassLoader.java:312) at
com.eppz.plugins.EPPZ_DialogFragment.preparePlayer(EPPZ_DialogFragment.java:96)
at
com.eppz.plugins.EPPZ_DialogFragment.onCreateView(EPPZ_DialogFragment.java:87)
at android.app.Fragment.performCreateView(Fragment.java:2352) at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:995)
at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
at android.app.BackStackRecord.run(BackStackRecord.java:815) at
android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
at android.app.FragmentManagerImpl$1.run(FragmentManager.java:483) at
android.os.Handler.handleCallback(Handler.java:751) at
android.os.Handler.dispatchMessage(Handler.java:95) at
android.os.Looper.loop(Looper.java:154) at
android.app.ActivityThread.main(ActivityThread.java:6077) at
java.lang.reflect.Method.invoke(Native Method) at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of:
Lcom/google/android/exoplayer/ExoPlayer$Listener; at
com.eppz.plugins.EPPZ_DialogFragment.preparePlayer(EPPZ_DialogFragment.java:96)
at
com.eppz.plugins.EPPZ_DialogFragment.onCreateView(EPPZ_DialogFragment.java:87)
at android.app.Fragment.performCreateView(Fragment.java:2352) at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:995)
at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
at android.app.BackStackRecord.run(BackStackRecord.java:815) at
android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
at android.app.FragmentManagerImpl$1.run(FragmentManager.java:483) at
android.os.Handler.handleCallback(Handler.java:751) at
android.os.Handler.dispatchMessage(Handler.java:95) at
android.os.Looper.loop(Looper.java:154) at
android.app.ActivityThread.main(ActivityThread.java:6077) at
java.lang.reflect.Method.invoke(Native Method) at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Caused by: java.lang.ClassNotFoundException: Didn't find class
"com.google.android.exoplayer.ExoPlayer$Listener" on path:
DexPathList[[zip file
"/data/app/com.eppz.plugins.alert-1/base.apk"],nativeLibraryDirectories=[/data/app/com.eppz.plugins.alert-1/lib/arm,
/data/app/com.eppz.plugins.alert-1/base.apk!/lib/armeabi-v7a,
/system/lib, /vendor/lib]] at
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380) at
java.lang.ClassLoader.loadClass(ClassLoader.java:312) at
com.eppz.plugins.EPPZ_DialogFragment.preparePlayer(EPPZ_DialogFragment.java:96)
at
com.eppz.plugins.EPPZ_DialogFragment.onCreateView(EPPZ_DialogFragment.java:87)
at android.app.Fragment.performCreateView(Fragment.java:2352) at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:995)
at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
at android.app.BackStackRecord.run(BackStackRecord.java:815) at
android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
at android.app.FragmentManagerImpl$1.run(FragmentManager.java:483) at
android.os.Handler.handleCallback(Handler.java:751) at
android.os.Handler.dispatchMessage(Handler.java:95) at
android.os.Looper.loop(Looper.java:154) at
android.app.ActivityThread.main(ActivityThread.java:6077) at
java.lang.reflect.Method.invoke(Native Method) at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
I've just added a texture view and added exoplayer in my android part just like if it was a normal project.
I've no idea of what I can add so if you need more information feel free to ask :)
Any Idea ?
Regards,
You have to add a compiled version of ExoPlayer as an .aar or a .jar in your Unity project and it will work correctly.

Android Marshmallow Keystore SecurityException

I'm trying to implement functionality similar to Android Keystore Direct access. The code is making use of IPC and an exception is thrown when mRemote.transact was called (IKeystoreService.java line 54)
This works well on versions of Android before Marshmallow (API 23). I know the permissions model has changed since.
The exception is:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example/com.example.activity.MainActivity}: java.lang.SecurityException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.SecurityException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:503)
at com.example.utilities.security.IKeystoreService$Stub$Proxy.test(IKeystoreService.java:55)
at com.example.utilities.security.KeyStoreKk.state(KeyStoreKk.java:93)
at com.example.utilities.security. Cryto.isPasswordPinEnabled(Cryto.java:198)
at com.example.activity.MainActivity.onCreate(MainActivity.java:65)
at android.app.Activity.performCreate(Activity.java:6237)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Is there a particular permission I need to check for during runtime? Or is this another problem altogether?

Categories

Resources