meituan / WMRouter

WMRouter是一款Android路由框架,基于组件化的设计思路,有功能灵活、使用简单的特点。
https://tech.meituan.com/meituan_waimai_android_open_source_routing_framework.html
Apache License 2.0
2.31k stars 342 forks source link

使用RouterPage注解 AS 编译失败 #107

Closed JacksenLaw closed 1 year ago

JacksenLaw commented 3 years ago

使用: @RouterPage(path = "/fragment1", interceptors = DemoFragmentInterceptor.class) public class Demo1Fragment extends Fragment { } 日志如下:

Task :app:compileDebugJavaWithJavac FAILED The following annotation processors are not incremental: compiler-1.2.1.jar (io.github.meituan-dianping:compiler:1.2.1). Make sure all annotation processors are incremental to improve your build speed. 警告: 来自注释处理程序 'org.gradle.api.internal.tasks.compile.processing.TimeTrackingProcessor' 的受支持 source 版本 'RELEASE_7' 低于 -source '8' 1 个警告

Execution failed for task ':app:compileDebugJavaWithJavac'.

java.lang.NullPointerException

去掉注解即可编译通过

Leifzhang commented 3 years ago

大佬 编译的时候加个-s 之后可以把日志 翻出来让我们看下

JacksenLaw commented 3 years ago

FAILURE: Build failed with an exception.

Leifzhang commented 3 years ago

https://github.com/meituan/WMRouter/pull/108 已经提交mr了