-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use new Android Gradle Plugin 3.3+ APIs: WARNING: API 'variant.getJavaCompiler()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()' #942
Comments
I also posted this question on stackoverflow.com . This Problem |
Thanks for reporting. This is due to an API change in Android Gradle Plugin 3.3.0. However, for now everything should work fine. This is just a warning ( Task: support Android Gradle Plugin 3.3.0 API changes. |
I had the same problem |
So, you will wait until the build breaks to fix it? |
how do you fixed it? |
I had the same problem,how do you fixed it? |
+11111111111111 |
@wutong751 @LuigiMaestrelli @liaopen123 @wzp09tjlg @LLLiuWeiJian Yes,just wait,At least until the end of 19 years, this is just a warning and does not affect compilation. |
@greenrobot-team When do you plan to solve this problem? |
好吧 |
I can't promise anything, but hopefully when we have time. |
@greenrobot-team so, can i help your team ? just the part of gradle. if yes, i will start action |
I had the same problem.When time fix? |
1 similar comment
I had the same problem.When time fix? |
+1 |
2 similar comments
+1 |
+1 |
Update: you can work around the warning by removing the
This will generate greenDAO files into the build folder instead of a custom directory when building the project. So make sure to delete the duplicate files from your old targetGenDir. Anyhow, this issue was fixed internally and will be available with the next update. |
When will it be updated? |
(variant.getJavaCompiler() ) Now It will be removed in few days, what shoud i do? |
(variant.getJavaCompiler() ) Now It will be removed in one day, what shoud i do? |
not works with this answers for now |
Edit: see workaround below.
when i compile the version with 'org.greenrobot:greendao-gradle-plugin:3.2.2' ,i get an error :
WARNING: 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 a stack trace. Affected Modules: app
and i try execute a command,gradlew -Pandroid.debug.obsoleteApi=true, i get :
`>gradlew -Pandroid.debug.obsoleteApi=true
WARNING: Debugging obsolete API calls can take time during configuration. It's recommended to not keep it on at all times.`
Although this problem will break out in 2020, I hope to solve it in the next version as soon as possible.
The text was updated successfully, but these errors were encountered: