google play service problem(cocosHelper )

  • dfghyyt37
    Likes 0

    Problem Description
    • I’m Korean ,I’m not good at english
    • I’m using cocos2d-x 3.2 version and android 4.4.2.

    public static final boolean USE_GOOGLE_PLAY_GAME_SERVICES = true;→ my app stop.

    public static final boolean USE_GOOGLE_PLAY_GAME_SERVICES = false;→ my app don’t stop but google play service is not working.

    What’s the matter??

    please look at this log->11-16 19:48:23.042: D/dalvikvm(3630): No JNI_OnLoad found in /data/app-lib/com.google.android.gms-20/libAppDataSearch.so 0x430dad18, skipping init

    Thanks~


  • Sonar Systems admin
    Likes 0

    Have you followed the setup video?

  • dfghyyt37
    Likes 0

    yes I’m sure.->https://www.youtube.com/watch?v=ZUy6strEHwA

    please help me~  I don’t know this problem..ㅠㅠ

    I hold it for days only… but Not worked...ㅠ

  • dfghyyt37
    Likes 0

    Is it because of this?

    /*
     Copyright (C) 2015 Sonar Systems - All Rights Reserved
     You may use, distribute and modify this code under the
     terms of the MIT license
     
     Any external frameworks used have their own licenses and
     should be followed as such.
     */
    //
    //  SonarFrameworks.h
    //  Sonar Cocos Helper
    //
    //  Created by Sonar Systems on 03/03/2015.
    //
    //

    #ifndef __SONAR_FRAMEWORKS_H__
    #define __SONAR_FRAMEWORKS_H__

    #include "cocos2d.h"

    #if(CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
    #include "JNIHelpers.h"
    #elif(CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
    #include "SCHDefinitions.h"
    #endif

    #include "SimpleAudioEngine.h"
    #include "extensions/cocos-ext.h"
    #include "ui/CocosGUI.h"

    using namespace cocos2d;

    USING_NS_CC_EXT;
    using namespace ui;

    namespace SonarCocosHelper
    {
     enum AdBannerPosition { eBottom, eTop, eBoth };
        enum UIButtonPosition { eBottomLeft, eBottomRight, eTopLeft, eTopRight };
        enum CalendarUnits { eMinute = 0, eHourly, eDaily, eWeekly, eMonthly, eYearly };

        class GooglePlayServices
        {
        public:
            /**
             * Check if the user is signed in
             * @return true is signed in, false is not signed in
             */
            static bool isSignedIn( );
            /**
             * Sign the user in
             */
            static void signIn( );
            /**
             * Sign the user out
             */
            static void signOut();
            /**
             * Submit score to online leaderboard
             * @param leaderboardID is the name of your leaderboard
             * @param score is the score to submit online
             */
            static void submitScore( const char *leaderboardID, long score );
            /**
             * Unlock achievement
             * @param achievementID is the achievement to unlock
             */
            static void unlockAchievement( const char *achievementID );
            /**
             * Increment incremental achievement
             * @param achievementID is the achievement to increment
             * @param numSteps is the number of steps to increase achievement by
             */
            static void incrementAchievement( const char *achievementID, int numSteps );
            /**
             * Show the achievements
             */
            static void showAchievements( );
            /**
             * Show leaderboards
             */
            static void showLeaderboards( );
            /**
             * Show leaderboard
             * @param leaderboardID is the leaderboard to display
             */
            static void showLeaderboard( const char *leaderboardID );
        };
    }

    #endif

    becasue of an error in my eclipse..


  • dfghyyt37
    Likes 0

    I also Watched this tutorial.. and followed...ㅠㅠ

    Can I show you my file to your email?

    Please Let me know your email

  • Sonar Systems admin
    Likes 0

    yh 

     

    support@sonarsystems.co.uk 

  • dfghyyt37
    Likes 0

    I sent it now

    Thanks!!

  • dfghyyt37
    Likes 0

    Did you Have my file??

  • Sonar Systems admin
    Likes 0

    Yes, i dont see what im meant to be looking at.

  • dfghyyt37
    Likes 0

    11-16 19:48:23.042: D/dalvikvm(3630): No JNI_OnLoad found in /data/app-lib/com.google.android.gms-20/libAppDataSearch.so 0x430dad18, skipping init
    11-17 03:59:27.641: D/dalvikvm(1727): processAnnotationValue failed on default for 'httpMethod'
    11-17 03:59:27.631: W/linker(1727): libjnicrash.so has text relocations. This is wasting memory and is a security risk. Please fix.

    then,here is my log. please look at this.

  • dfghyyt37
    Likes 0

    I found some important error log!!  Please look at this log!!

    11-20 11:36:51.475: E/AndroidRuntime(17457): FATAL EXCEPTION: main
    11-20 11:36:51.475: E/AndroidRuntime(17457): Process: com.roid.testwang, PID: 17457
    11-20 11:36:51.475: E/AndroidRuntime(17457): java.lang.NoClassDefFoundError: android.support.v4.util.ArrayMap
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at com.google.android.gms.common.api.GoogleApiClient$Builder.<init>(Unknown Source)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at com.google.android.gms.common.api.GoogleApiClient$Builder.<init>(Unknown Source)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at sonar.systems.frameworks.GooglePlayServices.GooglePlayServicesGameHelper.createApiClientBuilder(GooglePlayServicesGameHelper.java:290)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at sonar.systems.frameworks.GooglePlayServices.GooglePlayServicesGameHelper.setup(GooglePlayServicesGameHelper.java:335)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at sonar.systems.frameworks.GooglePlayServices.GooglePlayServices.onCreate(GooglePlayServices.java:109)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at sonar.systems.framework.SonarFrameworkFunctions.onCreate(SonarFrameworkFunctions.java:985)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at sonar.systems.framework.SonarFrameworkActivity.onCreate(SonarFrameworkActivity.java:29)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at android.app.Activity.performCreate(Activity.java:5426)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2269)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2363)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at android.app.ActivityThread.access$900(ActivityThread.java:161)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at android.os.Handler.dispatchMessage(Handler.java:102)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at android.os.Looper.loop(Looper.java:157)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at android.app.ActivityThread.main(ActivityThread.java:5356)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at java.lang.reflect.Method.invokeNative(Native Method)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at java.lang.reflect.Method.invoke(Method.java:515)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
    11-20 11:36:51.475: E/AndroidRuntime(17457):  at dalvik.system.NativeStart.main(Native Method)
    11-20 11:36:51.475: W/ActivityManager(904):   Force finishing activity com.roid.testwang/org.cocos2dx.cpp.AppActivity

    thanks!!


  • dfghyyt37
    Likes 1

    I solved it !!, I don’t have "android-support-v4”,so I added this jar file.

    TThank you very much for providing cocoshelper!!

    thanks~~♡


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

    Great to hear :D

Login to reply