mrtrying
V2EX  ›  Android

AspectJ 没法在 AndroidStudio 3.3 上集成么?

  •  
  •   mrtrying · Jan 24, 2019 · 14449 views
    This topic created in 2673 days ago, the information mentioned may be changed or developed.

    搜了搜文章,都是很久以前的集成环境,没有使用 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 replies    2019-02-01 20:53:47 +08:00
    cxtrinityy
        1
    cxtrinityy  
       Jan 24, 2019
    这个只是个警告吧,应该可以通过编译,跟之前的 compile 一样,只是 gradle 语法的更新提醒,想去掉警告的去官网看下 getJavaCompileProvider 的用法,不管也无所谓
    mrtrying
        2
    mrtrying  
    OP
       Jan 24, 2019
    @cxtrinityy 编译不过去了就,在老的 gradle-plugin 上试试
    skull
        3
    skull  
       Jan 24, 2019 via iPhone
    gradle 版本降下去看看
    cxtrinityy
        4
    cxtrinityy  
       Jan 24, 2019
    @mrtrying 这个是警告,肯定能编过去,编不过去肯定是下面还有 error,这种警告和下面的 error 显示类似,容易弄混,找找出问题的 error 应该就能过去
    eminemcola
        5
    eminemcola  
       Jan 25, 2019
    同楼上,这只是 gradle 的一个特性更新提示。如果编译不过去一定不是这个 warning 导致的。建议直接在 terminal 里编译,加上--stacktrace 参数看看日志输出。
    yippees
        6
    yippees  
       Jan 25, 2019
    从哪里下载的 3.3 啊
    https://developer.android.com/studio/上还是 3.2.1
    mrtrying
        7
    mrtrying  
    OP
       Jan 25, 2019 via Android
    @yippees 如果网页语言是简体中文,把语言切成英文应该能看到
    yippees
        8
    yippees  
       Feb 1, 2019
    @mrtrying 收到,的确这样,谢谢。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3349 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 11:05 · PVG 19:05 · LAX 04:05 · JFK 07:05
    ♥ Do have faith in what you're doing.