Skip to content

cannot find symbol import com.huawei.hms.maps.model.IndoorLevel; #9

@MS-sathishkumar

Description

@MS-sathishkumar

Hi @el173

we are facing these errors while trying to run the build it's causing my build to fail. After commenting these line, was able to build without any issues. So, can you please look into it as it's a show stopper for us.

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Note: /Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/dynamsoft-capture-vision-react-native/android/src/main/java/com/dynamsoft/reactlibrary/RNDCECameraViewManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:78: error: cannot find symbol
import com.huawei.hms.maps.model.IndoorLevel;
^
symbol: class IndoorLevel
location: package com.huawei.hms.maps.model
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:101: error: cannot find symbol
OnMapReadyCallback, HuaweiMap.OnPoiClickListener, HuaweiMap.OnIndoorStateChangeListener {
^
symbol: class OnIndoorStateChangeListener
location: class HuaweiMap
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:234: error: cannot find symbol
this.map.setOnIndoorStateChangeListener(this);
^
symbol: method setOnIndoorStateChangeListener(AirMapView)
location: variable map of type HuaweiMap
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1194: error: method does not override or implement a method from a supertype
@OverRide
^
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1196: error: cannot find symbol
IndoorBuilding building = this.map.getFocusedBuilding();
^
symbol: method getFocusedBuilding()
location: variable map of type HuaweiMap
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1198: error: cannot find symbol
List levels = building.getLevels();
^
symbol: class IndoorLevel
location: class AirMapView
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1198: error: cannot find symbol
List levels = building.getLevels();
^
symbol: method getLevels()
location: variable building of type IndoorBuilding
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1201: error: cannot find symbol
for (IndoorLevel level : levels) {
^
symbol: class IndoorLevel
location: class AirMapView
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1212: error: cannot find symbol
indoorBuilding.putInt("activeLevelIndex", building.getActiveLevelIndex());
^
symbol: method getActiveLevelIndex()
location: variable building of type IndoorBuilding
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1213: error: cannot find symbol
indoorBuilding.putBoolean("underground", building.isUnderground());
^
symbol: method isUnderground()
location: variable building of type IndoorBuilding
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1232: error: method does not override or implement a method from a supertype
@OverRide
^
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1237: error: cannot find symbol
int activeLevelIndex = building.getActiveLevelIndex();
^
symbol: method getActiveLevelIndex()
location: variable building of type IndoorBuilding
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1238: error: cannot find symbol
if (activeLevelIndex < 0 || activeLevelIndex >= building.getLevels().size()) {
^
symbol: method getLevels()
location: variable building of type IndoorBuilding
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1241: error: cannot find symbol
IndoorLevel level = building.getLevels().get(activeLevelIndex);
^
symbol: class IndoorLevel
location: class AirMapView
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1241: error: cannot find symbol
IndoorLevel level = building.getLevels().get(activeLevelIndex);
^
symbol: method getLevels()
location: variable building of type IndoorBuilding
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1256: error: cannot find symbol
IndoorBuilding building = this.map.getFocusedBuilding();
^
symbol: method getFocusedBuilding()
location: variable map of type HuaweiMap
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1258: error: cannot find symbol
if (activeLevelIndex >= 0 && activeLevelIndex < building.getLevels().size()) {
^
symbol: method getLevels()
location: variable building of type IndoorBuilding
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1259: error: cannot find symbol
IndoorLevel level = building.getLevels().get(activeLevelIndex);
^
symbol: class IndoorLevel
location: class AirMapView
/Users/db-mm-031/Desktop/Umobile_plugin/reactnative_umobiles/node_modules/@el173/react-native-hms/android/src/main/java/com/el173/map/AirMapView.java:1259: error: cannot find symbol
IndoorLevel level = building.getLevels().get(activeLevelIndex);
^
symbol: method getLevels()
location: variable building of type IndoorBuilding
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.
19 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':el173_react-native-hms:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions