8000 osmdroid flavor build is broken · Issue #171 · barbeau/gpstest · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
osmdroid flavor build is broken #171
Closed
@barbeau

Description

@barbeau

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0