I'm adding Leanback's GridExampleFragment to my code. Once the data is added to the adapter, and the cards are visible, the application crashes with the following exceptions:
2021-01-26 18:21:46.674 2428-2428/com.google.android.tvlauncher E/DataLoader: Exception in onStartLoading() on registering content observer for content uri: content://com.google.android.katniss.search.searchapi.VoiceInteractionProvider/sharedvalue
java.lang.SecurityException: Failed to find provider com.google.android.katniss.search.searchapi.VoiceInteractionProvider for user 0; expected to find a valid ContentProvider for this authority
2021-01-26 18:21:46.674 2428-2428/com.google.android.tvlauncher E/DataLoader: Exception in onStartLoading() on registering content observer for content uri: content://tvlauncher.mic/farfield_mic_status
java.lang.SecurityException: Failed to find provider tvlauncher.mic for user 0; expected to find a valid ContentProvider for this authority
2021-01-26 18:21:46.675 2428-2428/com.google.android.tvlauncher E/PrtnrWidgetInfoLdr: Exception in onStartLoading() on registering content observer
java.lang.SecurityException: Failed to find provider tvlauncher.widget for user 0; expected to find a valid ContentProvider for this authority
2021-01-26 18:21:46.674 2428-11849/com.google.android.tvlauncher E/ActivityThread: Failed to find provider info for com.google.android.katniss.search.searchapi.VoiceInteractionProvider
2021-01-26 18:21:46.676 2428-11848/com.google.android.tvlauncher E/ActivityThread: Failed to find provider info for tvlauncher.widget
2021-01-26 18:21:46.677 2428-11847/com.google.android.tvlauncher E/ActivityThread: Failed to find provider info for tvlauncher.mic
These are just snippets that I felt are relevant for anyone who's faced something similar. I've added the entire log below.
I've looked up plenty, still not sure what's causing this. Found some similar issues here but seemed unrelated / solutions didn't work. Adding them here for reference regardless:
Android app calls onCreate() when coming from background
Failed to find provider in android TV Preferences fragment
SecurityException: Failed to find provider null for user 0; on ActiveAndroid on Android 8.0
java.lang.SecurityException: Failed to find provider questions for user 0; expected to find a valid ContentProvider
Stack:
2021-01-26 18:21:46.674 2428-2428/com.google.android.tvlauncher E/DataLoader: Exception in onStartLoading() on registering content observer for content uri: content://com.google.android.katniss.search.searchapi.VoiceInteractionProvider/sharedvalue
java.lang.SecurityException: Failed to find provider com.google.android.katniss.search.searchapi.VoiceInteractionProvider for user 0; expected to find a valid ContentProvider for this authority
at android.os.Parcel.createException(Parcel.java:1950)
at android.os.Parcel.readException(Parcel.java:1918)
at android.os.Parcel.readException(Parcel.java:1868)
at android.content.IContentService$Stub$Proxy.registerContentObserver(IContentService.java:779)
at android.content.ContentResolver.registerContentObserver(ContentResolver.java:1972)
at android.content.ContentResolver.registerContentObserver(ContentResolver.java:1961)
at com.google.android.tvlauncher.data.DataLoader.onStartLoading(DataLoader.java:75)
at android.content.Loader.startLoading(Loader.java:303)
at android.app.LoaderManagerImpl$LoaderInfo.start(LoaderManager.java:291)
at android.app.LoaderManagerImpl.doStart(LoaderManager.java:791)
at android.app.Fragment.onStart(Fragment.java:1645)
at com.google.android.tvlauncher.home.HomeFragment.onStart(HomeFragment.java:306)
at android.app.Fragment.performStart(Fragment.java:2548)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1334)
at android.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1576)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1637)
at android.app.FragmentManagerImpl.dispatchMoveToState(FragmentManager.java:3046)
at android.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:3003)
at android.app.FragmentController.dispatchStart(FragmentController.java:193)
at android.app.Activity.performStart(Activity.java:7165)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:2937)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:180)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:165)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:142)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
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)
Caused by: android.os.RemoteException: Remote stack trace:
at com.android.server.content.ContentService.registerContentObserver(ContentService.java:340)
at android.content.IContentService$Stub.onTransact(IContentService.java:76)
at com.android.server.content.ContentService.onTransact(ContentService.java:262)
at android.os.Binder.execTransact(Binder.java:731)
2021-01-26 18:21:46.674 2428-11849/com.google.android.tvlauncher E/ActivityThread: Failed to find provider info for com.google.android.katniss.search.searchapi.VoiceInteractionProvider
2021-01-26 18:21:46.674 2428-2428/com.google.android.tvlauncher E/DataLoader: Exception in onStartLoading() on registering content observer for content uri: content://tvlauncher.mic/farfield_mic_status
java.lang.SecurityException: Failed to find provider tvlauncher.mic for user 0; expected to find a valid ContentProvider for this authority
at android.os.Parcel.createException(Parcel.java:1950)
at android.os.Parcel.readException(Parcel.java:1918)
at android.os.Parcel.readException(Parcel.java:1868)
at android.content.IContentService$Stub$Proxy.registerContentObserver(IContentService.java:779)
at android.content.ContentResolver.registerContentObserver(ContentResolver.java:1972)
at android.content.ContentResolver.registerContentObserver(ContentResolver.java:1961)
at com.google.android.tvlauncher.data.DataLoader.onStartLoading(DataLoader.java:75)
at android.content.Loader.startLoading(Loader.java:303)
at android.app.LoaderManagerImpl$LoaderInfo.start(LoaderManager.java:291)
at android.app.LoaderManagerImpl.doStart(LoaderManager.java:791)
at android.app.Fragment.onStart(Fragment.java:1645)
at com.google.android.tvlauncher.home.HomeFragment.onStart(HomeFragment.java:306)
at android.app.Fragment.performStart(Fragment.java:2548)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1334)
at android.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1576)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1637)
at android.app.FragmentManagerImpl.dispatchMoveToState(FragmentManager.java:3046)
at android.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:3003)
at android.app.FragmentController.dispatchStart(FragmentController.java:193)
at android.app.Activity.performStart(Activity.java:7165)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:2937)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:180)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:165)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:142)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
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)
2021-01-26 18:21:46.675 2428-2428/com.google.android.tvlauncher E/PrtnrWidgetInfoLdr: Exception in onStartLoading() on registering content observer
java.lang.SecurityException: Failed to find provider tvlauncher.widget for user 0; expected to find a valid ContentProvider for this authority
at android.os.Parcel.createException(Parcel.java:1950)
at android.os.Parcel.readException(Parcel.java:1918)
at android.os.Parcel.readException(Parcel.java:1868)
at android.content.IContentService$Stub$Proxy.registerContentObserver(IContentService.java:779)
at android.content.ContentResolver.registerContentObserver(ContentResolver.java:1972)
at android.content.ContentResolver.registerContentObserver(ContentResolver.java:1961)
at com.google.android.tvlauncher.data.PartnerWidgetInfoLoader.onStartLoading(PartnerWidgetInfoLoader.java:66)
at android.content.Loader.startLoading(Loader.java:303)
at android.app.LoaderManagerImpl$LoaderInfo.start(LoaderManager.java:291)
at android.app.LoaderManagerImpl.doStart(LoaderManager.java:791)
at android.app.Fragment.onStart(Fragment.java:1645)
at com.google.android.tvlauncher.home.HomeFragment.onStart(HomeFragment.java:306)
at android.app.Fragment.performStart(Fragment.java:2548)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1334)
at android.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1576)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1637)
at android.app.FragmentManagerImpl.dispatchMoveToState(FragmentManager.java:3046)
at android.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:3003)
at android.app.FragmentController.dispatchStart(FragmentController.java:193)
at android.app.Activity.performStart(Activity.java:7165)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:2937)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…