Errors compiling Android app

Using latest Android SDK, just downloaded, on OSX:

 

neuromancer:Dolphin7-Android-Src-v.1.9.3 marco$ gradle build

 

 

 

> Task :app:lint

 

Ran lint on variant release: 254 issues found

 

Ran lint on variant debug: 254 issues found

 

Wrote HTML report to file:///Users/marco/Downloads/Dolphin7-Android-Src-v.1.9.3/app/build/reports/lint-results.html

 

Wrote XML report to file:///Users/marco/Downloads/Dolphin7-Android-Src-v.1.9.3/app/build/reports/lint-results.xml

 

 

 

> Task :app:lint FAILED

 

 

 

FAILURE: Build failed with an exception.

 

 

 

* What went wrong:

 

Execution failed for task ':app:lint'.

 

> Lint found errors in the project; aborting build.

 

 

 

  Fix the issues identified by lint, or add the following to your build script to proceed with errors:

 

  ...

 

  android {

 

      lintOptions {

 

          abortOnError false

 

      }

 

  }

 

  ...

 

 

 

  The first 3 errors (out of 60) were:

 

  /Users/marco/Downloads/Dolphin7-Android-Src-v.1.9.3/app/src/main/java/com/boonex/oo/location/LocationHelper.java:46: Error: Call requires permission which may be rejected by user: code should explicitly check to see if permission is available (with checkPermission) or explicitly handle a potential SecurityException [MissingPermission]

 

              lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListenerGps);

 

              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

  /Users/marco/Downloads/Dolphin7-Android-Src-v.1.9.3/app/src/main/java/com/boonex/oo/location/LocationHelper.java:48: Error: Call requires permission which may be rejected by user: code should explicitly check to see if permission is available (with checkPermission) or explicitly handle a potential SecurityException [MissingPermission]

 

              lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListenerNetwork);

 

              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

  /Users/marco/Downloads/Dolphin7-Android-Src-v.1.9.3/app/src/main/java/com/boonex/oo/location/LocationHelper.java:114: Error: Call requires permission which may be rejected by user: code should explicitly check to see if permission is available (with checkPermission) or explicitly handle a potential SecurityException [MissingPermission]

 

                   gps_loc=lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);

 

                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

 

 

 

 

 

 

* Try:

 

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

 

 

 

* Get more help at https://help.gradle.org

 

 

 

BUILD FAILED in 41s

 

 

51 actionable tasks: 1 executed, 50 up-to-date

Quote · 4 Jul 2018
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.