I am facing this 1 error and the 2 warnings after setting up the mapbox package as mentioned in guide for android.
Please help me out. Thanks
Here is my ext Object
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
googlePlayServicesVersion = "12.0.1"
googlePlayServicesAuthVersion = "15.0.1"
}
Here is the Log I get.
Task :mapbox-react-native-mapbox-gl:compileDebugJavaWithJavac FAILED
warning: unknown enum constant Event.ON_STOP
reason: class file for android.arch.lifecycle.Lifecycle not found
warning: unknown enum constant Event.ON_START
D:\ReactProjects\vita\node_modules\@mapbox\react-native-mapbox-gl\android\rctmgl\src\main\java\com\mapbox\rctmgl\components\mapview\RCTMGLMapView.java:160: error: cannot access LifecycleObserver
mLocationLayer.onLocationChanged(nextLocation);
^
class file for android.arch.lifecycle.LifecycleObserver not found
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.
1 error
2 warnings
I am facing this 1 error and the 2 warnings after setting up the mapbox package as mentioned in guide for android. Please help me out. Thanks Here is my ext Object ext { buildToolsVersion = "28.0.3" minSdkVersion = 16 compileSdkVersion = 28 targetSdkVersion = 28 supportLibVersion = "28.0.0" googlePlayServicesVersion = "12.0.1" googlePlayServicesAuthVersion = "15.0.1" }
Here is the Log I get.