question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Icon in Android app not working with @hmscore/react-native-hms-ml

See original GitHub issue

Currently I have an application in production and it works correctly. Speech recognition is being implemented in the app, so the following package was installed:

"@hmscore/react-native-hms-ml": "^3.5.0-301"

The following versions are installed in the application

"react": "17.0.2",
"react-native": "0.67.4"

JDK: openjdk 11.0.16.1 2022-07-19 LTS OpenJDK Runtime Environment Zulu11.58+23-CA (build 11.0.16.1+1-LTS) OpenJDK 64-Bit Server VM Zulu11.58+23-CA (build 11.0.16.1+1-LTS, mixed mode)

It was configured according to the documentation and the voice recognition works, but the application icon no longer recognizes the one it had, but is modified by the default android one when a project is created in react-native image

The application previously already has the following packages and has worked correctly

"@hmscore/react-native-hms-availability": "^5.2.0-300",
"@hmscore/react-native-hms-location": "^5.1.0-303",
"@hmscore/react-native-hms-push": "^5.3.0-304",

In addition to this, when generating an apk-release.apk without the package “@hmscore/react-native-hms-ml” the size of the .apk file is 36.8Mb, but when adding this package the apk-release.apk has a size of 177.4Mb

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
xuxiapucommented, Nov 10, 2022

@breeedly

  1. The problem of icon change has nothing to do with the HMSCore ML plug-in.
  2. To change the icon, you need to configure the IC_ launcher.xml. image References are as follows:
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
  <background android:drawable="@mipmap/ic_launcher_adaptive_back"/>
  <foreground android:drawable="@mipmap/ic_launcher_adaptive_fore"/>
</adaptive-icon>

And configure corresponding pictures, such as:

image

0reactions
breeedlycommented, Nov 10, 2022

@xuxiapu thanks for the support, the icon works correctly again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix an installed Android app that isn't working - Google Support
Step 1: Restart & update · Open the Google Play Store app Google Play . · At the top right, tap the profile...
Read more >
App launcher Icons suddently not working Android Studio
When a launcher requests an app icon, the framework returns either android:icon or android:roundIcon, depending on the device build ...
Read more >
Change the app icon - Android Developers
In this codelab, you will change the app icon for an app. ... You may also hear the app icon referred to as...
Read more >
Troubleshoot OneDrive mobile app problems - Microsoft Support
For all OneDrive mobile sync, sharing, and upload issues, make sure you can connect to the ... OneDrive app issues - Android ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found