Closed
Description
Summary:
From Travis build https://travis-ci.org/barbeau/gpstest/builds/404630372:
com.google.android.gms.common does not exist
import com.google.android.gms.common.GoogleApiAvailability;
^
/home/travis/build/barbeau/gpstest/GPSTest/src/main/java/com/android/gpstest/util/UIUtils.java:206: error: cannot find symbol
appInfoGps = pm.getPackageInfo(GoogleApiAvailability.GOOGLE_PLAY_SERVICES_PACKAGE, 0);
^
symbol: variable GoogleApiAvailability
location: class UIUtils
/home/travis/build/barbeau/gpstest/GPSTest/src/main/java/com/android/gpstest/util/UIUtils.java:220: error: cannot find symbol
GoogleApiAvailability.GOOGLE_PLAY_SERVICES_VERSION_CODE,
^
symbol: variable GoogleApiAvailability
location: class UIUtils
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
We eliminate the Google library completely in the osmdroid build flavor, so we can't reference the GoogleApiAvailability
class.
Steps to reproduce:
Build the osmdroid
flavor
Expected behavior:
Build
Observed behavior:
Not build with error above
Device and Android version: