0

I am following the AWS docs, here. I am able to add everything into my project's build.gradle, AndroidManifest.xml, and app's build.gradle EXCEPT for the apply plugin. When I add:

apply plugin: 'com.amazonaws.appsync'

I get the following error:

Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id 'com.amazonaws.appsync']

How do I fix this? When I remove the apply plugin from the app's build.gradle, then my app works again.

Jameson
  • 6,400
  • 6
  • 32
  • 53
Tony Liu
  • 3
  • 2

1 Answers1

0

Did you try updating you gradle version and is your android studio also in the latest state, follow this thread and also update your question with the project's build.gradle file

https://stackoverflow.com/a/37091489/1503130

Prateek
  • 3,923
  • 6
  • 41
  • 79
  • 1
    Thanks. I actually had to lower my gradle version because I was initially on the newest gradle. After lowering it, it worked. Appreciate it! – Tony Liu Apr 17 '20 at 18:56
  • @TonyLiu Is this still an issue with 1.0.1 of the plugin? Do you still need to lower your Gradle version? If so, to what version, from what version? – Jameson Jun 08 '20 at 01:12
  • 1
    @Jameson Thanks for making my question look more presentable. I downgraded from Gradle 6 to Gradle 5.6.4 for it to work. I still have it on 5.6.4 to prevent any more bugs at the moment. – Tony Liu Jun 11 '20 at 02:08