AspectJ 没法在 AndroidStudio 3.3 上集成么?

2019-01-24 20:37:58 +08:00
 mrtrying

搜了搜文章,都是很久以前的集成环境,没有使用 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

6094 次点击
所在节点    Android
8 条回复
cxtrinityy
2019-01-24 20:48:59 +08:00
这个只是个警告吧,应该可以通过编译,跟之前的 compile 一样,只是 gradle 语法的更新提醒,想去掉警告的去官网看下 getJavaCompileProvider 的用法,不管也无所谓
mrtrying
2019-01-24 20:53:06 +08:00
@cxtrinityy 编译不过去了就,在老的 gradle-plugin 上试试
skull
2019-01-24 21:01:21 +08:00
gradle 版本降下去看看
cxtrinityy
2019-01-24 21:10:05 +08:00
@mrtrying 这个是警告,肯定能编过去,编不过去肯定是下面还有 error,这种警告和下面的 error 显示类似,容易弄混,找找出问题的 error 应该就能过去
eminemcola
2019-01-25 02:34:35 +08:00
同楼上,这只是 gradle 的一个特性更新提示。如果编译不过去一定不是这个 warning 导致的。建议直接在 terminal 里编译,加上--stacktrace 参数看看日志输出。
yippees
2019-01-25 09:15:36 +08:00
从哪里下载的 3.3 啊
https://developer.android.com/studio/上还是 3.2.1
mrtrying
2019-01-25 12:49:10 +08:00
@yippees 如果网页语言是简体中文,把语言切成英文应该能看到
yippees
2019-02-01 20:53:47 +08:00
@mrtrying 收到,的确这样,谢谢。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/530371

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX