我正在开发一个星体内的图书馆,我用两种方式对它进行测试,一种是使用密码的图书馆,另一种是手法。
Of course, I test all the library in the app with code version, after this, I try to test the app with the aar.
但是,在处决 app子时,我发现错误。
2019-11-27 10:44:19.795 26687-26687/? E/AndroidRuntime: FATAL EXCEPTION: main Process: apps, PID: 26687 java.lang.AbstractMethodError: abstract method "void androidx.lifecycle.DefaultLifecycleObserver.onCreate(androidx.lifecycle.LifecycleOwner)" at androidx.lifecycle.FullLifecycleObserverAdapter.onStateChanged(FullLifecycleObserverAdapter.java:34) at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.java:361) at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.java:188) at SDK.initSDK(SourceFile:15) at SDK.initSDK(SourceFile:13) at apps.SApplication.onCreate(SApplication.java:20) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1155) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5885) at android.app.ActivityThread.access$1100(ActivityThread.java:200) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1651) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6692) 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)
资料来源:15和13。
如果图书馆完全符合该守则,那么我会发现这一错误?
感谢。