You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sankuai.waimai.router.generated.ServiceLoaderInit
at com.sankuai.waimai.router.components.DefaultLogger.handleError(DefaultLogger.java:80)
at com.example.lee.app.TestApplication$1.handleError(TestApplication.java:108)
at com.sankuai.waimai.router.components.DefaultLogger.fatal(DefaultLogger.java:69)
at com.sankuai.waimai.router.core.Debugger.fatal(Debugger.java:121)
at com.sankuai.waimai.router.service.ServiceLoader$1.doInit(ServiceLoader.java:43)
at com.sankuai.waimai.router.utils.LazyInitHelper.performInit(LazyInitHelper.java:50)
at com.sankuai.waimai.router.utils.LazyInitHelper.ensureInit(LazyInitHelper.java:37)
at com.sankuai.waimai.router.service.ServiceLoader.load(ServiceLoader.java:75)
at com.sankuai.waimai.router.Router.getAllServices(Router.java:217)
at com.sankuai.waimai.router.components.DefaultAnnotationLoader.load(DefaultAnnotationLoader.java:20)
at com.sankuai.waimai.router.components.RouterComponents.loadAnnotation(RouterComponents.java:49)
at com.sankuai.waimai.router.common.PageAnnotationHandler.initAnnotationConfig(PageAnnotationHandler.java:52)
at com.sankuai.waimai.router.common.PageAnnotationHandler$1.doInit(PageAnnotationHandler.java:35)
at com.sankuai.waimai.router.utils.LazyInitHelper.performInit(LazyInitHelper.java:50)
at com.sankuai.waimai.router.utils.LazyInitHelper.ensureInit(LazyInitHelper.java:37)
at com.sankuai.waimai.router.common.PageAnnotationHandler.handle(PageAnnotationHandler.java:57)
at com.sankuai.waimai.router.core.ChainedHandler.next(ChainedHandler.java:55)
at com.sankuai.waimai.router.core.ChainedHandler.handleInternal(ChainedHandler.java:48)
at com.sankuai.waimai.router.core.UriHandler.handle(UriHandler.java:61)
at com.sankuai.waimai.router.core.RootUriHandler.startUri(RootUriHandler.java:100)
at com.sankuai.waimai.router.Router.startUri(Router.java:97)
at com.example.lee.activity.MainActivity.onClick(MainActivity.java:331)
at android.view.View.performClick(View.java:6659)
at android.view.View.performClickInternal(View.java:6631)
at android.view.View.access$3100(View.java:790)
at android.view.View$PerformClick.run(View.java:26187)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.ClassNotFoundException: com.sankuai.waimai.router.generated.ServiceLoaderInit
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:453)
at java.lang.Class.forName(Class.java:378)
at com.sankuai.waimai.router.service.ServiceLoader$1.doInit(ServiceLoader.java:38)
at com.sankuai.waimai.router.utils.LazyInitHelper.performInit(LazyInitHelper.java:50)
at com.sankuai.waimai.router.utils.LazyInitHelper.ensureInit(LazyInitHelper.java:37)
at com.sankuai.waimai.router.service.ServiceLoader.load(ServiceLoader.java:75)
at com.sankuai.waimai.router.Router.getAllServices(Router.java:217)
at com.sankuai.waimai.router.components.DefaultAnnotationLoader.load(DefaultAnnotationLoader.java:20)
at com.sankuai.waimai.router.components.RouterComponents.loadAnnotation(RouterComponents.java:49)
at com.sankuai.waimai.router.common.PageAnnotationHandler.initAnnotationConfig(PageAnnotationHandler.java:52)
at com.sankuai.waimai.router.common.PageAnnotationHandler$1.doInit(PageAnnotationHandler.java:35)
at com.sankuai.waimai.router.utils.LazyInitHelper.performInit(LazyInitHelper.java:50)
at com.sankuai.waimai.router.utils.LazyInitHelper.ensureInit(LazyInitHelper.java:37)
at com.sankuai.waimai.router.common.PageAnnotationHandler.handle(PageAnnotationHandler.java:57)
at com.sankuai.waimai.router.core.ChainedHandler.next(ChainedHandler.java:55)
at com.sankuai.waimai.router.core.ChainedHandler.handleInternal(ChainedHandler.java:48)
at com.sankuai.waimai.router.core.UriHandler.handle(UriHandler.java:61)
at com.sankuai.waimai.router.core.RootUriHandler.startUri(RootUriHandler.java:100)
at com.sankuai.waimai.router.Router.startUri(Router.java:97)
at com.example.lee.activity.MainActivity.onClick(MainActivity.java:331)
at android.view.View.performClick(View.java:6659)
at android.view.View.performClickInternal(View.java:6631)
at android.view.View.access$3100(View.java:790)
at android.view.View$PerformClick.run(View.java:26187)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sankuai.waimai.router.generated.ServiceLoaderInit" on path: DexPathList[[zip file "/data/app/com.example.lee-FHAnS1UDFB1WaRH-DqHcmg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.lee-FHAnS1UDFB1WaRH-DqHcmg==/lib/arm64, /data/app/com.example.lee-FHAnS1UDFB1WaRH-DqHcmg==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64, /prets/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:453)
at java.lang.Class.forName(Class.java:378)
at com.sankuai.waimai.router.service.ServiceLoader$1.doInit(ServiceLoader.java:38)
at com.sankuai.waimai.router.utils.LazyInitHelper.performInit(LazyInitHelper.java:50)
at com.sankuai.waimai.router.utils.LazyInitHelper.ensureInit(LazyInitHelper.java:37)
at com.sankuai.waimai.router.service.ServiceLoader.load(ServiceLoader.java:75)
at com.sankuai.waimai.router.Router.getAllServices(Router.java:217)
at com.sankuai.waimai.router.components.DefaultAnnotationLoader.load(DefaultAnnotationLoader.java:20)
at com.sankuai.waimai.router.components.RouterComponents.loadAnnotation(RouterComponents.java:49)
at com.sankuai.waimai.router.common.PageAnnotationHandler.initAnnotationConfig(PageAnnotationHandler.java:52)
at com.sankuai.waimai.router.common.PageAnnotationHandler$1.doInit(PageAnnotationHandler.java:35)
at com.sankuai.waimai.router.utils.LazyInitHelper.performInit(LazyInitHelper.java:50)
at com.sankuai.waimai.router.utils.LazyInitHelper.ensureInit(LazyInitHelper.java:37)
at com.sankuai.waimai.router.common.PageAnnotationHandler.handle(PageAnnotationHandler.java:57)
at com.sankuai.waimai.router.core.ChainedHandler.next(ChainedHandler.java:55)
at com.sankuai.waimai.router.core.ChainedHandler.handleInternal(ChainedHandler.java:48)
at com.sankuai.waimai.router.core.UriHandler.handle(UriHandler.java:61)
at com.sankuai.waimai.router.core.RootUriHandler.startUri(RootUriHandler.java:100)
at com.sankuai.waimai.router.Router.startUri(Router.java:97)
at com.example.lee.activity.MainActivity.onClick(MainActivity.java:331)
at android.view.View.performClick(View.java:6659)
at android.view.View.performClickInternal(View.java:6631)
at android.view.View.access$3100(View.java:790)
at android.view.View$PerformClick.run(View.java:26187)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
The text was updated successfully, but these errors were encountered:
检查 transform 下面没有生成 ServiceLoaderInit,只有一个.R的文件,不知道为啥没有生成出来,配置跟demo 一样 还能什么情况可能影响compiler 生成代码? 我这边也出现上面的问题 [WMRouter] GenerateInit: skipped, no service found
java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sankuai.waimai.router.generated.ServiceLoaderInit
at com.sankuai.waimai.router.components.DefaultLogger.handleError(DefaultLogger.java:80)
at com.example.lee.app.TestApplication$1.handleError(TestApplication.java:108)
at com.sankuai.waimai.router.components.DefaultLogger.fatal(DefaultLogger.java:69)
at com.sankuai.waimai.router.core.Debugger.fatal(Debugger.java:121)
at com.sankuai.waimai.router.service.ServiceLoader$1.doInit(ServiceLoader.java:43)
at com.sankuai.waimai.router.utils.LazyInitHelper.performInit(LazyInitHelper.java:50)
at com.sankuai.waimai.router.utils.LazyInitHelper.ensureInit(LazyInitHelper.java:37)
at com.sankuai.waimai.router.service.ServiceLoader.load(ServiceLoader.java:75)
at com.sankuai.waimai.router.Router.getAllServices(Router.java:217)
at com.sankuai.waimai.router.components.DefaultAnnotationLoader.load(DefaultAnnotationLoader.java:20)
at com.sankuai.waimai.router.components.RouterComponents.loadAnnotation(RouterComponents.java:49)
at com.sankuai.waimai.router.common.PageAnnotationHandler.initAnnotationConfig(PageAnnotationHandler.java:52)
at com.sankuai.waimai.router.common.PageAnnotationHandler$1.doInit(PageAnnotationHandler.java:35)
at com.sankuai.waimai.router.utils.LazyInitHelper.performInit(LazyInitHelper.java:50)
at com.sankuai.waimai.router.utils.LazyInitHelper.ensureInit(LazyInitHelper.java:37)
at com.sankuai.waimai.router.common.PageAnnotationHandler.handle(PageAnnotationHandler.java:57)
at com.sankuai.waimai.router.core.ChainedHandler.next(ChainedHandler.java:55)
at com.sankuai.waimai.router.core.ChainedHandler.handleInternal(ChainedHandler.java:48)
at com.sankuai.waimai.router.core.UriHandler.handle(UriHandler.java:61)
at com.sankuai.waimai.router.core.RootUriHandler.startUri(RootUriHandler.java:100)
at com.sankuai.waimai.router.Router.startUri(Router.java:97)
at com.example.lee.activity.MainActivity.onClick(MainActivity.java:331)
at android.view.View.performClick(View.java:6659)
at android.view.View.performClickInternal(View.java:6631)
at android.view.View.access$3100(View.java:790)
at android.view.View$PerformClick.run(View.java:26187)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.ClassNotFoundException: com.sankuai.waimai.router.generated.ServiceLoaderInit
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:453)
at java.lang.Class.forName(Class.java:378)
at com.sankuai.waimai.router.service.ServiceLoader$1.doInit(ServiceLoader.java:38)
at com.sankuai.waimai.router.utils.LazyInitHelper.performInit(LazyInitHelper.java:50)
at com.sankuai.waimai.router.utils.LazyInitHelper.ensureInit(LazyInitHelper.java:37)
at com.sankuai.waimai.router.service.ServiceLoader.load(ServiceLoader.java:75)
at com.sankuai.waimai.router.Router.getAllServices(Router.java:217)
at com.sankuai.waimai.router.components.DefaultAnnotationLoader.load(DefaultAnnotationLoader.java:20)
at com.sankuai.waimai.router.components.RouterComponents.loadAnnotation(RouterComponents.java:49)
at com.sankuai.waimai.router.common.PageAnnotationHandler.initAnnotationConfig(PageAnnotationHandler.java:52)
at com.sankuai.waimai.router.common.PageAnnotationHandler$1.doInit(PageAnnotationHandler.java:35)
at com.sankuai.waimai.router.utils.LazyInitHelper.performInit(LazyInitHelper.java:50)
at com.sankuai.waimai.router.utils.LazyInitHelper.ensureInit(LazyInitHelper.java:37)
at com.sankuai.waimai.router.common.PageAnnotationHandler.handle(PageAnnotationHandler.java:57)
at com.sankuai.waimai.router.core.ChainedHandler.next(ChainedHandler.java:55)
at com.sankuai.waimai.router.core.ChainedHandler.handleInternal(ChainedHandler.java:48)
at com.sankuai.waimai.router.core.UriHandler.handle(UriHandler.java:61)
at com.sankuai.waimai.router.core.RootUriHandler.startUri(RootUriHandler.java:100)
at com.sankuai.waimai.router.Router.startUri(Router.java:97)
at com.example.lee.activity.MainActivity.onClick(MainActivity.java:331)
at android.view.View.performClick(View.java:6659)
at android.view.View.performClickInternal(View.java:6631)
at android.view.View.access$3100(View.java:790)
at android.view.View$PerformClick.run(View.java:26187)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sankuai.waimai.router.generated.ServiceLoaderInit" on path: DexPathList[[zip file "/data/app/com.example.lee-FHAnS1UDFB1WaRH-DqHcmg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.lee-FHAnS1UDFB1WaRH-DqHcmg==/lib/arm64, /data/app/com.example.lee-FHAnS1UDFB1WaRH-DqHcmg==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64, /prets/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:453)
at java.lang.Class.forName(Class.java:378)
at com.sankuai.waimai.router.service.ServiceLoader$1.doInit(ServiceLoader.java:38)
at com.sankuai.waimai.router.utils.LazyInitHelper.performInit(LazyInitHelper.java:50)
at com.sankuai.waimai.router.utils.LazyInitHelper.ensureInit(LazyInitHelper.java:37)
at com.sankuai.waimai.router.service.ServiceLoader.load(ServiceLoader.java:75)
at com.sankuai.waimai.router.Router.getAllServices(Router.java:217)
at com.sankuai.waimai.router.components.DefaultAnnotationLoader.load(DefaultAnnotationLoader.java:20)
at com.sankuai.waimai.router.components.RouterComponents.loadAnnotation(RouterComponents.java:49)
at com.sankuai.waimai.router.common.PageAnnotationHandler.initAnnotationConfig(PageAnnotationHandler.java:52)
at com.sankuai.waimai.router.common.PageAnnotationHandler$1.doInit(PageAnnotationHandler.java:35)
at com.sankuai.waimai.router.utils.LazyInitHelper.performInit(LazyInitHelper.java:50)
at com.sankuai.waimai.router.utils.LazyInitHelper.ensureInit(LazyInitHelper.java:37)
at com.sankuai.waimai.router.common.PageAnnotationHandler.handle(PageAnnotationHandler.java:57)
at com.sankuai.waimai.router.core.ChainedHandler.next(ChainedHandler.java:55)
at com.sankuai.waimai.router.core.ChainedHandler.handleInternal(ChainedHandler.java:48)
at com.sankuai.waimai.router.core.UriHandler.handle(UriHandler.java:61)
at com.sankuai.waimai.router.core.RootUriHandler.startUri(RootUriHandler.java:100)
at com.sankuai.waimai.router.Router.startUri(Router.java:97)
at com.example.lee.activity.MainActivity.onClick(MainActivity.java:331)
at android.view.View.performClick(View.java:6659)
at android.view.View.performClickInternal(View.java:6631)
at android.view.View.access$3100(View.java:790)
at android.view.View$PerformClick.run(View.java:26187)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
The text was updated successfully, but these errors were encountered: