Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    刘志龙
    @zhi1ong
    Hello world.
    X-ray
    @chengfangpeng
    hello
    Rethen
    @Rethen
    不同的module之间怎么跳转啊
    比如一个activity在module1,要跳转到另一个activity,而这个activity在module2
    跳转总是失败
    刘志龙
    @zhi1ong
    @Rethen 多半是因为你子模块没有 依赖arouter-compiler, 也可能是你根本就没依赖子模块。
    Jerry Wu
    @yizhew
    我遇上一个小问题,我今天刚刚开始尝试arouter,一共两个activity, 从第一个打开第二个很正常,第二个activity我放置了一个返回键,简单的调用finish(), 但是现在需要两次点击才能回到第一个activity
    我跟踪了一下,第一次点击返回后,会重新进入onCreate时间,又重建了第二个activity
    Jerry Wu
    @yizhew
    打搅了,找到问题,之前标准的intent打开第二个activity没有注释干净
    Nianxin
    @BelongsH
    有个问题想要请教一下, 就是IProvider这个类支持通过路由来结构, 调用路由的方式有两种,一种是根据名称, 一种是根据类型。 当存在多种类型的时候,有没有考虑分发这个消息呢?
    JinyuZhang
    @JinyuZhang
    gradle3.0.1 正常配置 arouter不生效 一直提示There is no route match the path xxx
    licl1008
    @licl1008
    请问各位 ARouter::There is no route match the path [/arouter/service/interceptor 有些手机总报这个, 有些手机不会。 这是为什么? 报了这个后,跳转无法使用了
    chris-wu2015
    @chris-wu2015
    请问模块化使用ARouter来管理service,不同module下的service只有一个module下的能找到,其他module下的service因为生成的ARouterGroupGroupservice同包同类名冲突了,找不到,怎么解决?
    chris-wu2015
    @chris-wu2015
    好吧,终于找到一个暂时的解决方案了,定义service的path里,不同module的group不能相同,即第一个/后的字符串不能相同
    gaoyuan
    @scsfwgy
    新人,代码拉下来超时:ERROR: Cause: connect timed out 'Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/arouter-register/1.0.2/arouter-register-1.0.2.pom'.
    at org.gradle.internal.resource.ResourceExceptions.failure(ResourceExceptions.java:74)
    at org.gradle.internal.resource.ResourceExceptions.getFailed(ResourceExceptions.java:57)
    at org.gradle.internal.resource.transfer.DefaultCacheAwareExternalResourceAccessor.copyToCache(DefaultCacheAwareExternalResourceAccessor.java:201)
    at org.gradle.internal.resource.transfer.DefaultCacheAwareExternalResourceAccessor.access$300(DefaultCacheAwareExternalResourceAccessor.java:55)
    at org.gradle.internal.resource.transfer.DefaultCacheAwareExternalResourceAccessor$1.create(DefaultCacheAwareExternalResourceAccessor.java:90)
    at org.gradle.internal.resource.transfer.DefaultCacheAwareExternalResourceAccessor$1.create(DefaultCacheAwareExternalResourceAccessor.java:82)
    at org.gradle.cache.internal.ProducerGuard$AdaptiveProducerGuard.guardByKey(ProducerGuard.java:97)
    at org.gradle.internal.resource.transfer.DefaultCacheAwareExternalResourceAccessor.getResource(DefaultCacheAwareExternalResourceAccessor.java:82)
    at org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver.downloadByCoords(DefaultExternalResourceArtifactResolver.java:138)
    at org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver.downloadStaticResource(DefaultExternalResourceArtifactResolver.java:98)
    at org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver.resolveArtifact(DefaultExternalResourceArtifactResolver.java:65)
    at org.gradle.api.internal.artifacts.repositories.metadata.AbstractRepositoryMetadataSource.parseMetaDataFromArtifact(AbstractRepositoryMetadataSource.java:69)
    at org.gradle.api.internal.artifacts.repositories.metadata.AbstractRepositoryMetadataSource.create(AbstractRepositoryMetadataSource.java:59)
    at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver.resolveStaticDependency(ExternalResourceResolver.java:199)
    at org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver.doResolveComponentMetaData(MavenResolver.java:117)
    at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver$RemoteRepositoryAccess.resolveComponentMetaData(ExternalResourceResolver.java:400)
    at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository$ResolveAndCacheRepositoryAccess.resolveComponentMetaData(CachingModuleComponentRepository.java:381)
    at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.resolveComponentMetaData(ErrorHandlingModuleComponentRepository.java:136)
    ... 133 more
    Caused by: org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/arouter-register/1.0.2/arouter-register-1.0.2.pom'.
    at org.gradle.internal.resource.transport.http.HttpClientHelper.performRequest(HttpClientHelper.java:96)
    at org.gradle.internal.resource.transport.http.HttpClientHelper.performRawGet(HttpClientHelper.java:80)
    at org.gradle.internal.resource.transport.http.HttpClientHelper.performGet(HttpClientHelper.java:84)
    at org.gradle.internal.resource.transport.http.HttpResourceAccessor.openResource(HttpResourceAccessor.java:43)
    at org.gradle.internal.resource.transport.http.HttpResourceAccessor.openResource(HttpResourceAccessor.java:29)
    at org.gradle.internal.resource.transfer.DefaultExternalResourceConnector.openResource(DefaultExternalResourceConnector.java:56)
    at org.gradle.internal.resource.transfer.ProgressLoggingExternalResourceAccessor.openResource(ProgressLoggingExternalResourceAccessor.java:36)
    at org.gradle.internal.resource.transfer.AccessorBackedExternalResource.withContentIfPresent(AccessorBackedExternalResource.java:130)
    at org.gradle.'
    ExtremeWill
    @ExtremeWill
    2019-10-04 10:56:27.585 25793-25793/ai.rrr.rwp E/AndroidRuntime: FATAL EXCEPTION: main
    Process: ai.rrr.rwp, PID: 25793
    com.alibaba.android.arouter.exception.HandlerException: Init provider failed! Init provider failed! PhoneUtils.getIMEI() must not be null
    at com.alibaba.android.arouter.core.LogisticsCenter.completion(LogisticsCenter.java:304)
    at com.alibaba.android.arouter.core.LogisticsCenter.completion(LogisticsCenter.java:261)
    at com.alibaba.android.arouter.launcher._ARouter.navigation(_ARouter.java:284)
    at com.alibaba.android.arouter.launcher.ARouter.navigation(ARouter.java:183)
    at com.alibaba.android.arouter.facade.Postcard.navigation(Postcard.java:149)
    at com.alibaba.android.arouter.facade.Postcard.navigation(Postcard.java:140)
    at com.alibaba.android.arouter.facade.Postcard.navigation(Postcard.java:131)
    有人遇到这个问题么,mate30必现
    Catherine
    @Catherinelhl
    ERROR: Could not get unknown property 'arouter' for project ':app' of type org.gradle.api.Project.
    Catherine
    @Catherinelhl
    ERROR: Plugin with id 'com.alibaba.arouter' not found.
    Catherine
    @Catherinelhl
    有人遇到这个问题么
    hzqhzqhzq
    @hzqhzqhzq1
    hello
    anybody here?
    He Yun Fei
    @laohehe
    lalal
    im here
    hello?
    SPARKMichael
    @SPARKMichael
    Could not get unknown property 'intellijPublishUsername' for task ':arouter-idea-plugin:publishPlugin' of type org.jetbrains.intellij.tasks.PublishTask.
    这个问题怎么搞啊?
    DavidZhao
    @DaileyZhao
    Could not get unknown property 'intellijPublishUsername' for task ':arouter-idea-plugin:publishPlugin' of type org.jetbrains.intellij.tasks.PublishTask.
    小 强
    @gqdy365_gitlab
    问一下对Androidx的支持什么时候能加上?
    刘志龙
    @zhi1ong
    @DaileyZhao :arouter-idea-plugin 这个是 idea 插件的代码,publishPlugin 是用来发布插件的,自己源码编译的时候,不需要依赖这个 module
    kobe-bean
    @kobe-bean
    兄弟 看来阿里技术很多也不咋样啊 技术有待提升 看看目录结构乱七八糟的
    刘志龙
    @zhi1ong
    @kobe-bean 这是条理清晰,不是乱七八糟,你要是有更好的整理办法,可以提 MR,合适的话,可以合并进来
    Martini Yu
    @yukuoyuan
    IProvider 如何实现异步方法?
    Bluce.Quain
    @nicGithub
    怎么搞得现在都编译不了了啊,各种依赖下载不了?
    Charles
    @yuCharles

    怎么搞得现在都编译不了了啊,各种依赖下载不了?

    publishPlugin 相关的内容注掉,剩下的多等就能编译通过了 by AS 4.0

    Neil
    @zeuscode

    Compiling with JDK Java compiler API.
    注: ARouter::Compiler >>> AutowiredProcessor init. <<<
    警告: 来自注释处理程序 'org.gradle.api.internal.tasks.compile.processing.TimeTrackingProcessor' 的受支持 source 版本 'RELEASE_7' 低于 -source '1.8'
    注: ARouter::Compiler The user has configuration the module name, it was [app]
    Task :app:compileDebugJavaWithJavac in app Finished
    :app:compileDebugJavaWithJavac (Thread[Execution worker for ':' Thread 10,5,main]) completed. Took 0.081 secs.

    FAILURE: Build failed with an exception.

    这个问题有人遇到过吗
    Neil
    @zeuscode
        at com.alibaba.android.arouter.compiler.processor.InterceptorProcessor.init(InterceptorProcessor.java:103)
    jiangshihua
    @jiangshihua
    麻烦问下我这边混淆后, 传值传不过来了,这个是啥问题呀

    -keep public class com.alibaba.android.arouter.routes.{*;}
    -keep public class com.alibaba.android.arouter.facade.
    {;}
    -keep class
    implements com.alibaba.android.arouter.facade.template.ISyringe{*;}

    如果使用了 byType 的方式获取 Service,需添加下面规则,保护接口

    -keep interface * implements com.alibaba.android.arouter.facade.template.IProvider

    如果使用了 单类注入,即不定义接口实现 IProvider,需添加下面规则,保护实现

    -keep class * implements com.alibaba.android.arouter.facade.template.IProvider

    我是按照这个混淆加的
    @zhi1ong 大佬
    jiangshihua
    @jiangshihua
    xxARouterARouterAutowired 混淆后就没了
    Monster
    @caolei1988
    hello