JaneaSystems / nodejs-mobile

Full-fledged Node.js on Android and iOS
https://code.janeasystems.com/nodejs-mobile
Other
2.54k stars 184 forks source link

Phonegap build fails #174

Open DeniscoDp5 opened 5 years ago

DeniscoDp5 commented 5 years ago

Hi!

I created a phonegap project and i tried to build it but i have a problem. I created a repository where you can look at the the files. https://github.com/DeniscoDp5/issue-phonegap-nodejs

i put the log build fail from phonegap in pdf. i can't find a solution for the NDK problem build.phonegap.com.pdf

jaimecbernardo commented 5 years ago

Hi @DeniscoDp5 ,

Have you tried installing the NDK or setting the ANDROID_NDK_HOME environment variable? Your issue looks like it's similar to this one: https://github.com/janeasystems/nodejs-mobile/issues/10

In your log you can see:

> NDK not configured.
 Download it with SDK manager.)

Following the requirements is the likely solution: https://github.com/janeasystems/nodejs-mobile-cordova#requirements

DeniscoDp5 commented 5 years ago

Hi!

I'havent set it because for building the app I use phonegap build, so I just upload my zip file online. How could I set the ndk path for that?

jaimecbernardo commented 5 years ago

I'm not familiar with phonegap build, but this project contains C++ code, so it needs the NDK to build that code for Android. Other user opened an issue for it in phonegap build, in case you're interested: https://github.com/phonegap/build/issues/610

The alternative would be to build your application in a development machine you can configure.