CC2.3.2 can't compile with admob and share plugin

Hi!
I’m trying to add SDKBox to my Cocos Creator 2.3.2 project but it fails to compile.
I’ve used “SDKBox Staging Server” option during import in SDKBox Extension.
It still gives error during compile:

Execution failed for task ‘:game:transformClassesAndResourcesWithProguardForRelease’.

I’ve tried on empty project and same result.
Steps:
1- Create empty 2.3.2 project using Cocos Dasboard
2- Build
3- Import SDKBox Ads, Admob, Share using staging server option
4- Compile (gives error)

Help please.

Here is more details:

Starting process ‘command ‘C:\Android\ndk-bundle\ndk-build.cmd’’. Working directory: C:\Cocos_Projects\sdkbox_test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app Command: C:\Android\ndk-bundle\ndk-build.cmd NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Cocos_Projects\sdkbox_test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Android.mk NDK_APPLICATION_MK=C:\Cocos_Projects\sdkbox_test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Application.mk APP_ABI=arm64-v8a NDK_ALL_ABIS=arm64-v8a NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=C:/Cocos_Projects/sdkbox_test/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=C:\Cocos_Projects\sdkbox_test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\build\intermediates\ndkBuild\release\lib NDK_TOOLCHAIN_VERSION=clang NDK_MODULE_PATH=C:\CocosDashboard_1.0.3\resources.editors\Creator\2.3.2\resources\cocos2d-x;C:\CocosDashboard_1.0.3\resources.editors\Creator\2.3.2\resources\cocos2d-x\cocos;C:\CocosDashboard_1.0.3\resources.editors\Creator\2.3.2\resources\cocos2d-x\external -j4 NDK_DEBUG=0 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n
Successfully started process ‘command ‘C:\Android\ndk-bundle\ndk-build.cmd’’
process_begin: CreateProcess(NULL, “”, …) failed.
External native JSON generation. Variant=releaseABI=arm64-v8a : done executing ndkBuild
External native JSON generation. Variant=releaseABI=arm64-v8a : write build output C:\Cocos_Projects\sdkbox_test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app.externalNativeBuild\ndkBuild\release\arm64-v8a\ndkBuild_build_output.txt
External native JSON generation. Variant=releaseABI=arm64-v8a : parse and convert ndk-build output to build configuration JSON
External native JSON generation. Variant=releaseABI=arm64-v8a : found application make file C:\Cocos_Projects\sdkbox_test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app\jni\Application.mk
External native JSON generation. Variant=releaseABI=arm64-v8a : write command file C:\Cocos_Projects\sdkbox_test\build\jsb-link\frameworks\runtime-src\proj.android-studio\app.externalNativeBuild\ndkBuild\release\arm64-v8a\ndkBuild_build_command.txt
External native JSON generation. Variant=releaseABI=arm64-v8a : JSON generation for ABI: %s completed without problems
:sdkbox_test:generateJsonModelRelease (Thread[Task worker for ‘:’ Thread 3,5,main]) completed. Took 1.78 secs.
:sdkbox_test:externalNativeBuildRelease (Thread[Task worker for ‘:’ Thread 3,5,main]) started.
Note: the configuration keeps the entry point ‘org.cocos2dx.okhttp3.Dispatcher { void enqueue(org.cocos2dx.okhttp3.RealCall$AsyncCall); }’, but not the descriptor class ‘org.cocos2dx.okhttp3.RealCall$AsyncCall’
Note: the configuration keeps the entry point ‘org.cocos2dx.okhttp3.Dispatcher { int runningCallsForHost(org.cocos2dx.okhttp3.RealCall$AsyncCall); }’, but not the descriptor class ‘org.cocos2dx.okhttp3.RealCall$AsyncCall’
Note: the configuration keeps the entry point ‘org.cocos2dx.okhttp3.Dispatcher { void executed(org.cocos2dx.okhttp3.RealCall); }’, but not the descriptor class ‘org.cocos2dx.okhttp3.RealCall’
Note: the configuration keeps the entry point ‘org.cocos2dx.okhttp3.Dispatcher { void finished(org.cocos2dx.okhttp3.RealCall$AsyncCall); }’, but not the descriptor class ‘org.cocos2dx.okhttp3.RealCall$AsyncCall’
Note: the configuration keeps the entry point ‘org.cocos2dx.okhttp3.Dispatcher { void finished(org.cocos2dx.okhttp3.RealCall); }’, but not the descriptor class ‘org.cocos2dx.okhttp3.RealCall’
Note: the configuration keeps the entry point ‘org.cocos2dx.okhttp3.internal.cache.DiskLruCache { boolean removeEntry(org.cocos2dx.okhttp3.internal.cache.DiskLruCache$Entry); }’, but not the descriptor class ‘org.cocos2dx.okhttp3.internal.cache.DiskLruCache$Entry’
Note: the configuration keeps the entry point ‘org.cocos2dx.okhttp3.internal.cache.DiskLruCache$Editor { DiskLruCache$Editor(org.cocos2dx.okhttp3.internal.cache.DiskLruCache,org.cocos2dx.okhttp3.internal.cache.DiskLruCache$Entry); }’, but not the descriptor class ‘org.cocos2dx.okhttp3.internal.cache.DiskLruCache$Entry’
Note: the configuration keeps the entry point ‘org.cocos2dx.okhttp3.internal.http2.Http2Stream { void setHeadersListener(org.cocos2dx.okhttp3.internal.http2.Header$Listener); }’, but not the descriptor class ‘org.cocos2dx.okhttp3.internal.http2.Header$Listener’
Note: the configuration keeps the entry point ‘org.cocos2dx.okio.Buffer { boolean rangeEquals(org.cocos2dx.okio.Segment,int,org.cocos2dx.okio.ByteString,int,int); }’, but not the descriptor class ‘org.cocos2dx.okio.Segment’
Note: there were 1 references to unknown classes.
You should check your configuration for typos.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 9 unkept descriptor classes in kept class members.
You should consider explicitly keeping the mentioned classes
(using ‘-keep’).
(http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)
Note: there were 6 unresolved dynamic references to classes or interfaces.
You should check if you need to specify additional program jars.
(http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.
Thread(Tasks limiter_7): destruction
Warning: there were 203 unresolved references to classes or interfaces.
You may need to add missing library jars or update their versions.
If your code works fine without the missing classes, you can suppress
the warnings with ‘-dontwarn’ options.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Task :game:transformClassesAndResourcesWithProguardForRelease FAILED

I’ve added following lines to proguard files in both app and game folder:
-dontwarn **
-dontnote **

I’m able to compile now. Is this a good idea?

you can sync proj.android-studio/app/proguard-rules.pro to proj.android-studio/game/proguard-rules.pro

1 Like