awslabs / aws-mobile-appsync-sdk-android

Android SDK for AWS AppSync.
https://docs.amplify.aws/sdk/api/graphql/q/platform/android/
Apache License 2.0
105 stars 58 forks source link

AWS appsync doesn't build with agp version 8.0 #410

Closed sharadsmhaske closed 1 year ago

sharadsmhaske commented 1 year ago

Describe the bug We are not able to upgrade the agp version in our app as app sync doesn't build with agp 8.0

To Reproduce Steps to reproduce the behavior: Update the version of app with agp 8.0. Try building the app with app sync latest version. We are getting below error : A problem occurred configuring project ':app'.

Could not create task ':app:generateProdDebugApolloClasses'. Cannot use @TaskAction annotation on method ApolloClassGenTask.generateClasses() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

Expected behavior It should build the code. Please let us know workaround if available to support agp 8.0

davidhartley commented 1 year ago

+1 Also receiving this error if attempting to use Android Gradle Plugin 8.0

mattcreaser commented 1 year ago

Thanks for the report @sharadsmhaske, we will take a look.

lolucosmin commented 1 year ago

+1 Also receiving this error if attempting to use Android Gradle Plugin 8.0

mattcreaser commented 1 year ago

A fix has been released in Appsync SDK 3.4.0. Please let us know if you have any additional questions.

fcoconstante commented 10 months ago

It worked, in agp version 8.1.0 and appsync-gradle-plugin:3.4.0, the docs, here says:

classpath 'com.amazonaws:aws-android-sdk-appsync-gradle-plugin:3.2.1'

implementation 'com.amazonaws:aws-android-sdk-appsync:3.3.1'

I guess that they need to be updated. Thanks!