So Facebook plugin works well in iOS, but on Android I can’t even compile, I get this error:
/Users/edvinas/Development/Cocos2d-x/Android/android-ndk-r10e/build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: '9 15'. Stop.
make: Leaving directory `/Users/edvinas/Development/Cocos2d-x/Projects/MyProject/proj.android'
I saw that Likon fixed this problem by editing ndk Facebook plugin compilation error but I don’t think that, thats the way to solve problem (by editing ndk files) also if I use this method later I get new error (same as Likon). So how to fix this problem?
And also @nite when sdkbox 1.2.2 version will be release, because in roadmap it says 8/13.
Ok so I was away for few days. Now I found what causes the problem but I still don’t have any solution for that…
So if I use only facebook plugin and no other plugins it compiles, but if I use facebook plugin and for example iAP plugin it won’t compile I get this error:
/Users/edvinas/Development/Cocos2d-x/Android/android-ndk-r10e/build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: '15 9'. Stop.
make: Leaving directory `/Users/edvinas/Development/Cocos2d-x/Projects/MyProject/proj.android'
It is strange, but i also have this issue and my Application.mk has the line:
APP_PLATFORM := android-9 android-15
and the error disappears when i remove ‘android-15’, leaving only ‘android-9’, like this:
APP_PLATFORM := android-9
But after that i got another error:
BUILD FAILED
/Users/myusenamer/bin/android-sdk/tools/ant/build.xml:597: The following error occurred while executing this line:
/Users/myusenamer/bin/android-sdk/tools/ant/build.xml:716: The following error occurred while executing this line:
/Users/myusenamer/bin/android-sdk/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.
I have downloaded it from the facebook plugin page from the link called “auto installer”
I tried to install it using the command “sdkbox import facebook” which finished with the error message
“failed to patch file Cocos2dxActivity.java”,
and I patched it manually according to the instruction. I don’t know how to determine the version of the plugin.
I have cocos2d-js engine version 3.6.1 downloaded from the Cocos Store.
Sorry, BUILD FAILED was due to lack of JDK 7. But the patching bug and the platform bug are still exist, but after changing project’s platform I can build and run my project with iap, facebook and googleanalytics plugins together without problems. Thanks for the help!
I don’t follow you.
could you please tell what bug you are facing exactly, because i tried with IAP import also.
there seems to be no patching issue and no duplicate project target.