Giter Club home page Giter Club logo

react-native-hms's Introduction

HELLO, WORLD. ๐Ÿ‘‹

I'm Hashith Karunarathne (FULL STACK DEVELOPER) Focus on BigPicture; $yntax doesn't matter

el173

el173 el173
el173 el173

react-native-hms's People

Contributors

el173 avatar maharshi01 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

react-native-hms's Issues

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

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.

Path issue.

Hi @el173 !

When i add these line into setting.gradle

include ':@el173_react-native-hms'
project(':@el173_react-native-hms').projectDir = new File(rootProject.projectDir, '../node_modules/@el173/react-native-hms/android')

I am getting error

ERROR: The modules ['@el173_react-native-hms', 'el173_react-native-hms'] point to the same directory in the file system. Each module must have a unique path.

When i comment these line. App is crashing . Please let me know what is the issue.

App crash

Hi!

I have follow steps as mentioned in guidance. Everything seems looks fine but app is crashing and i am getting this error.

Unable to get provider com.huawei.agconnect.core.provider.AGConnectInitializeProvider: java.security.InvalidParameterException: url is null

Could not find any matches for com.huawei.hms:location:+ as no versions of com.huawei.hms:location are available. Searched in the following locations:

Hi Hashith,

Suddenly today while running the build in android, got the following error, now unable to even run in android. Can u please help to solve this. I have attached screenshot for your reference.

Could not determine the dependencies of task ':app:preDebugBuild'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not find any matches for com.huawei.hms:location:+ as no versions of com.huawei.hms:location are available.
Searched in the following locations:
- file:/Users/kashif/.m2/repository/com/huawei/hms/location/maven-metadata.xml
- file:/Users/kashif/.m2/repository/com/huawei/hms/location/
- file:/Users/kashif/Desktop/feature_ekyc/reactnative_umobiles/node_modules/react-native/android/com/huawei/hms/location/maven-metadata.xml
- file:/Users/kashif/Desktop/feature_ekyc/reactnative_umobiles/node_modules/react-native/android/com/huawei/hms/location/
- file:/Users/kashif/Desktop/feature_ekyc/reactnative_umobiles/node_modules/jsc-android/dist/com/huawei/hms/location/maven-metadata.xml
- file:/Users/kashif/Desktop/feature_ekyc/reactnative_umobiles/node_modules/jsc-android/dist/com/huawei/hms/location/
- https://dl.google.com/dl/android/maven2/com/huawei/hms/location/maven-metadata.xml
- https://dl.google.com/dl/android/maven2/com/huawei/hms/location/
- https://jcenter.bintray.com/com/huawei/hms/location/maven-metadata.xml
- https://jcenter.bintray.com/com/huawei/hms/location/
- https://maven.google.com/com/huawei/hms/location/maven-metadata.xml
- https://maven.google.com/com/huawei/hms/location/
- https://jitpack.io/com/huawei/hms/location/maven-metadata.xml
- https://jitpack.io/com/huawei/hms/location/
- https://developer.huawei.com/repo/com/huawei/hms/location/maven-metadata.xml
- https://developer.huawei.com/repo/com/huawei/hms/location/2.0.0.300/location-2.0.0.300.pom
- https://developer.huawei.com/repo/com/huawei/hms/location/2.0.0.300/location-2.0.0.300.jar
Required by:
project :app > project :el173_react-native-hms

Screenshot 2021-07-01 at 9 10 48 PM

Url is null

Hi!

I followed each and every step mentioned in documentation (instruction). I am getting error

Unable to get provider com.huawei.agconnect.core.provider.AGConnectInitializeProvider: java.security.InvalidParameterException: url is null

Please let me know what is the issue.?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.