nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 699 forks source link

fail to build android project #1715

Open shay-te opened 2 years ago

shay-te commented 2 years ago

> Task :react-native-mapbox-gl_maps:lint FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-mapbox-gl_maps: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
      }
  }
  ...

  Errors found:

  /Users/shaytessler/Desktop/dev/objective-love-mobile/node_modules/@react-native-mapbox-gl/maps/android/rctmgl/src/main/java/com/mapbox/rctmgl/components/styles/sources/RCTMGLShapeSourceManager.java:92: Error: The logging tag can be at most 23 characters, was 24 (RCTMGLShapeSourceManager) [LongLogTag]
              Log.w(LOG_TAG, e.getLocalizedMessage());
                    ~~~~~~~
triptec commented 1 year ago

Did @shay-te or @javadmsd solve it? Adding

  android {
      lintOptions {
          abortOnError false
      }
  }

does not solve it..