SDKBOX with Cocos Creator 2.4.1

I am having issues trying to use SDKBOX with Cocos Creator 2.4.1 project. Importing a plugin yields following output:

>sdkbox import iap
  _______ ______  _     _ ______   _____  _     _
  |______ |     \ |____/  |_____] |     |  \___/
  ______| |_____/ |    \_ |_____] |_____| _/   \_
 Copyright (c) 2016-2020 SDKBOX Inc. v1.4.0.0
 #FATAL: [Errno 2] No such file or directory: '<project-path>/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/res/values/strings.xml'
 Installation failed :(

It seems that strings.xml file is located in /res/values/ in the project and not in /app/res/values/ where SDKBOX expects to find it.

1 Like

This is weird. I have the opposite! All my games are using the proj.android/app/res/values directory and now sdkbox gives me an error that the proj.android/res/values does not exists… Any idea?

I tried to trick it by just copying over the app/res folder into proj.android/res folder. But then I get some other errors like:

…proj.android/game/build.gradle/ does not exists. But the build.gradle has never been in this folder… it is in proj.android root folder (or proj.android/app)

BTW, I still use cocos 3.17

@ebouchard

can you share a detail steps which can reproduce this

cocos2d-x 3.17 or creator 2.4.1?
create emptry project and import?

Just did. Brand new project from cocos2d-x 3.17.2:
Note that I am using sdkbox gui 1.1.7

Begin install googleplayservices

C:\Users\ericb.sdkbox\bin\sdkbox.bat --alwaysupdate --nohelp --runin gui-creator -s main import googleplayservices


|______ | \ |____/ |] | | _/
| |/ | _ |
] |____| _/ _
Copyright © 2016-2020 SDKBOX Inc. v1.4.1.0
[|]
[/]
[-]
[]
#FATAL: [Errno 2] No such file or directory: ‘C:/game/TestGame/proj.android/res/values/strings.xml’
Installation failed :frowning:

Log file = C:/Users/ericb/.sdkbox/log/sdkbox-log-2020-08-13-4.sdkbox.temp


Begin install sdkboxads

C:\Users\ericb.sdkbox\bin\sdkbox.bat --alwaysupdate --nohelp --runin gui-creator -s main import sdkboxads


|______ | \ |____/ |] | | _/
| |/ | _ |
] |____| _/ _
Copyright © 2016-2020 SDKBOX Inc. v1.4.1.0
[|]
[/]
[-]
[]
#FATAL: [Errno 2] No such file or directory: ‘C:/game/TestGame/proj.android/res/values/strings.xml’
Installation failed :frowning:

Log file = C:/Users/ericb/.sdkbox/log/sdkbox-log-2020-08-13-5.sdkbox.temp


Begin install admob

C:\Users\ericb.sdkbox\bin\sdkbox.bat --alwaysupdate --nohelp --runin gui-creator -s main import admob


|______ | \ |____/ |] | | _/
| |/ | _ |
] |____| _/ _
Copyright © 2016-2020 SDKBOX Inc. v1.4.1.0
[|]
[/]
[-]
[]
#FATAL: [Errno 2] No such file or directory: ‘C:/game/TestGame/proj.android/res/values/strings.xml’
Installation failed :frowning:

Log file = C:/Users/ericb/.sdkbox/log/sdkbox-log-2020-08-13-6.sdkbox.temp


Install Finish

i can’t reproduce, can you do as follow:

  1. rm -rf C:\Users\ericb\.sdkbox\plugins
  2. cd C:/game/TestGame/
  3. run command sdkbox import admob

Using the command line worked. So it seems my version of SDKBOX GUI is broken somehow. I could not find a new version anymore, I guess it is not supported anymore?

In fact, gui finally calls this command ` sdkbox import’