Android build error when adding appodeal

Hi,

I posted this in Cocos creator forums but thought this might be a better place. Will paste my other post here.

I added sdkbox appodeal and I am now getting build errors when building android apk. Here is the part of the log which shows the warnings and errors

-obfuscate:
[mkdir] Created dir: C:\Dev\Cocos\PeeQ\build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\libs\cheetah-mobile\bin\proguard
[jar] Building jar: C:\Dev\Cocos\PeeQ\build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\libs\cheetah-mobile\bin\proguard\original.jar
[proguard] ProGuard, version 4.7
[proguard] Reading input…
[proguard] Reading program jar [C:\Dev\Cocos\PeeQ\build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\libs\cheetah-mobile\bin\proguard\original.jar]
[proguard] Reading program jar [C:\Dev\Cocos\PeeQ\build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\libs\cheetah-mobile\libs\cheetah-mobile.jar]
[proguard] Note: duplicate definition of program class [com.cmcm.adsdk.BuildConfig]
[proguard] Reading library jar [C:\Dev\android-sdk\platforms\android-23\android.jar]
[proguard] Note: there were 1 duplicate class definitions.
[proguard] Initializing…
[proguard] Warning: com.cmcm.picks.loader.c: can’t find referenced class org.apache.http.message.BasicNameValuePair
[proguard] Warning: com.cmcm.picks.loader.c: can’t find referenced class org.apache.http.message.BasicNameValuePair
[proguard] Warning: com.cmcm.picks.loader.c: can’t find referenced class org.apache.http.NameValuePair
[proguard] Warning: com.cmcm.picks.loader.f$a: can’t find referenced class org.apache.http.client.utils.URIUtils
[proguard] Warning: com.cmcm.picks.loader.f$a: can’t find referenced class org.apache.http.client.utils.URLEncodedUtils
[proguard] Warning: com.cmcm.picks.loader.f$a: can’t find referenced class org.apache.http.message.BasicNameValuePair
[proguard] Warning: com.cmcm.picks.loader.f$a: can’t find referenced class org.apache.http.client.utils.URIUtils
[proguard] Warning: com.cmcm.picks.loader.f$a: can’t find referenced class org.apache.http.client.utils.URLEncodedUtils
[proguard] Warning: com.cmcm.picks.loader.f$a: can’t find referenced class org.apache.http.message.BasicNameValuePair
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.Header
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.HttpEntity
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.StatusLine
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.HttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.methods.HttpGet
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.methods.HttpPost
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.ClientConnectionManager
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.params.ConnManagerParams
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.PlainSocketFactory
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.Scheme
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.SchemeRegistry
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.entity.StringEntity
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.impl.client.DefaultHttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.impl.conn.SingleClientConnManager
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.params.BasicHttpParams
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.methods.HttpGet
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.methods.HttpGet
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.methods.HttpPost
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.methods.HttpPost
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.params.ConnManagerParams
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.params.ConnManagerParams
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.PlainSocketFactory
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.Scheme
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.SchemeRegistry
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.SchemeRegistry
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.entity.StringEntity
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.impl.client.DefaultHttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.impl.conn.SingleClientConnManager
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.params.BasicHttpParams
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.Header
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.HttpEntity
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.StatusLine
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.HttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.HttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.HttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.ClientConnectionManager
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.HttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.HttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.HttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.SchemeRegistry
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.ClientConnectionManager
[proguard] Warning: com.cmcm.utils.k$a: can’t find referenced class org.apache.http.Header
[proguard] Warning: com.cmcm.utils.k$a: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.k$a: can’t find referenced class org.apache.http.StatusLine
[proguard] Warning: com.cmcm.utils.k$a: can’t find referenced class org.apache.http.Header
[proguard] Warning: com.cmcm.utils.k$a: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.k$a: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.k$a: can’t find referenced class org.apache.http.StatusLine
[proguard] Note: com.cmcm.utils.Commons: can’t find dynamically referenced class android.os.SystemProperties
[proguard] Note: com.cmcm.utils.Commons: can’t find dynamically referenced class android.os.SystemProperties
[proguard] Note: the configuration refers to the unknown class ‘com.google.vending.licensing.ILicensingService’
[proguard] Note: the configuration refers to the unknown class ‘com.android.vending.licensing.ILicensingService’
[proguard] Note: the configuration refers to the unknown class ‘android.support.annotation.Keep’
[proguard] Note: the configuration refers to the unknown class ‘android.support.annotation.Keep’
[proguard] Note: the configuration refers to the unknown class ‘android.support.annotation.Keep’
[proguard] Note: the configuration refers to the unknown class ‘android.support.annotation.Keep’
[proguard] Note: the configuration refers to the unknown class ‘android.support.annotation.Keep’
[proguard] Note: the configuration refers to the unknown class ‘com.cmcm.picks.init.DownloadService’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.CMBaseNativeloaderAdapter { void setAdListener(com.cmcm.baseapi.ads.INativeAdLoaderListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAdLoaderListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.CMBaseNativeloaderAdapter { void setAdClickListener(com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.NativeloaderAdapter { void notifyNativeAdLoaded(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.NativeloaderAdapter { void callBack(java.lang.String,com.cmcm.baseapi.ads.INativeAd,java.util.List,java.lang.String); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.NativeloaderAdapter$CallBackRunnable { NativeloaderAdapter$CallBackRunnable(com.cmcm.adsdk.adapter.NativeloaderAdapter,java.lang.String,com.cmcm.baseapi.ads.INativeAd,java.util.List,java.lang.String); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.NativeloaderAdapter$NativeAdapterListener { void onNativeAdLoaded(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.PicksInterstatialAdapter$PicksInterstatialAd { PicksInterstatialAdapter$PicksInterstatialAd(com.cmcm.adsdk.adapter.PicksInterstatialAdapter,com.cmcm.picks.loader.Ad,android.content.Context); }’, but not the descriptor class ‘com.cmcm.picks.loader.Ad’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.PicksNativeAdapter$PicksNativeAd { PicksNativeAdapter$PicksNativeAd(com.cmcm.adsdk.adapter.PicksNativeAdapter,com.cmcm.picks.loader.Ad,android.content.Context); }’, but not the descriptor class ‘com.cmcm.picks.loader.Ad’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.banner.CMAdView$MyBannerViewLoadListener { void adClicked(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.banner.CMNativeBannerView { void renderBannerData(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.banner.CMNativeBannerView$1 { void adClicked(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.base.CMBaseNativeAd { void setAdOnClickListener(com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.base.CMBaseNativeAd { void notifyNativeAdClick(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.base.CMBaseNativeAd { void setImpressionListener(com.cmcm.baseapi.ads.INativeAd$ImpressionListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$ImpressionListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.base.CMBaseNativeAd { void setMpaModule(com.cmcm.picks.loader.MpaModule); }’, but not the descriptor class ‘com.cmcm.picks.loader.MpaModule’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.base.CMBaseNativeAd$IClickPreHanleListener { boolean preHandle(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.interstitial.InterstitialAdManager { void adClicked(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.interstitial.PicksInterstitialActivity { void setNativeAd(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.CMNativeAd { CMNativeAd(android.content.Context,com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener,java.util.Map,com.cmcm.adsdk.base.CMBaseNativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.CMNativeAd { void onAdClick(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.CMNativeAd { void setAdOnClickListener(com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.CMNativeAdLoader { void onNativeAdLoaded(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.CMNativeAdLoader { void onAdClick(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.CMNativeAdLoader { void appendAd(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.CMNativeAdLoader { void recordClick(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdLoaderMap { void updateLoaders(android.content.Context,java.util.List,com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdLoaderMap { com.cmcm.adsdk.nativead.CMNativeAdLoader getAdLoader(android.content.Context,com.cmcm.adsdk.config.PosBean,com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManager { void setNativeAdListener(com.cmcm.baseapi.ads.INativeAdLoaderListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAdLoaderListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerInternal { void setAdListener(com.cmcm.baseapi.ads.INativeAdLoaderListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAdLoaderListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerInternal { void onAdClick(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerInternal$2 { NativeAdManagerInternal$2(com.cmcm.adsdk.nativead.NativeAdManagerInternal,com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerInternalEx$ImageINativeAd { NativeAdManagerInternalEx$ImageINativeAd(com.cmcm.baseapi.ads.INativeAd,int); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerMini { void setNativeAdListener(com.cmcm.baseapi.ads.INativeAdLoaderListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAdLoaderListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerMini { void onNativeAdLoaded(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerMini { void onAdClick(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerMini { void appendAd(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdsManagerInternal { boolean checkPoolHasAd(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NewsFlowAdsLoader { boolean checkPoolHasAd(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NewsFlowAdsLoader { void adClicked(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NewsFlowAdsLoader$4 { NewsFlowAdsLoader$4(com.cmcm.adsdk.nativead.NewsFlowAdsLoader,com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NewsFlowAdsLoader$NewsFlowAdListener { void onAdClick(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.PicksViewCheckHelper { PicksViewCheckHelper(android.content.Context,android.view.View,com.cmcm.baseapi.ads.INativeAd$ImpressionListener,boolean); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$ImpressionListener’
[proguard] Note: there were 8 references to unknown classes.
[proguard] You should check your configuration for typos.
[proguard] Note: there were 42 unkept descriptor classes in kept class members.
[proguard] You should consider explicitly keeping the mentioned classes
proguard.
[proguard] Note: there were 2 unresolved dynamic references to classes or interfaces.
[proguard] You should check if you need to specify additional program jars.
[proguard] Warning: there were 62 unresolved references to classes or interfaces.
[proguard] You may need to specify additional library jars (using ‘-libraryjars’).

BUILD FAILED
C:\Dev\android-sdk\tools\ant\build.xml:597: The following error occurred while executing this line:
C:\Dev\android-sdk\tools\ant\build.xml:871: Please correct the above warnings first.

Total time: 20 seconds
Error running command, return code: 1.

We’ll try to reproduce this issue which version of CocosCreator are you using?

Version 1.2.2

I have just deleted the project and re cloned from source control to see if there is something in the build files that causing issue, Will update if problem is gone

Well im managing to build again with a fresh clone for git but it doesnt have the appodeal so will avoid adding it again until teh issue has been resolved.

OK I tried the appodeal install again.

checked out a clean branch of app
installed SDKBOXPlay

decided to try appodeal again

command line : import appodeal -p ./build/jsb-default

appodeal install ok.

did build in cocos creator
did compile in cocos creator.

Failed again with same errors in log posted.

We were able to reproduce this issue. I’ll let you know once we fix it.

1 Like

appodeal plugin SDK really pain, so many SDK’s in pack - also you cant use latest SDK from Appodeal u should use bundled with SDKBOX only.

In latest version when we requesting rewarded video ads it’s by itself starting to show banner on bottom of app.

@nite

could you please check issue that banner itself showing on rewarded video request in Appodeal.

Sure, we’ll look into it asap, can you tell which provide the banner come from? admob?

most probably it was admob, but this should be an issue in SDK itself that it showing it without us calling it.

i run sdkbox-sample-appodeal cpp project on ios and android, but can’t reproduce.

can you give me a detail reproduce steps?

Have same problem with Appodeal (module cheetahmobile):

(Duplicate zip entry [com/cmcm/adsdk/BuildConfig.class]))

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Please help me.

how to reproduce this issue

I have build it with Android Studio. I import cheetahmobile like module.

the reason is,
cheetah-mobile.jar include BuildConfig.class,
gradle will auto gen BuildConfig.class in cheetah-mobile lib project,

so duplicate.

for fix your issue at now,
you can remove BuildConfig.class from cheetah-mobile.jar by run zip -d path/to/cheetah-mobile.jar ./com/cmcm/adsdk/BuildConfig.class

we will fix it in next release.

hi, I have the same problem. Tell me when it will be resolved?

We fixed this with 2.3.4 release.

but now after the installation of this plugin on a new project, I get that error

   .........................

[dx] Merged dex A (31 defs/26,5KiB) with dex B (124 defs/140,7KiB). Result is 155 defs/197,7KiB. Took 0,1s
[dx] Merged dex A (155 defs/197,7KiB) with dex B (1 defs/0,4KiB). Result is 156 defs/249,0KiB. Took 0,1s
[dx] Merged dex A (156 defs/249,0KiB) with dex B (89 defs/91,4KiB). Result is 245 defs/447,2KiB. Took 0,0s
[dx] Merged dex A (245 defs/447,2KiB) with dex B (209 defs/253,0KiB). Result is 454 defs/940,1KiB. Took 0,1s
[dx] Result compacted from 2408,4KiB to 1319,3KiB to save 1089,1KiB
[dx] Merged dex A (454 defs/940,1KiB) with dex B (797 defs/844,3KiB). Result is 1251 defs/1319,3KiB. Took 0,3s
[dx] Merged dex A (1251 defs/1319,3KiB) with dex B (1113 defs/1089,5KiB). Result is 2364 defs/2959,8KiB. Took 0,1s
[dx] Result compacted from 3865,4KiB to 2407,2KiB to save 1458,1KiB
[dx] Merged dex A (2364 defs/2959,8KiB) with dex B (4 defs/14,1KiB). Result is 2368 defs/2407,2KiB. Took 0,2s
[dx] Merged dex A (2368 defs/2407,2KiB) with dex B (61 defs/106,4KiB). Result is 2429 defs/3102,4KiB. Took 0,1s
[dx] Result compacted from 4410,5KiB to 2756,4KiB to save 1654,1KiB
[dx] Merged dex A (2429 defs/3102,4KiB) with dex B (258 defs/290,8KiB). Result is 2687 defs/2756,4KiB. Took 0,1s
[dx] Merged dex A (2687 defs/2756,4KiB) with dex B (1919 defs/1905,7KiB). Result is 4606 defs/5576,0KiB. Took 0,1s
[dx]
[dx] Result compacted from 7344,4KiB to 4903,4KiB to save 2441,0KiBUNEXPECTED TOP-LEVEL EXCEPTION:
[dx]
[dx] Merged dex A (4606 defs/5576,0KiB) with dex B (355 defs/308,3KiB). Result is 4961 defs/4903,4KiB. Took 0,2s
[dx] com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
[dx] at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:502)
[dx] at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:277)
[dx] at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:491)
[dx] at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:168)
[dx] at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
[dx] at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
[dx] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
[dx] at com.android.dx.command.dexer.Main.run(Main.java:246)
[dx] at com.android.dx.command.dexer.Main.main(Main.java:215)
[dx] at com.android.dx.command.Main.main(Main.java:106)
[dx]

BUILD FAILED
C:\Users\Zver\AppData\Local\Android\Sdk\tools\ant\build.xml:888: The following error occurred while executing this line:
C:\Users\Zver\AppData\Local\Android\Sdk\tools\ant\build.xml:890: The following error occurred while executing this line:
C:\Users\Zver\AppData\Local\Android\Sdk\tools\ant\build.xml:902: The following error occurred while executing this line:
C:\Users\Zver\AppData\Local\Android\Sdk\tools\ant\build.xml:283: null returned: 2

Total time: 1 minute 20 seconds
Error running command, return code: 1.
D:_____cocos2d-x-3.13.1__NONFREEFALL\nonfreefall>

this is the only plugin that I installed. Installing the plugin has been successfully completed. Before installing the plugin everything worked well. What could be the problem? :frowning:

I created a new project and set the plug-in, but got this error. Help:(

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files…
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files…
[echo] ----------
[echo] Handling Resources…
[aapt] Generating resource IDs…
[echo] ----------
[echo] Handling BuildConfig class…
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
[javac] Compiling 2 source files to D:_____cocos2d-x-3.13.1\NEW_PROJECTS_DIR\MyGame\cocos2d\cocos\platform\android\java\libs\cheetah-mobile\bin\classes
[echo] Creating library output jar file…
[jar] Building jar: D:_____cocos2d-x-3.13.1\NEW_PROJECTS_DIR\MyGame\cocos2d\cocos\platform\android\java\libs\cheetah-mobile\bin\classes.jar

-post-compile:

-obfuscate:
[mkdir] Created dir: D:_____cocos2d-x-3.13.1\NEW_PROJECTS_DIR\MyGame\cocos2d\cocos\platform\android\java\libs\cheetah-mobile\bin\proguard
[jar] Building jar: D:_____cocos2d-x-3.13.1\NEW_PROJECTS_DIR\MyGame\cocos2d\cocos\platform\android\java\libs\cheetah-mobile\bin\proguard\original.jar
[proguard] ProGuard, version 4.7
[proguard] Reading input…
[proguard] Reading program jar [D:_____cocos2d-x-3.13.1\NEW_PROJECTS_DIR\MyGame\cocos2d\cocos\platform\android\java\libs\cheetah-mobile\bin\proguard\original.jar]
[proguard] Reading program jar [D:_____cocos2d-x-3.13.1\NEW_PROJECTS_DIR\MyGame\cocos2d\cocos\platform\android\java\libs\cheetah-mobile\libs\cheetah-mobile.jar]
[proguard] Reading library jar [C:\Users\Zver\AppData\Local\Android\Sdk\platforms\android-23\android.jar]
[proguard] Initializing…
[proguard] Warning: com.cmcm.picks.loader.c: can’t find referenced class org.apache.http.message.BasicNameValuePair
[proguard] Warning: com.cmcm.picks.loader.c: can’t find referenced class org.apache.http.message.BasicNameValuePair
[proguard] Warning: com.cmcm.picks.loader.c: can’t find referenced class org.apache.http.NameValuePair
[proguard] Warning: com.cmcm.picks.loader.f$a: can’t find referenced class org.apache.http.client.utils.URIUtils
[proguard] Warning: com.cmcm.picks.loader.f$a: can’t find referenced class org.apache.http.client.utils.URLEncodedUtils
[proguard] Warning: com.cmcm.picks.loader.f$a: can’t find referenced class org.apache.http.message.BasicNameValuePair
[proguard] Warning: com.cmcm.picks.loader.f$a: can’t find referenced class org.apache.http.client.utils.URIUtils
[proguard] Warning: com.cmcm.picks.loader.f$a: can’t find referenced class org.apache.http.client.utils.URLEncodedUtils
[proguard] Warning: com.cmcm.picks.loader.f$a: can’t find referenced class org.apache.http.message.BasicNameValuePair
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.Header
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.HttpEntity
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.StatusLine
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.HttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.methods.HttpGet
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.methods.HttpPost
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.ClientConnectionManager
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.params.ConnManagerParams
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.PlainSocketFactory
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.Scheme
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.SchemeRegistry
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.entity.StringEntity
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.impl.client.DefaultHttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.impl.conn.SingleClientConnManager
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.params.BasicHttpParams
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.methods.HttpGet
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.methods.HttpGet
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.methods.HttpPost
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.methods.HttpPost
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.params.ConnManagerParams
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.params.ConnManagerParams
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.PlainSocketFactory
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.Scheme
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.SchemeRegistry
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.SchemeRegistry
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.entity.StringEntity
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.impl.client.DefaultHttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.impl.conn.SingleClientConnManager
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.params.BasicHttpParams
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.Header
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.HttpEntity
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.StatusLine
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.HttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.HttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.HttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.ClientConnectionManager
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.HttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.HttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.client.HttpClient
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.scheme.SchemeRegistry
[proguard] Warning: com.cmcm.utils.f: can’t find referenced class org.apache.http.conn.ClientConnectionManager
[proguard] Warning: com.cmcm.utils.k$a: can’t find referenced class org.apache.http.Header
[proguard] Warning: com.cmcm.utils.k$a: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.k$a: can’t find referenced class org.apache.http.StatusLine
[proguard] Warning: com.cmcm.utils.k$a: can’t find referenced class org.apache.http.Header
[proguard] Warning: com.cmcm.utils.k$a: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.k$a: can’t find referenced class org.apache.http.HttpResponse
[proguard] Warning: com.cmcm.utils.k$a: can’t find referenced class org.apache.http.StatusLine
[proguard] Note: com.cmcm.utils.Commons: can’t find dynamically referenced class android.os.SystemProperties
[proguard] Note: com.cmcm.utils.Commons: can’t find dynamically referenced class android.os.SystemProperties
[proguard] Note: the configuration refers to the unknown class ‘com.google.vending.licensing.ILicensingService’
[proguard] Note: the configuration refers to the unknown class ‘com.android.vending.licensing.ILicensingService’
[proguard] Note: the configuration refers to the unknown class ‘android.support.annotation.Keep’
[proguard] Note: the configuration refers to the unknown class ‘android.support.annotation.Keep’
[proguard] Note: the configuration refers to the unknown class ‘android.support.annotation.Keep’
[proguard] Note: the configuration refers to the unknown class ‘android.support.annotation.Keep’
[proguard] Note: the configuration refers to the unknown class ‘android.support.annotation.Keep’
[proguard] Note: the configuration refers to the unknown class ‘com.cmcm.picks.init.DownloadService’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.CMBaseNativeloaderAdapter { void setAdListener(com.cmcm.baseapi.ads.INativeAdLoaderListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAdLoaderListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.CMBaseNativeloaderAdapter { void setAdClickListener(com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.NativeloaderAdapter { void notifyNativeAdLoaded(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.NativeloaderAdapter { void callBack(java.lang.String,com.cmcm.baseapi.ads.INativeAd,java.util.List,java.lang.String); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.NativeloaderAdapter$CallBackRunnable { NativeloaderAdapter$CallBackRunnable(com.cmcm.adsdk.adapter.NativeloaderAdapter,java.lang.String,com.cmcm.baseapi.ads.INativeAd,java.util.List,java.lang.String); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.NativeloaderAdapter$NativeAdapterListener { void onNativeAdLoaded(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.PicksInterstatialAdapter$PicksInterstatialAd { PicksInterstatialAdapter$PicksInterstatialAd(com.cmcm.adsdk.adapter.PicksInterstatialAdapter,com.cmcm.picks.loader.Ad,android.content.Context); }’, but not the descriptor class ‘com.cmcm.picks.loader.Ad’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.adapter.PicksNativeAdapter$PicksNativeAd { PicksNativeAdapter$PicksNativeAd(com.cmcm.adsdk.adapter.PicksNativeAdapter,com.cmcm.picks.loader.Ad,android.content.Context); }’, but not the descriptor class ‘com.cmcm.picks.loader.Ad’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.banner.CMAdView$MyBannerViewLoadListener { void adClicked(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.banner.CMNativeBannerView { void renderBannerData(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.banner.CMNativeBannerView$1 { void adClicked(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.base.CMBaseNativeAd { void setAdOnClickListener(com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.base.CMBaseNativeAd { void notifyNativeAdClick(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.base.CMBaseNativeAd { void setImpressionListener(com.cmcm.baseapi.ads.INativeAd$ImpressionListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$ImpressionListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.base.CMBaseNativeAd { void setMpaModule(com.cmcm.picks.loader.MpaModule); }’, but not the descriptor class ‘com.cmcm.picks.loader.MpaModule’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.base.CMBaseNativeAd$IClickPreHanleListener { boolean preHandle(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.interstitial.InterstitialAdManager { void adClicked(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.interstitial.PicksInterstitialActivity { void setNativeAd(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.CMNativeAd { CMNativeAd(android.content.Context,com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener,java.util.Map,com.cmcm.adsdk.base.CMBaseNativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.CMNativeAd { void onAdClick(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.CMNativeAd { void setAdOnClickListener(com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.CMNativeAdLoader { void onNativeAdLoaded(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.CMNativeAdLoader { void onAdClick(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.CMNativeAdLoader { void appendAd(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.CMNativeAdLoader { void recordClick(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdLoaderMap { void updateLoaders(android.content.Context,java.util.List,com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdLoaderMap { com.cmcm.adsdk.nativead.CMNativeAdLoader getAdLoader(android.content.Context,com.cmcm.adsdk.config.PosBean,com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$IAdOnClickListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManager { void setNativeAdListener(com.cmcm.baseapi.ads.INativeAdLoaderListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAdLoaderListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerInternal { void setAdListener(com.cmcm.baseapi.ads.INativeAdLoaderListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAdLoaderListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerInternal { void onAdClick(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerInternal$2 { NativeAdManagerInternal$2(com.cmcm.adsdk.nativead.NativeAdManagerInternal,com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerInternalEx$ImageINativeAd { NativeAdManagerInternalEx$ImageINativeAd(com.cmcm.baseapi.ads.INativeAd,int); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerMini { void setNativeAdListener(com.cmcm.baseapi.ads.INativeAdLoaderListener); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAdLoaderListener’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerMini { void onNativeAdLoaded(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerMini { void onAdClick(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdManagerMini { void appendAd(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NativeAdsManagerInternal { boolean checkPoolHasAd(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NewsFlowAdsLoader { boolean checkPoolHasAd(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NewsFlowAdsLoader { void adClicked(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NewsFlowAdsLoader$4 { NewsFlowAdsLoader$4(com.cmcm.adsdk.nativead.NewsFlowAdsLoader,com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.NewsFlowAdsLoader$NewsFlowAdListener { void onAdClick(com.cmcm.baseapi.ads.INativeAd); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd’
[proguard] Note: the configuration keeps the entry point ‘com.cmcm.adsdk.nativead.PicksViewCheckHelper { PicksViewCheckHelper(android.content.Context,android.view.View,com.cmcm.baseapi.ads.INativeAd$ImpressionListener,boolean); }’, but not the descriptor class ‘com.cmcm.baseapi.ads.INativeAd$ImpressionListener’
[proguard] Note: there were 8 references to unknown classes.
[proguard] You should check your configuration for typos.
[proguard] Note: there were 42 unkept descriptor classes in kept class members.
[proguard] You should consider explicitly keeping the mentioned classes
[proguard] (using ‘-keep’).
[proguard] Note: there were 2 unresolved dynamic references to classes or interfaces.
[proguard] You should check if you need to specify additional program jars.
[proguard] Warning: there were 62 unresolved references to classes or interfaces.
[proguard] You may need to specify additional library jars (using ‘-libraryjars’).

BUILD FAILED
C:\Users\Zver\AppData\Local\Android\Sdk\tools\ant\build.xml:597: The following error occurred while executing this line:
C:\Users\Zver\AppData\Local\Android\Sdk\tools\ant\build.xml:871: Please correct the above warnings first.

Total time: 10 seconds
Error running command, return code: 1.
D:_____cocos2d-x-3.13.1\NEW_PROJECTS_DIR\MyGame>sdkbox update


|______ | \ |____/ |] | | _/
| |/ | _ |
] |____| _/ _
Copyright © 2015 SDKBOX Inc. v1.0.1.0
test speed of hosts…

  • test host main: 44.07KB/s.
  • test host china: 12.80KB/s.
    choose the fastest server ‘main’, speed is 44.07KB/s.
    2.3.5.2 2.3.5.2
    2.3.5.2 2.3.5.2
    all packages are up to date.
    D:_____cocos2d-x-3.13.1\NEW_PROJECTS_DIR\MyGame>

use this proguard to test

# appodeal

-keep class com.appodeal.** { *; }
-keep class com.amazon.** { *; }
-keep class com.mopub.** { *; }
-dontwarn com.mopub.**
-keep class org.nexage.** { *; }
-keep class com.applovin.** { *; }
-keep class com.chartboost.** { *; }
-keep class com.unity3d.ads.** { *; }
-keep class com.applifier.** { *; }
-keep class com.yandex.** { *; }
-keep class com.inmobi.** { *; }
-keep class com.facebook.** { *; }
-keep class ru.mail.android.mytarget.** { *; }
-keep class com.google.android.gms.ads.** { *; }
-keep class com.google.android.gms.common.GooglePlayServicesUtil { *; }
-keep class * extends java.util.ListResourceBundle {
  protected Object[][] getContents();
}
-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
  public static final *** NULL;
}
-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
  @com.google.android.gms.common.annotation.KeepName *;
}
-keepnames class * implements android.os.Parcelable {
  public static final ** CREATOR;
}
-dontwarn com.facebook.**
-dontwarn com.jirbo.adcolony.**
-dontwarn com.vungle.**
-dontwarn com.startapp.**
-dontwarn com.yandex.**
-dontwarn com.inmobi.**
-dontwarn org.nexage.sourcekit.**

-keep public class android.support.v4.** { *; }
-dontwarn android.support.v4.**

-keep public class android.support.v7.** { *; }
-dontwarn android.support.v7.**

-dontwarn com.appodeal.**
-dontwarn ru.mail.android.mytarget.**

-keep class com.cmcm.** { *; }
-dontwarn com.cmcm.**

# Legacy
-keep class org.apache.http.** { *; }
-dontwarn org.apache.http.**
-dontwarn android.net.http.**


# cocos2d-x
-keep public class org.cocos2dx.** { *; }
-dontwarn org.cocos2dx.**
-keep public class com.chukong.** { *; }
-dontwarn com.chukong.**

# google play service
-keep public class com.google.android.gms.** { public *; }
-dontwarn com.google.android.gms.**

-keep class * extends java.util.ListResourceBundle {
    protected Object[][] getContents();
}

-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
    public static final *** NULL;
}

-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
    @com.google.android.gms.common.annotation.KeepName *;
}

-keepnames class * implements android.os.Parcelable {
    public static final ** CREATOR;
}

#sdkbox
-keep class com.sdkbox.** { *; }
-dontwarn com.sdkbox.**