Hi all, running into a weird issue when upgrading ...
# gradle
s
Hi all, running into a weird issue when upgrading to 8.0 anyone seen this?
Copy code
class com.android.build.gradle.internal.dsl.PackagingOptions$AgpDecorated_Decorated cannot be cast to class com.android.build.api.dsl.Packaging (com.android.build.gradle.internal.dsl.PackagingOptions$AgpDecorated_Decorated is in unnamed module of loader
it also says packagingOptions has been renamed to packaging, but it doesn’t say deprecated in the source code
z
8.0 means they can make breaking changes
s
Yeah searched all over and I’m not sure they actually changed this
z
Probably a gradle plugin using it that was built against agp 7
s
ah looking at the slack gradle plugin repo. I see the
packaging { }
block. for some reason it doesn’t think that exists in our project
z
Yeah that was one of the APIs that changed in 8
s
cool cool, I think there must be a version slug somewhere not using the version catalog. Thank you!!
v
Next time please also specify what you update. As you are in a channel dedicated to using Kotlin in Gradle build scripts, I assumed you updated Gradle. ;-)
853 Views