Need help building Android (Native_Build.sh) is failing

I am able to get most of my project setup, however when I run the build_native.sh, on the last lines of the build I get this error message. Would you be able to assist? I looked at some of the things for NDK 7 and made changes for it, but I still get this error.

Install : libcocosdenshion.so => libs/armeabi/libcocosdenshion.so
Compile*+ thumb : game <= main.cpp
Compile*+ thumb : game <= AppDelegate.cpp
Compile++ thumb : game <= HelloWorldScene.cpp
SharedLibrary : libgame.so
/Users/Black/Projects/Android/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86/bin/…/lib/gcc/arm-linux-androideabi/4.4.3/…/…/…/…/arm-linux-androideabi/bin/ld: cannot find -lcurl
collect2: ld returned 1 exit status
make: * [obj/local/armeabi/libgame.so] Error 1

I answer the question in another thread.
I can not find it now.

Basically, libcurl has moved at some point recently (I don’t know in which version). You probably have a Android.mk file somewhere which has a line like this:

~~L$/…/…/…/libs/cocos2dx/platform/third_party/android/libraries)~~lcurl

change it to

~~L$/…/…/…/libs/cocos2dx/platform/third_party/android/libraries/armeabi-v7a)~~lcurl

or

~~L$/…/…/…/libs/cocos2dx/platform/third_party/android/libraries/armeabi)~~lcurl

as there are now three different versions of libcurl (as well as some other libraries) in libs/cocos2dx/platform/third_party/android/libraries/, armeabi, armeabi-v7a, and x86.

Actually, you can make it simpler and just use $(TARGET_ARCH_ABI) for the final folder’s name.