Closed breeedly closed 1 year ago
@breeedly We tried the ML Demo. The logo. png in the android/app/src/main/res/mimap hdpi directory should not be set as the application icon.
It is determined according to the configuration in the AndroidManifest file:
Add the following in android/app/src/main/AndroidManifest.xml, but it still doesn't work:
This is how the directory currently looks
Doing npm uninstall of @hmscore/react-native-hms-ml and commenting out the code where hmscore/react-native-hms-ml was set causes the icon to work correctly again.
@breeedly Please provide the demo code for us to locate the problem.
@xuxiapu Sorry for the delay, here is the demo code. https://github.com/breeedly/DemoProject
@breeedly
<?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:
@xuxiapu thanks for the support, the icon works correctly again.
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:
The following versions are installed in the application
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](https://user-images.githubusercontent.com/25566805/197605564-da1d80a6-9c53-4fd9-a09b-2d96ae38af9e.png)
The application previously already has the following packages and has worked correctly
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