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

Execution failed for task ':app:installApolloCodegen'. #354

Closed gokulkalagara closed 2 years ago

gokulkalagara commented 3 years ago

Build Failed: Execution failed for task ':app:installApolloCodegen'.

SDK Version:

Node Install Details : In App Gradle default

npm debug files in apollo-codegen npm-debug.log

Snapshot Details: Capture

div5yesh commented 3 years ago

Please share your project and app level build.gradle file.

gokulkalagara commented 3 years ago

For aws-mobile-appsync-sdk-android project also getting same error

App Project Gradle Details project-gradle.txt

App Gradle Details gradle-data.txt

Screenshot Details Capture

div5yesh commented 3 years ago

@gokulkalagara A few questions:

  1. Is this on a machine with Apple silicon?
  2. Can you share your env. info by running ./gradlew --version command?
gokulkalagara commented 3 years ago

Machine OS Windows 10

Gradlew Version Details Welcome to Gradle 6.7.1!

Here are the highlights of this release:

For more details see https://docs.gradle.org/6.7.1/release-notes.html


Gradle 6.7.1

Build time: 2020-11-16 17:09:24 UTC Revision: 2972ff02f3210d2ceed2f1ea880f026acfbab5c0

Kotlin: 1.3.72 Groovy: 2.5.12 Ant: Apache Ant(TM) version 1.10.8 compiled on May 10 2020 JVM: 1.8.0_291 (Oracle Corporation 25.291-b10) OS: Windows 10 10.0 amd64

monochkov commented 3 years ago

@div5yesh I have exactly the same issue on Windows 10 using Gradle 6.7.1. Any updates? @gokulkalagara Have you fixed it somehow?

gokulkalagara commented 3 years ago

@monochkov

You need to change in App Gradle

node{ download = true version = "12.18.2" }

it updates the node inside our project.

monochkov commented 3 years ago

@gokulkalagara It's working. Thank you so much!

ChulwooJeon commented 2 years ago

@gokulkalagara thank you! I solved my problem this way.

build.gradle (:app) >

android { ... node { download = true version = "16.13.1" } } ...

eeatonaws commented 2 years ago

Closing this issue since the problem was resolved.