robovm / robovm-robopods

63 stars 86 forks source link

Setting up google Analytics path doesnt work #129

Open KDevvv opened 7 years ago

KDevvv commented 7 years ago

Ive add google Analytics dependency into gradle file, add GoogleService-Info.plist into my resources folder and then in robovm.xml added this folder. Finally int IOSLauncher I write this code

@Override
    public boolean didFinishLaunching(UIApplication application, UIApplicationLaunchOptions launchOptions) {
          try {
            GGLContext.getSharedInstance().configure();
            GAI gai = GAI.getSharedInstance();
            gai.enableCrashReporting();
            System.out.println("Correct setting up launcher");
        } catch (NSErrorException e) {
            System.err.println("Error configuring the Google context: " + e.getError());
            System.out.println("Error configuring the Google context: " + e.getError());
        }
        return super.didFinishLaunching(application, launchOptions);
    }

Unfortunately I ve got this error:

Error configuring the Google context: Error Domain=com.google.greenhouse Code=-200 "Unable to configure GGL." UserInfo={NSLocalizedRecoverySuggestion=Check formatting and location of GoogleService-Info.plist., NSLocalizedDescription=Unable to configure GGL., NSLocalizedFailureReason=Unable to parse supplied GoogleService-Info.plist. See log for details.}

keesvandieren commented 7 years ago

This repository is no longer maintained, please report issue here: https://github.com/MobiVM/robovm-robopods