I'm using Android P and compiling against AndroidX. Works great in debug/beta, but when I make a release I get a cryptic crash during runtime:
2018-06-24 00:21:26.080 11971-11971/? E/LoadedApk: Unable to
instantiate appComponentFactory
java.lang.ClassNotFoundException: Didn't find class "androidx.core.app.CoreComponentFactory" on path: DexPathList[[zip
file
"/data/app/app.itsyour.elegantstocks-EuVZWdDgzplhm0Hpa90VwA==/base.apk"],nativeLibraryDirectories=[/data/app/app.itsyour.elegantstocks-EuVZWdDgzplhm0Hpa90VwA==/lib/x86,
/system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:126)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.LoadedApk.createAppFactory(LoadedApk.java:226)
at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:731)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:772)
at android.app.LoadedApk.getResources(LoadedApk.java:994)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2345)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5736)
at android.app.ActivityThread.access$1000(ActivityThread.java:197)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1634)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6642)
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)
2018-06-24 00:21:26.145 1667-1854/? E/SurfaceFlinger:
ro.sf.lcd_density must be defined as a build property 2018-06-24
00:21:26.233 1667-1703/? E/SurfaceFlinger: ro.sf.lcd_density must be
defined as a build property 2018-06-24 00:21:29.627 1796-1913/?
E/TaskPersister: File error accessing recents directory (directory
doesn't exist?). 2018-06-24 00:21:30.087 11971-11971/?
E/AndroidRuntime: FATAL EXCEPTION: main
Process: app.itsyour.elegantstocks, PID: 11971
java.lang.IllegalArgumentException: Parameter specified as non-null is null: method c.d.b.h.b, parameter $receiver
at app.itsyour.elegantstocks.a.b.a(Unknown Source:2)
at app.itsyour.elegantstocks.feature.navigator.b.a$a.a(Unknown Source:24)
at app.itsyour.elegantstocks.feature.navigator.b.a.a(Unknown Source:13)
at app.itsyour.elegantstocks.feature.navigator.b.a.a(Unknown Source:2)
at androidx.recyclerview.widget.RecyclerView$a.a(Unknown Source:0)
at androidx.recyclerview.widget.RecyclerView$a.b(Unknown Source:29)
at androidx.recyclerview.widget.RecyclerView$p.a(Unknown Source:39)
at androidx.recyclerview.widget.RecyclerView$p.a(Unknown Source:510)
at androidx.recyclerview.widget.RecyclerView$p.a(Unknown Source:5)
at androidx.recyclerview.widget.RecyclerView$p.c(Unknown Source:1)
at androidx.recyclerview.widget.LinearLayoutManager$c.a(Unknown
Source:11)
at androidx.recyclerview.widget.LinearLayoutManager.a(Unknown Source:0)
at androidx.recyclerview.widget.LinearLayoutManager.a(Unknown Source:44)
at androidx.recyclerview.widget.LinearLayoutManager.c(Unknown Source:371)
at androidx.recyclerview.widget.RecyclerView.O(Unknown Source:42)
at androidx.recyclerview.widget.RecyclerView.q(Unknown Source:41)
at androidx.recyclerview.widget.RecyclerView.onLayout(Unknown Source:5)
at android.view.View.layout(View.java:20670)
at android.view.ViewGroup.layout(ViewGroup.java:6194)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:20670)
at android.view.ViewGroup.layout(ViewGroup.java:6194)
at androidx.constraintlayout.widget.ConstraintLayout.onLayout(Unknown
Source:66)
at android.view.View.layout(View.java:20670)
at android.view.ViewGroup.layout(ViewGroup.java:6194)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:20670)
at android.view.ViewGroup.layout(ViewGroup.java:6194)
at androidx.swiperefreshlayout.widget.SwipeRefreshLayout.onLayout(Unknown
Source:60)
at android.view.View.layout(View.java:20670)
at android.view.ViewGroup.layout(ViewGroup.java:6194)
at androidx.coordinatorlayout.widget.CoordinatorLayout.d(Unknown
Source:143)
at androidx.coordinatorlayout.widget.CoordinatorLayout.a(Unknown
Source:32)
at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayout(Unknown
Source:48)
at android.view.View.layout(View.java:20670)
at android.view.ViewGroup.layout(ViewGroup.java:6194)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:20670)
at android.view.ViewGroup.layout(ViewGroup.java:6194)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
at android.view.View.layout(View.java:20670)
at android.view.ViewGroup.layout(ViewGroup.java:6194)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:20670)
at android.view.ViewGroup.layout(ViewGroup.java:6194)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
at android.view.View.layout(View.java:20670)
at android.view.ViewGroup.layout(ViewGroup.java:6194)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at com.android.internal.policy.DecorView.onLayout(DecorView.java:753)
at android.view.View.layout(View.java:20670) 2018-06-24 00:21:30.087 11971-11971/? E/AndroidRuntime: at
android.view.ViewGroup.layout(ViewGroup.java:6194)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2767)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2294)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1447)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7130)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:935)
at android.view.Choreographer.doCallbacks(Choreographer.java:747)
at android.view.Choreographer.doFrame(Choreographer.java:682)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:921)
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:6642)
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)
2018-06-24 00:21:30.137 1796-1880/? E/InputDispatcher: channel
'5896582
app.itsyour.elegantstocks/app.itsyour.elegantstocks.feature.navigator.NavigatorActivity
(server)' ~ Channel is unrecoverably broken and will be disposed!
2018-06-24 00:21:30.253 5198-9377/? E/EntrySyncManager: Cannot
determine account name: drop request 2018-06-24 00:21:30.253
5198-9377/? E/NowController: Failed to access data from EntryProvider.
ExecutionException.
java.util.concurrent.ExecutionException: com.google.android.apps.gsa.sidekick.main.h.n: Could not complete
scheduled request to refresh entries. ClientErrorCode: 3
at com.google.common.util.concurrent.d.eA(SourceFile:85)
at com.google.common.util.concurrent.d.get(SourceFile:23)
at com.google.common.util.concurrent.l.get(SourceFile:2)
at com.google.android.apps.gsa.staticplugins.nowstream.b.a.be.caI(SourceFile:47)
at com.google.android.apps.gsa.staticplugins.nowstream.b.a.be.caH(SourceFile:176)
at com.google.android.apps.gsa.staticplugins.nowstream.b.a.bh.run(Unknown
Source:2)
at com.google.android.apps.gsa.shared.util.concurrent.at.run(SourceFile:4)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.google.android.apps.gsa.shared.util.concurrent.b.g.run(Unknown
Source:4)
at com.google.android.apps.gsa.shared.util.concurrent.b.aw.run(SourceFile:4)
at com.google.android.apps.gsa.shared.util.concurrent.b.aw.run(SourceFile:4)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
at com.google.android.apps.gsa.shared.util.concurrent.b.i.run(SourceFile:6)
Caused by: com.google.android.apps.gsa.sidekick.main.h.n: Could not complete scheduled request to refresh entries. ClientErrorCode: 3
at com.google.android.apps.gsa.staticplugins.nowstream.b.a.aq.az(Unknown
Source:4)
at com.google.common.util.concurrent.q.ap(SourceFile:7)
at com.google.common.util.concurrent.p.run(SourceFile:32)
at com.google.common.util.concurrent.bt.execute(SourceFile:3)
at com.google.common.util.concurrent.d.b(SourceFile:275)
at com.google.common.util.concurrent.d.addListener(SourceFile:135)
at com.google.common.util.concurrent.p.b(SourceFile:3)
at com.google.android.apps.gsa.shared.util.concurrent.h.a(SourceFile:16)
at com.google.android.apps.gsa.shared.util.concurrent.h.a(SourceFile:13)
at com.google.android.apps.gsa.staticplugins.nowstream.b.a.be.caI(SourceFile:45)
at com.google.android.apps.gsa.staticplugins.nowstream.b.a.be.caH(SourceFile:176)?
at com.google.android.apps.gsa.staticplugins.nowstream.b.a.bh.run(Unknown
Source:2)?
at com.google.android.apps.gsa.shared.util.concurrent.at.run(SourceFile:4)?
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)?
at java.util.concurrent.FutureTask.run(FutureTask.java:266)?
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)?
at java.util.concurrent.FutureTask.run(FutureTask.java:266)?
at com.google.android.apps.gsa.shared.util.concurrent.b.g.run(Unknown
Source:4)?
at com.google.android.apps.gsa.shared.util.concurrent.b.aw.run(SourceFile:4)?
at
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…