-
Notifications
You must be signed in to change notification settings - Fork 211
API 'variantOutput.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'. #260
Comments
This is not so easy to do without forcing users to migrate to Gradle 4.10 and above. Android took the shortcut and made that a requirement. Since this project is not only for Android, I think we would like to keep backward compatibility. The following is what I did for SAP. It is just for idea, may not be enough. https://github.com/novoda/gradle-static-analysis-plugin/pull/165/files#diff-46504f51605469d88fd5592bafb1c72eR10 |
I have the same problem, how to fix it??????? |
Hey, just to be clear this is supposed to be a warning. Everything should be working as expected. |
This definitely spams Gradle build logs like crazy (especially for projects with a lot of modules), but yes things still work for now |
I also want to know how to ignore this warning |
It is a warning but that API |
google/protobuf-gradle-plugin#295 (comment) |
Yes, this is a good solution if anybody wants to contribute. |
fix [novoda#260](novoda#260) API 'variantOutput.getPackageLibrary()' is obsolete
I fixed this issue as fowllowing option
|
If we do it this way, wouldn't that be a lot of individual |
ext.kotlin_version = '1.3.21' Change the kotlin version to 1.3.21, this method solves my problem |
When I did debug. It says WARNING: API 'variant.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()'. |
I feel very sorry,
I am not the author of this project and I am not involved in development.
So I don't know why I received your email.
|
@SnowyTomorrow you received an email because you commented above and you're following this thread as a result. |
@afollestad many thanks |
Hey @Shouheng88 sorry, but we work on open source projects when we can in our spare time.
How this warning blocked your project? it's just a log as far as I know 🤔 |
Just update your gradle.properties with |
thanks for the tip @SrilakshmySooraj! |
I try but still not work =.= |
Just ignore it. It shouldn't be a blocker if you're using Gradle 5.5. |
2019 is passing, is anyone have a idea to fix this issue? |
Created a Pull request regard this issue, thanks for the guy who comment here for the idea (I can not figure out who comment). |
Hi,
After the migration of an Android project from Android Studio 3.2.1 to Android Studio 3.3 I have update the following components and plugins :
I now have the following warning into the project :
Here the full stacktrace :
So according to this stacktrace, into the
AndroidAttachments.groovy
file, the line 51 (variant.outputs[0].packageLibrary
) should be changed.I am using the version
0.9
of the library.The text was updated successfully, but these errors were encountered: