-
Sonar Systems adminLikes 0
Yes it shouldn’t be a problem.
This reply has been verified.
-
olegkarmanLikes 0
I receive some errors during combining SDKBOX and Sonar Cocos Helper.
At the beginning I get
Error: more than one library with package name 'com.google.android.gms' You can temporarily disable this error with android.enforceUniquePackageName=false However, this is temporary and will be enforced in 1.0
After adding
android.enforceUniquePackageName=false
into my gradle file I get
Error:Execution failed for task ':IAP:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_65\bin\java.exe'' finished with non-zero exit value 2
Then I try to add MultiDex to solve the error, but then I receive
Error:Execution failed for task ':IAP:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/actions/ItemListIntents.class
Is there any suggestions how to solve this?
Or maybe you have some sort of installation guide? Because SDKBOX use his own jar with google and Cocos Helper use jar from android-sdk and it seems that I have a problem with duplication because of this two different google jars.
-
olegkarmanLikes 0
Ok, I found the solution. SDKBOX has two types of jar for Google Play Services: one is full and it has everything that you need and another has only a part of its services. The default setting of SDKBOX use second type of jar so you have to replace smaller google-play-services.jar with a full one. After that you can easily use Cocos Helper with SDKBOX.
ProjectFolder\frameworks\cocos2d-x\cocos\platform\android\java\libs\gps\libs – this is path for JS project and there you can find this jars.
-
Sonar Systems adminLikes 0
Great to hear you solved it :D
Feel free to post this as solution on Sonarlearning Q/A
This reply has been verified.
-
olegkarmanLikes 0
I became very happy after I found this :-)
I would like to post this solution, but I’m afraid that my English(in writing) will confuse someone :-|
-
Sonar Systems adminLikes 0
Don’t feel afraid, the Sonar community welcomes everyone. Please do post your amazing solution.
Login to reply