New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While using Amplify DataStore, Android Studio cannot find nodejs installed in the system. #3745
Comments
Did you ever resolve this? |
@Jay2113 Which version of amplify-tools-gradle-plugin are you using? |
Hi @alan-cooney |
I am also having this issue with version 0.2.1 of the gradle plugin. This is on the latest Android Studio on Windows 10. |
Hi @zilonkaj, just to clarify you are seeing the node is not installed error message? What is the output when you enter |
This seems to be a bug on windows. As a workaround, you can run |
@nikhname I used Ubuntu 18.04.4 LTS to build the project, and everything worked fine. So yes it is a Windows bug it seems. |
Closed by aws-amplify/amplify-android#505 |
@sayantapadar I am using the same system as your's but I am having this issue. |
@ParryPatel021 I'm afraid I was unable to find a solution in my Windows 7 SP1 system, even after trying all possible remedies. I moved to a linux based system - in my case Ubuntu 18.04. Over there, simply following the getting started doc worked perfectly for me. |
Okay @sayantapadar Thank for the reply, I will again go through the Getting started doc from the begin |
Looks like this issue #3745 was duplicated in aws-amplify/amplify-android#531, and in aws-amplify/amplify-android#536. Let's track aws-amplify/amplify-android#536. |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
I have created an Android App and I am trying to integrate Amplify DataStore into it. In the process, while trying to run the modelgen task from Android Studio I am observing an error saying Nodejs is not found.
Amplify CLI Version
4.16.1
To Reproduce
Create a basic Android App and try to integrate Amplify DataStore. Reference: https://aws-amplify.github.io/docs/android/datastore
Expected behavior
Modelgen task should go through and create model files successfully.
Screenshots
Here are the Build logs:
Executing tasks: [clean, :app:assembleDebug] in project C:\Users\User\AndroidStudioProjects\AltorRide
Gradle Daemon started in 3 s 742 ms
BUILD SUCCESSFUL in 5m 49s
28 actionable tasks: 27 executed, 1 up-to-date
Here are the modelgen logs:
modelgen logs.txt
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: