Android Studio 遇到的问题

这篇博客讲述了在使用Android Studio时遇到的过时项目选项和警告,包括API 'variant.getJavaCompiler()'的弃用,GreenDao框架引起的问题,以及不再需要的android.enableAapt2属性。提供了相应的解决方法,如使用新的API替代,注释GreenDao配置,以及删除gradle.properties中的enableAapt2=true。
摘要由CSDN通过智能技术生成

1.The following project options are deprecated and have been removed:

目前没有查找到原因,如果有大神可以麻烦帮我解释一下吗?

2. INFO: API ‘variant.getJavaCompiler()’ is obsolete and has been replaced with ‘variant.getJavaCompileProvider()’.

It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getJavaCompiler(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
Affected Modules: app
原因
GreenDao框架引起的
解决方法
将针对GreenDao配置的targetGenDir注释掉即可,不让其生成到GreenDao文件到指定目录中去,而是生成到默认文件中去,并且需要将targetGenDir路径下自动生成的文件删除,删除后默认

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值