node.js is not installed android studio gradle

安稳与你 提交于 2020-08-10 20:22:06

问题


guys,

I found the answer node-js-is-not-installed and I have the same problem

actually, I have nodejs

sudo apt-get install nodejs
Reading state information... Done
nodejs is already the newest version (8.10.0~dfsg-2ubuntu0.4)

. but if I try to build I coach Gradle exception like

Node.js is not installed. Visit https://nodejs.org/en/download/ to install it.
Open File

unfortunately, steps by issues/3745 don't resolve it fo me

enter image description here

any help would be appreciated.


回答1:


I had a identical problem earlier today. But I'm on a Mac. Same behaviour as you experienced.

I've try to reinstall node, and several rebuilding of my project but none of those worked.

In the end, I started over. Seems that the installation of the amplify cli did not went throught the previous time.

npm install -g @aws-amplify/cli

But I've come to another problem with the manifest.xml right after that. I think both are related...

And adding this to my manifest did the job : 'tools:replace="android:name"' (for reference if this problem follow : https://github.com/aws-amplify/amplify-android/issues/532 )




回答2:


Did you install amplify using sudo? That has solved my problem. Also using Mac OSX



来源:https://stackoverflow.com/questions/62603066/node-js-is-not-installed-android-studio-gradle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!