i am using cocos2d-x 3.17
i have installed SDKbox installer using this command
python -c """import urllib; s = urllib.urlopen('https://raw.githubusercontent.com/sdkbox-doc/en/master/install/install.py').read(); exec(s)"""
but whenever i try to install a plug in it gives me error
TestProj aqeeliqbal$ sdkbox import sdkboxplay
_______ ______ _ _ ______ _____ _ _
|______ | \ |____/ |_____] | | \___/
______| |_____/ | \_ |_____] |_____| _/ \_
Copyright (c) 2016-2018 SDKBOX Inc. v1.0.1.34
#FATAL: [Errno 2] No such file or directory: '/Volumes/DATA/TestProj/proj.android/AndroidManifest.xml'
Installation failed :(
this worked in previous version of cocos2d-x may be because AndroidManifest.xml
file was in proj.android where there was a separate project folder for proj.android-studio. But now we have only proj.android folder so AndroidManifest.xml
file is no longer there its in proj.android > app > AndroidManifest.xml
. So if it get fixed by declaring the updated path for AndroidManifest.xml
in SDK installation, how to do that? and if there is any other fix what to do?
does this path exist?
@yinjimmy will take a look too.
It seems you change the proj.android-studio
to proj.android
.
you can just add a AndroidManifest.xml
to proj.android
fold, lie to sdkbox
.
no i didn’t
cocos2d-x 3.17 exports only proj.android
, no more proj.android-studio
folder.
i did add AndroidManifest.xml
to proj.android
folder then it shows the same error for strings.xml
file. and i suppose it will continue to do so for other files as well so there should be some good fix for this
no the doesn’t exist because now its proj.android > app > AndroidManifest.xml
cococs2d-x v3.17 created new project this way
Yes, this is now default behavior in 3.17. proj.android was removed and proj.android-studio was renamed to pron.android since we only support Studio now.
yes, therefore SDKbox settings should be changed. it should recognise the new paths.
Any idea how can i do that ? so that my SDKbox import command runs fine.
OK, got you, I’ll fix this issue next week ASAP.
Thanks,
1 Like
That is awesome. please if you can do it in your first priority that will be great. because my client is pushing me to give him a build.
u can try our staging server:
sdkbox import sdkboxplay --staging
ndk should use >= r14b.
Thanks,
@yinjimmy : still same issue
i copied AndroidManifest.xml
file into the directory proj.android
from directory proj.android > app
and tired that command again.
now its showing same error for strings.xml
ok, seems the sdkbox
command has not update.
and now, release staging again, plz wait for 2 hours.
Thanks,
same result for both
sdkbox import sdkboxplay --staging
sdkbox import sdkboxplay
how about:
sdkbox import sdkboxplay --forcedownload --staging
sdkbox version should be 1.0.1.35
1 Like
It did the trick.
updated sdkbox to version to 1.0.1.35.
Integration was finished with error.
and now my project crash as soon as it runs.
05-23 15:37:42.118 13081-13081/? I/zygote: Late-enabling -Xcheck:jni 05-23 15:37:42.163 13081-13088/? I/zygote: Debugger is no longer active 05-23 15:37:42.559 13081-13081/? I/InstantRun: starting instant run server: is main process 05-23 15:37:42.664 13081-13081/? D/main: cocos_android_app_init 05-23 15:37:42.667 13081-13081/? I/SDKBOX_CORE: Sdkbox Droid starting. 05-23 15:37:42.668 13081-13081/? E/zygote: No implementation found for void com.sdkbox.plugin.SDKBox.nativeInit(java.lang.Object, java.lang.ClassLoader) (tried Java_com_sdkbox_plugin_SDKBox_nativeInit and Java_com_sdkbox_plugin_SDKBox_nativeInit__Ljava_lang_Object_2Ljava_lang_ClassLoader_2) 05-23 15:37:42.668 13081-13081/? D/AndroidRuntime: Shutting down VM 05-23 15:37:42.670 13081-13081/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.nepalibarnamala.write, PID: 13081 java.lang.UnsatisfiedLinkError: No implementation found for void com.sdkbox.plugin.SDKBox.nativeInit(java.lang.Object, java.lang.ClassLoader) (tried Java_com_sdkbox_plugin_SDKBox_nativeInit and Java_com_sdkbox_plugin_SDKBox_nativeInit__Ljava_lang_Object_2Ljava_lang_ClassLoader_2) at com.sdkbox.plugin.SDKBox.nativeInit(Native Method) at com.sdkbox.plugin.SDKBox.init(SDKBox.java:71) at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:128) at org.cocos2dx.cpp.AppActivity.onCreate(AppActivity.java:35) at android.app.Activity.performCreate(Activity.java:6999) at android.app.Activity.performCreate(Activity.java:6990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
i tried to create a new project and importing SDKBox in it but i can do it now. its showing me this error
temppo $ sdkbox import sdkboxplay
_______ ______ _ _ ______ _____ _ _
|______ | \ |____/ |_____] | | \___/
______| |_____/ | \_ |_____] |_____| _/ \_
Copyright (c) 2016-2018 SDKBOX Inc. v1.0.1.35
#FATAL: Package sdkboxplay couldn't be found. Please run 'sdkbox list' to list all available pacakges
Installation failed :(
I tried cocos2d-x 3.17,:
$ pidcat org.cocos2dx.cpp317 | grep "sdkbox"
libc-netbsd D [getaddrinfo]: hostname=metrics.sdkbox.com; servname=(null); cache_mode=(null), netid=0; mark=0
D [getaddrinfo]: hostname=metrics.sdkbox.com; servname=(null); cache_mode=(null), netid=0; mark=0
D getaddrinfo: metrics.sdkbox.com get result from proxy >>
I [socket][0] connection metrics.sdkbox.com/52.88.197.210:443;LocalPort=58712(0)
I [CDS]connect[metrics.sdkbox.com/52.88.197.210:443] tm:90
SDKBOX_CORE I Initialization request for plugin: 'com/sdkbox/plugin/SdkboxGPGAuthentication'
SDKBOX_CORE I Initialization request for plugin: 'com/sdkbox/plugin/SdkboxGPGLeaderboards'
I Initialization request for plugin: 'com/sdkbox/plugin/SdkboxGPGAchievements'
I Initialization request for plugin: 'com/sdkbox/plugin/PluginSdkboxAds'
E AdUnit com.sdkbox.plugin.AdColonyUnit or com.sdkbox.plugin.PluginAdColony does not exist or can't be created.
E AdUnit com.sdkbox.plugin.ChartboostUnit or com.sdkbox.plugin.PluginChartboost does not exist or can't be created.
E AdUnit com.sdkbox.plugin.AppnextUnit or com.sdkbox.plugin.PluginAppnext does not exist or can't be created.
E AdUnit com.sdkbox.plugin.UnityAdsUnit or com.sdkbox.plugin.PluginUnityAds does not exist or can't be created.
no crash on my android device.
what does it means? i cant understand.
I means cocos2d-x 3.17 with sdkboxplay (sdkbox import sdkboxplay) works on my Android device, no crash.
what’s your device and os version ?
how about other device ?
- would you plz recompile your project ? [SOLVED] Crash on Android with Chartboost . [SDKBox] Facebook integration crash when app start
- plz make sure that lib and jars are all in your project. Getting issue in Agora sdk for cocos2dx
find . -name "sdkbox"
find . -name "pluginsdkboxplay"
the crash log shows you have the sdkbox.jar
file without jni/sdkbox c++ code. so I need you make some checking .
- plz show the
Android.mk
, seems missing some code .
- show the
AppDelegate.cpp
, missing some code too.
Thanks,