Android OssLicensesMenuActivity crashes on start - android

I have added every needed dependency and plugins. My project is also generating third_party_licences files, but my app crashes when activity OssLicensesMenuActivity starts.
Errors here:
E/GmsClient: unable to connect to service: com.google.android.gms.oss.licenses.service.START on com.google.android.gms
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.axabee.seeplaces, PID: 12102
java.lang.NullPointerException: Attempt to invoke virtual method 'long com.google.android.gms.internal.oss_licenses.zzc.zze()' on a null object reference
at com.google.android.gms.internal.oss_licenses.zze.zza(Unknown Source:19)
at com.google.android.gms.oss.licenses.zzf.onComplete(Unknown Source:28)
at com.google.android.gms.tasks.zzj.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

Related

Fatal android 13: Exception: Unable to resume activity com.google.firebase.auth.internal.GenericIdpActivity: Firebase auth: null reference

I noticed one exception (Firebase Crashlytics) for Android 13 devices, no other devices, happened many times, only for one device till now.
I do not know why we getting NullPointerException we just use google sign in and firebase anonymous signin in our app.
What is com.google.firebase.auth.internal.GenericIdpActivity in firebase auth lib?
From Firebase Crashlytics:
Fatal Exception: java.lang.RuntimeException: Unable to resume activity {<my package name>t/com.google.firebase.auth.internal.GenericIdpActivity}: java.lang.NullPointerException: null reference
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5368)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:5434)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:54)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2574)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8747)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
Caused by java.lang.NullPointerException: null reference
at com.google.android.gms.common.internal.Preconditions.checkNotNull(com.google.android.gms:play-services-basement##18.1.0:1)
at com.google.android.gms.internal.firebase-auth-api.zzxq.<init>(com.google.firebase:firebase-auth##21.0.6:5)
at com.google.firebase.auth.internal.GenericIdpActivity.onResume(com.google.firebase:firebase-auth##21.0.6:20)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1531)
at android.app.Activity.performResume(Activity.java:8734)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5341)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:5434)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:54)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2574)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8747)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

java.lang.NullPointerException: Parameter specified as non-null is null: method f.l.e.k, parameter $this$toList at f.l.e.k(Unknown Source:2)

I have an app it works well on my phone and when I install it manually, but in play store I'm getting this error, please help
FATAL EXCEPTION: main
Process: com.theecoder.arkwork, PID: 17630
java.lang.NullPointerException: Parameter specified as non-null is null: method f.l.e.k, parameter $this$toList
at f.l.e.k(Unknown Source:2)
at d.d.a.d.b.h.a(:15)
at androidx.lifecycle.LiveData.b(Unknown Source:29)
at androidx.lifecycle.LiveData.c(Unknown Source:44)
at c.o.o.i(:1)
at androidx.lifecycle.LiveData$a.run(Unknown Source:18)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6718)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Solved, the reason I got a crush in production is that I used "minifyEnabled true" and I did not add the okhttp proguard rules.

Firebase got crashed when binding isolate process

I have initialized Firebase on Application onCreate() :
FirebaseApp.initializeApp(getApplicationContext());
then try to binding isolate process on Activity
bindService(intent, mIsolatedServiceConnection, BIND_AUTO_CREATE);
Firebase has crashed with below exception, Could someone help me to fix this bug?
2020-05-25 11:47:13.700 27703-27703/com.test.process_v:tmp:com.test.process.IsolatedService W/ContextImpl: Failed to ensure /data/user/0/com.test.process_v/shared_prefs: mkdir failed: EACCES (Permission denied)
2020-05-25 11:47:13.700 27703-27703/com.test.process_v:tmp:com.test.process.IsolatedService W/SystemServiceRegistry: No service published for: user
2020-05-25 11:47:13.701 27703-27703/com.test.process_v:tmp:com.test.process.IsolatedService D/AndroidRuntime: Shutting down VM
--------- beginning of crash
2020-05-25 11:47:13.702 27703-27703/com.test.process_v:tmp:com.test.process.IsolatedService E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.darvin.security_v:tmp:com.test.process.IsolatedService, PID: 27703
java.lang.RuntimeException: Unable to create application com.test.process.App: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.UserManager.isUserUnlockingOrUnlocked(int)' on a null object reference
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6465)
at java.lang.reflect.Method.invoke(Native Method)
at com.swift.sandhook.SandHook.callOriginMethod(SandHook.java:185)
at com.swift.sandhook.xposedcompat.hookstub.HookStubManager.hookBridge(HookStubManager.java:375)
at SandHookerNew_5sm3dthec8858ee0to4kj3c1ge.hook(Unknown Source:51)
at android.app.ActivityThread.access$1300(ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.UserManager.isUserUnlockingOrUnlocked(int)' on a null object reference
at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:457)
at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:443)
at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:178)
at com.google.firebase.FirebaseApp.<init>(com.google.firebase:firebase-common##16.0.2:528)
at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common##16.0.2:355)
at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common##16.0.2:324)
at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common##16.0.2:310)
at com.test.process.App.onCreate(App.java:32)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1189)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6460)
at java.lang.reflect.Method.invoke(Native Method) 
at com.swift.sandhook.SandHook.callOriginMethod(SandHook.java:185) 
at com.swift.sandhook.xposedcompat.hookstub.HookStubManager.hookBridge(HookStubManager.java:375) 
at SandHookerNew_5sm3dthec8858ee0to4kj3c1ge.hook(Unknown Source:51) 
at android.app.ActivityThread.access$1300(ActivityThread.java:219) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859) 
at android.os.Handler.dispatchMessage(Handler.java:107) 
at android.os.Looper.loop(Looper.java:214) 
at android.app.ActivityThread.main(ActivityThread.java:7356) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) 
If Firebase has initialized on Activity then no crashed happen.
Check in your application onCreate() if process that runs it is isolated. If not - run initialization of Firebase.
override fun onCreate() {
super.onCreate()
if (!android.os.Process.isIsolated()) {
//init firebase
}
}

Error in Building a nearby places app using Androidx / Android Studio 3.5.3

when I create the app I receive the following error in the Logcat:
2020-01-27 16:45:34.247 20798-20798/com.example.mtcloseby E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.mtcloseby, PID: 20798
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.GoogleMap.clear()' on a null object reference
at com.example.mtcloseby.MapsActivity.nearByPlace(MapsActivity.java:111)
at com.example.mtcloseby.MapsActivity.access$000(MapsActivity.java:40)
at com.example.mtcloseby.MapsActivity$1.onNavigationItemSelected(MapsActivity.java:89)
at com.google.android.material.bottomnavigation.BottomNavigationView$1.onMenuItemSelected(BottomNavigationView.java:243)
at androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:840)
at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:158)
at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:991)
at com.google.android.material.bottomnavigation.BottomNavigationMenuView$1.onClick(BottomNavigationMenuView.java:127)
at android.view.View.performClick(View.java:6313)
at android.view.View$PerformClick.run(View.java:24933)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:175)
at android.app.ActivityThread.main(ActivityThread.java:6724)
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:810)
I have managed to fix it, the problem was I was using SupportMapFragment and it should be MapFragment

Google Play Store suddently began crashing every time I open it

Suddently, during regular usage of my Nexus 5, the Google Play Store started crashing every time I try to open it.
So, I tried to get the log of the error, here it is:
11664-11664/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.android.vending, PID: 11664
java.lang.RuntimeException: Unable to create application com.google.android.finsky.FinskyApp: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.AppOpsManager.checkPackage(int, java.lang.String)' on a null object reference
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4710)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:334)
at android.app.ActivityThread.handleBindApplication(<Xposed>)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
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)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.AppOpsManager.checkPackage(int, java.lang.String)' on a null object reference
at android.os.Parcel.readException(Parcel.java:1605)
at android.os.Parcel.readException(Parcel.java:1552)
at android.content.pm.IPackageInstaller$Stub$Proxy.getMySessions(IPackageInstaller.java:385)
at android.content.pm.PackageInstaller.getMySessions(PackageInstaller.java:415)
at com.google.android.finsky.installer.PackageInstallerImpl.<init>(PackageInstallerImpl.java:71)
at com.google.android.finsky.installer.PackageInstallerFactory.init(PackageInstallerFactory.java:23)
at com.google.android.finsky.FinskyApp.onCreate(FinskyApp.java:387)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method) 
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:334) 
at android.app.ActivityThread.handleBindApplication(<Xposed>) 
at android.app.ActivityThread.-wrap1(ActivityThread.java) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) 
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) 
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102) `
I tried to look for this error online, but couldn't find anything. I assume it's related to some system app that has one of her permissions unapproved (I don't know which could be the one), or maybe related to my Xposed Framework installation.
What could it be?
Thank you for your help.
its not any other problem did you see Attempt to invoke virtual method 'void android.app.AppOpsManager.checkPackage(int, java.lang.String)' on a null object reference. you have calling some null object reference.

Categories

Resources