How to use Cocos Helper with SDKBOX (JS project inside Android Studio)

  • olegkarman
    Likes 1

    Problem Description

    I’m using a few frameworks from Cocos Helper like Facebook, Google Analytics and Services and few from SDKBOX like Chartboost and AD Colony. Everything works great till the moment I tried to add IAP from SDKBOX. I began to receive an errors for duplicating entry or using the same name for packages (Unique Package Name). I tried to surf through the Internet for looking any solutions, but there is none.

    Solution Description

    After spending some time and trying different thing I found the solution.
    For using CH frameworks like Google Services and Analytics I always add some extra lines into my build.gradle file

        compile 'com.google.android.gms:play-services-plus:8.4.0'
        compile 'com.google.android.gms:play-services-games:8.4.0'
    
    for using Google Services
    
    and 
    
        compile 'com.google.android.gms:play-services-analytics:8.4.0'
    
    for using Google Analytics

     

    IAP from SDKBOX use their own jar for google and it began to conflict with my dependencies from build.gradle file. Even when I tried to clear my gradle file from play-services I receive an errors for not including Google+ and Google Drive.

    After looking through some folders inside my Cocos Project I found one TINY readme file isnide which I read that SDKBOX for Google Services use only lite version of their jar (default settings) and it not include many services like Google Plus, Google Drive etc.

     

    If you want to use them you need to replace this small jar with a bigger one.

    After this you need to clear your dependencies from any play-services that are inside, rebuild your projects and relax, because now you can use IAP from SDKBOX and all other Google frameworks from Cocos Helper.

    CocosProject\frameworks\cocos2d-x\cocos\platform\android\java\libs\gps\libs – this is the path for JS projects. Inside it you can find readme file, lite version of google-play-services.jar and also full version of google-play-services.jar.full. Just delete small version and erase .full in the end of full jar.

    Hope this would help someone :-D

  • Sonar Systems admin
    Likes 0

    Thanks for sharing this, I have now pinned this post as it is awesome :D


    This reply has been verified.
  • olegkarman
    Likes 0

    I’m glad to hear this :-)


    This reply has been verified.
  • Sonar Systems admin
    Likes 0

    :D :D :D


    This reply has been verified.
  • alamal1
    Likes 0

    you can use google for this problem…

    أنواع السيارات

  • alamassaat01
    Likes 0

    google search can solve your problem…

    الأزياء والمجوهرات الرسمية

  • AnitaJohn
    Likes 0

    bro Try to use google search 

    دودج تشارجر 2020

  • poooop
    Likes 0

  • zbh96159
    Likes 0

  • vizz11
    Likes 0

    Matkacenter.com  is one of most trusted site in Satta Matka Industry. We provide Live update on Results and charts of all type of games like Kalyan Matka, Mumabi Main, Madhur Matka, Dpboss, Satta Matka, Kalyan Day and Night and other forms of gaming. 

  • abhi14
    Likes 0

    Matka is the oldest form of gambling or lottery gaming. Today there are more than 20+ different forms of matka gaming are available in the market. Smart Matka, Matka 420, tara matka, satta matta matka 143 are few the popular forms of matka gaming which widely played by the players. Here at satta-matka.center we provide live updates on matka guessing, matka result, matka charts and more.There are thousands of ways to make money; then there are easy and speedy way to make money for you.

  • akhi11
    Likes 0

    Amar Matka is another popular form of Satta gambling that is played in India. It is similar to Prabhat Satta in that it involves guessing the outcome of numbers. Amar Matka is a relatively new game that originated in the 1990s. Despite its recent entry into the Satta scene, it has quickly gained a loyal following among players.

     

Login to reply