Triple-T / gradle-play-publisher

GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.
MIT License
4.13k stars 341 forks source link

class com.android.build.gradle.internal.scope.InternalArtifactType$BUNDLE cannot be cast to class com.android.build.api.artifact.ArtifactType #882

Closed mochadwi closed 4 years ago

mochadwi commented 4 years ago

Describe the bug

A clear and concise description of what the bug is.

Could not determine the dependencies of task ':legacy:uploadStagingDebugPrivateBundle'.
> class com.android.build.gradle.internal.scope.InternalArtifactType$BUNDLE cannot be cast to class com.android.build.api.artifact.ArtifactType (com.android.build.gradle.internal.scope.InternalArtifactType$BUNDLE and com.android.build.api.artifact.ArtifactType are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @4129832e)

How To Reproduce

Running ./gradlew :legacy:uploadStagingDebugPrivateBundle

Versions

Tasks executed

What tasks did you run? For example, ./gradlew :legacy:uploadStagingDebugPrivateBundle.

Expected behavior

Succeed to upload onto internal sharing

Additional context (if a crash, provide stack trace)

Add any other context about the problem here. If this bug is a crash, run the task with --stacktrace to get the full context.

SUPERCILEX commented 4 years ago

You probably have an extra AGP dependency somewhere that isn't 4.1.0. This was fixed: #824

mochadwi commented 4 years ago

ok, will try to search for it, I'm afraid this is due to my CI caches that still use the both the previous 4.0 & 4.1

mochadwi commented 4 years ago

solved, due to conflicting binary version of AGP in our CI caches