记录一下使用Android Studio遇到的一些问题,以便以后查找
- 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()'.
- 3.INFO: The following project options are deprecated and have been removed:
- 4.【WARNNING】The following project options are deprecated and have been removed:
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路径下自动生成的文件删除,删除后默认