question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getOpenSourceSoftwareLicenseInfo not found in Google Play services

See original GitHub issue

I’m submitting a … [ ] question [x] any problem or bug report [ ] feature request

plugin version: (check one with “x”) [ ] 1.4.x [x] 2.0.0-beta2

Git rev: 785086e8139f8d8f6935912c5c87ad650c4d7f8d

cordova information: (run $> cordova plugin list)

cordova-fabric-plugin 1.1.9 "cordova-fabric-plugin"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-camera-preview 0.9.0 "cordova-plugin-camera-preview"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.7 "Console"
cordova-plugin-device 1.1.6 "Device"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-filechooser 1.0.1 "File Chooser"
cordova-plugin-geolocation 2.4.3 "Geolocation"
cordova-plugin-google-analytics 1.8.3 "Google Universal Analytics Plugin"
cordova-plugin-googlemaps 2.0.0-beta2-20170727-1500 "cordova-plugin-googlemaps"
cordova-plugin-inappbrowser 1.7.1 "InAppBrowser"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova-plugin-wkwebview-engine 1.1.4-dev "Cordova WKWebView Engine"
ionic-plugin-keyboard 2.2.1 "Keyboard"
urbanairship-cordova 6.8.0 "Urban Airship"

Current behavior: Ionic 3 Mobile App doesn’t builds because getOpenSourceSoftwareLicenseInfo was not found in Google Play services.

Expected behavior: App builds successfully.

Related code, data or error log (please format your code or data):

BUILD FAILED
        
        Total time: 1 mins 28.368 secs
        Error: /Users/pjorquera/work/mms/myGarage/platforms/android/gradlew: Command failed with exit code 1 Error 
        output:
        Note: Some input files use or override a deprecated API.
        Note: Recompile with -Xlint:deprecation for details.
        Note: Some input files use or override a deprecated API.
        Note: Recompile with -Xlint:deprecation for details.
        /Users/pjorquera/work/mms/myGarage/platforms/android/src/plugin/google/maps/AsyncLicenseInfo.java:22: error: 
        cannot find symbol
             String licenseInfo = GooglePlayServicesUtil.getOpenSourceSoftwareLicenseInfo(mActivity);
                                                        ^
           symbol:   method getOpenSourceSoftwareLicenseInfo(Activity)
           location: class GooglePlayServicesUtil
        /Users/pjorquera/work/mms/myGarage/platforms/android/src/plugin/google/maps/Environment.java:124: error: cannot 
        find symbol
             String msg = GoogleApiAvailability.getInstance().getOpenSourceSoftwareLicenseInfo(cordova.getActivity());
                                                             ^
           symbol:   method getOpenSourceSoftwareLicenseInfo(Activity)
           location: class GoogleApiAvailability
        Note: Some input files use or override a deprecated API.
        Note: Recompile with -Xlint:deprecation for details.
        Note: Some input files use unchecked or unsafe operations.
        Note: Recompile with -Xlint:unchecked for details.
        2 errors
        
        FAILURE: Build failed with an exception.

Google has deprecated (and removed) the symbol getOpenSourceSoftwareLicenseInfo(Context context) from Google Play services as can be seen here: https://developers.google.com/android/reference/com/google/android/gms/common/GooglePlayServicesUtil.html#getOpenSourceSoftwareLicenseInfo(android.content.Context)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:32 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
wf9a5m75commented, Aug 16, 2017

Oops. Fixed.

1reaction
wf9a5m75commented, Aug 18, 2017

published.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Where do I find the Google Play Services attribution text?
The attribution text is available by making a call to GooglePlayServicesUtil.getOpenSourceSoftwareLicenseInfo . But GooglePlayServicesUtil is ...
Read more >
GooglePlayServicesUtil | Google Play services
Utility class for verifying that the Google Play services APK is available and up-to-date on this device. The same checks are performed if ......
Read more >
Keep your device & apps working with Google Play Services
Keep your device & apps working with Google Play Services. Google Play Services keeps your apps updated and running smoothly on Android devices....
Read more >
GooglePlayServicesUtil | Android Developers
Returns the open source software license information for the Google Play services application, or null if Google Play services is not available on...
Read more >
Bug: GoogleApiAvailability.getInstance ... - Issue Tracker
The utility method getOpenSourceSoftwareLicenseInfo(getActivity()) is ... Was this working correctly on a previous version of Google Play Services?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found