trevjonez / composer-gradle-plugin

Gradle task type and plugin for interacting with https://github.com/gojuno/composer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build is failing instantly after adding composer plugin

outlying opened this issue · comments

Composer plugin: 0.3.0
Android Gradle plugin: 3.0.0-rc1

After adding plugin apply plugin: 'composer' I get the following result

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
   > com.android.build.gradle.api.ApplicationVariant.getOutputs()Ljava/util/List;

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s

This part of the stack trace might be useful

Caused by: java.lang.NoSuchMethodError: com.android.build.gradle.api.ApplicationVariant.getOutputs()Ljava/util/List;
    at com.trevjonez.composer.ComposerPlugin.apkForVariant(ComposerPlugin.kt:134)
    at com.trevjonez.composer.ComposerPlugin.getApk(ComposerPlugin.kt:109)
    at com.trevjonez.composer.ComposerPlugin.access$getApk(ComposerPlugin.kt:28)
    at com.trevjonez.composer.ComposerPlugin$observeVariants$1.execute(ComposerPlugin.kt:67)
    at com.trevjonez.composer.ComposerPlugin$observeVariants$1.execute(ComposerPlugin.kt:28)

I will provide more information if needed

use the AGP-3.0.0-SNAPSHOT for your version
I'll release a new non snaptshot once the agp plugin reaches a production build. (seemingly soon)

@outlying I am going to delete the AGP-3.0.0 you will need to update your version to 0.4.0 as jitpack will no longer server a snapshot.