getOpenSourceSoftwareLicenseInfo not found in Google Play services
See original GitHub issueI’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:
- Created 6 years ago
- Comments:32 (15 by maintainers)

Top Related StackOverflow Question
Oops. Fixed.
published.