V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
mrtrying
V2EX  ›  Android

AspectJ 没法在 AndroidStudio 3.3 上集成么?

  •  
  •   mrtrying · 2019-01-24 20:37:58 +08:00 · 5474 次点击
    这是一个创建于 1889 天前的主题,其中的信息可能已经有所发展或是发生改变。

    搜了搜文章,都是很久以前的集成环境,没有使用 classpath 'com.android.tools.build:gradle:3.3.0'集成的人么? 一直提示 WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'. It will be removed at the end of 2019. For more information

    8 条回复    2019-02-01 20:53:47 +08:00
    cxtrinityy
        1
    cxtrinityy  
       2019-01-24 20:48:59 +08:00
    这个只是个警告吧,应该可以通过编译,跟之前的 compile 一样,只是 gradle 语法的更新提醒,想去掉警告的去官网看下 getJavaCompileProvider 的用法,不管也无所谓
    mrtrying
        2
    mrtrying  
    OP
       2019-01-24 20:53:06 +08:00
    @cxtrinityy 编译不过去了就,在老的 gradle-plugin 上试试
    skull
        3
    skull  
       2019-01-24 21:01:21 +08:00 via iPhone
    gradle 版本降下去看看
    cxtrinityy
        4
    cxtrinityy  
       2019-01-24 21:10:05 +08:00
    @mrtrying 这个是警告,肯定能编过去,编不过去肯定是下面还有 error,这种警告和下面的 error 显示类似,容易弄混,找找出问题的 error 应该就能过去
    eminemcola
        5
    eminemcola  
       2019-01-25 02:34:35 +08:00
    同楼上,这只是 gradle 的一个特性更新提示。如果编译不过去一定不是这个 warning 导致的。建议直接在 terminal 里编译,加上--stacktrace 参数看看日志输出。
    yippees
        6
    yippees  
       2019-01-25 09:15:36 +08:00
    从哪里下载的 3.3 啊
    https://developer.android.com/studio/上还是 3.2.1
    mrtrying
        7
    mrtrying  
    OP
       2019-01-25 12:49:10 +08:00 via Android
    @yippees 如果网页语言是简体中文,把语言切成英文应该能看到
    yippees
        8
    yippees  
       2019-02-01 20:53:47 +08:00
    @mrtrying 收到,的确这样,谢谢。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3391 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 11:15 · PVG 19:15 · LAX 04:15 · JFK 07:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.