[SOLVED] can't build with SDKBOX GA

cocos2d-x v3.17.1, SDKBOX v1.0.2.8, SDKBOX google analytics v2.4.4.4, Android Studio 3.3

The following error message is displayed when building project created by ‘cocos new Test -l cpp’.

Can’t find common super class of [com/google/android/gms/common/api/Status] (with 3 known super classes) and [com/google/android/gms/common/data/DataHolder] (with 1 known super classes)

How can I fix the error ?

[SOLVED]
the last line of ‘build.gradle’

dependencies { compile ‘com.google.android.gms:play-services-analytics:12.0.1’ }

modified to as follows

dependencies { compile ‘com.google.android.gms:play-services-analytics:15.0.0’ }

~/test/cpp3171 [master] $ sdkbox info
  _______ ______  _     _ ______   _____  _     _
  |______ |     \ |____/  |_____] |     |  \___/
  ______| |_____/ |    \_ |_____] |_____| _/   \_
 Copyright (c) 2016-2018 SDKBOX Inc. v1.0.2.8
 installed packages:
     v2.4.3.3 googleanalytics
     v2.4.3.3 googleplayservices

plz do some modify with proj.android/app/build.gradle file:

dependencies { compile 'com.google.android.gms:play-services-ads:15.0.1' }
dependencies { compile 'com.google.android.gms:play-services-analytics:15.0.0' }

build log

BUILD SUCCESSFUL in 15s
55 actionable tasks: 15 executed, 40 up-to-date
VCS Checkout Cache (/Users/admin/test/cpp3171/proj.android/.gradle/vcsWorkingDirs) has not been cleaned up in 0 days
Move apk to /Users/admin/test/cpp3171/bin/debug/android
Build succeed.
1 Like