Closed pbs0512 closed 7 years ago
http://stackoverflow.com/questions/14571399/android-ndk-cant-find-atof-function I can see the link above and solve it. It like have to replace atof with std::atof in firebase c ++ lib.
hmm, looks like not a Firebase related issue. Can you please decrease platform version and test it again?
example: cocos compile -p android --ap android-15 --android-studio --app-abi armeabi-v7a
@formatCvt Oh thank you. I succeeded after lowering the sdk version (android-15). But the sample is android-22. Is need to lower sdk to support android 4.4? It is also run after the downgrade NDK 10b.
When i found this bug first time i just replace ap to 15 and forgot about this =) Definitely something wrong with cocos2d-x source code, i will try to figure out it. And yes, you should use ap < 21 until this bug fixed and doesn't matter using you Firebase or not.
Thank you. Have a nice day :)
You're welcome =)
About this bug, looks like it should be fixed in Android NDK r15
https://android.googlesource.com/platform/ndk/+/master/docs/Roadmap.md
NDK r15 Fixed libandroid_support
As you are all well aware, early versions of Android were lacking a significant number of libc APIs. libc++ requires some APIs that were not available until android-21. To make libc++ available for all supported API levels, the NDK provides libandroid_support.
Device: Samsung Note2 SHV-E250S Android version: 4.4.2 cocos2d-x version: 3.14 NDK : r13b (64-bit) SDK : android-23