Comments (5)
gradle3.0变化太大,很多原有api不起作用(应该是bug),所以1.2的版本不兼容,建议换到1.3的版本
from router.
我尝试修改了一下插件里的判断方式, 姑且解决了3.0.0上的这个问题. 希望日后有更优雅的方式可以解决
`
subs.findAll {
String file = it.buildFile.text
String regxLibrary = "apply plugin:\\s*['\"]" + LIBRARY + "['\"]"
String regxRouterPlugin = "apply plugin:\\s*['\"]" + ROUTER_PLUGIN + "['\"]"
file.find(regxLibrary) != null && file.find(regxRouterPlugin) != null
//it.plugins.hasPlugin(LIBRARY) && it.plugins.hasPlugin(RouterPlugin)
}
`
from router.
解决方式太硬了。。。
from router.
没办法. 我觉得插件的这个自动register module的特性是个亮点, 不想抛弃它使用1.3的方式. 但苦于对gradle插件和api的不熟悉只能用这样暴力的方法了.. 期待你找到更好的方式我再跟上:)
from router.
临时方案还不错的 我是干脆写成以app开头的全部加进去。。。
from router.
Related Issues (20)
- AppInterceptorsHandler看代码一个问题,会导致公共拦截器和私有拦截器执行顺序混乱 HOT 1
- android 6.0 出现的内存溢出 HOT 1
- [Router 1.7.5]每次构建路由表都会发生变化,导致编译速度变慢 HOT 3
- 编译时遇到java.lang.reflect.InvocationTargetException HOT 2
- 希望可以支持onActivityResult 和activity解藕 HOT 2
- jcenter即将关闭,请问何时迁移? HOT 2
- Build 发生异常 HOT 1
- 1.7.5版本在release包中 mSettingFragment是null HOT 2
- Kotlin 1.5.20 版本编译报错 HOT 1
- 部分Module 不生效 HOT 12
- 版本1.8.0,如果module的application为光秃秃的<application>。则报错org.xml.sax.SAXParseException; lineNumber: xxx; columnNumber: xxx; The prefix "android" for attribute "android:name" associated with an element type "meta-data" is not bound. HOT 3
- 有时候跳转没反应。请问是什么原因呢。1.7.6 HOT 12
- 可以适配下Android12吗 HOT 1
- '元素类型 "uses-sdk" 必须后跟属性规范 ">" 或 "/>"。' HOT 13
- fragment跳转fragment未生效? HOT 2
- 1.8.1Cannot invoke method appendNode() on null object HOT 26
- 开启混淆后运行报错 java.lang.AbstractMethodError HOT 4
- Cannot invoke method appendNode() on null object HOT 13
- 支持scheme协议吗 HOT 1
- No option `moduleName` passed to Route annotation processor. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from router.