
搜了搜文章,都是很久以前的集成环境,没有使用 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
1 cxtrinityy 2019 年 1 月 24 日 这个只是个警告吧,应该可以通过编译,跟之前的 compile 一样,只是 gradle 语法的更新提醒,想去掉警告的去官网看下 getJavaCompileProvider 的用法,不管也无所谓 |
2 mrtrying OP @cxtrinityy 编译不过去了就,在老的 gradle-plugin 上试试 |
3 skull 2019 年 1 月 24 日 via iPhone gradle 版本降下去看看 |
4 cxtrinityy 2019 年 1 月 24 日 @mrtrying 这个是警告,肯定能编过去,编不过去肯定是下面还有 error,这种警告和下面的 error 显示类似,容易弄混,找找出问题的 error 应该就能过去 |
5 eminemcola 2019 年 1 月 25 日 同楼上,这只是 gradle 的一个特性更新提示。如果编译不过去一定不是这个 warning 导致的。建议直接在 terminal 里编译,加上--stacktrace 参数看看日志输出。 |
6 yippees 2019 年 1 月 25 日 从哪里下载的 3.3 啊 https://developer.android.com/studio/上还是 3.2.1 |