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

AGP 3.6.0-alpha05 not working: java.lang.NoClassDefFoundError: com/android/build/api/artifact/BuildableArtifact #631

Closed knordbo closed 5 years ago

knordbo commented 5 years ago

Describe the bug

Publish bundle seems to be broken in AGP 3.6.0-alpha05 since the reflective usage of BuildableArtifact no longer works.

How To Reproduce

./gradlew publishBundle

Versions

Tasks executed

publishBundle

Expected behavior

Publishing the bundle successfully

Additional context (if a crash, provide stack trace)

java.lang.NoClassDefFoundError: com/android/build/api/artifact/BuildableArtifact
        at com.github.triplet.gradle.play.tasks.internal.AgpKt$findBundleFile$1.invoke(Agp.kt:22)
        at com.github.triplet.gradle.play.tasks.internal.AgpKt.findBundleFile(Agp.kt:27)
        at com.github.triplet.gradle.play.tasks.PublishBundle.getBundle(PublishBundle.kt:38)