-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Error: ICON_INVALID] #74
Comments
@Ammarlio please use v5 and try using the updated docs for the setup |
@Ammarlio
P.S: In my project library linking in both iOS and Android is manual. |
Hello @skb1129 I tried using your package and getting the same error on the PROD. When I tried to display system generated error to get more detail about the error, I got below error: @mayyas-nakhli I've tried your solution as well but that's also not working. @skb1129 Also updated to V5 and got this error. |
Make sure your applicationId is correct in android/app/build.gradle. This mismatch can cause problems.
|
Thanks for your response I'll have a look into it and get back to you if it
helps or not.
…On Mon, 2 Oct 2023, 8:07 pm vimosan7, ***@***.***> wrote:
Make sure your applicationId is correct in android/app/build.gradle. This
mismatch can cause problems.
defaultConfig {
applicationId "com.yourapplicationid"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
signingConfig signingConfigs.debug
vectorDrawables.useSupportLibrary = true
}
—
Reply to this email directly, view it on GitHub
<#74 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE7ZQYKGEW2RZRGU35EE23DX5LGQZAVCNFSM6AAAAAARO6TK3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTGE2DCMRTGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I'm facing issues to make changes in AndroidManifest.xml, when I'm having .SplashActivity (react-native-splash-screen). I tried multiple permutation-combination but either app is crashing or getting [Error:ICON_INVALID]. Current AndroidManifest.xml code is below and getting [Error:ICON_INVALID] error. Thanks
|
I use more than one variant. These types of applications give this error because of the package name, how should we use it? |
Have the same error. Do you resolve it |
Hello, I have the same error too, here is something can fix it:
|
Had the same issue, this is because if you define a flavor with an applicationId, the packageName would become: I could solve it by removing the flavor in So i came up with this solution:
Guess we need a way to detect flavors properly so they can be removed. |
I tried this solution but it didn't work very well, my app duplicated on the device with different icons, at least I could see the library working (I have 3 different versions in my app, without this workaround I couldn't even see the library working), but it didn't solve my problem, unfortunately I was forced to stop the feature I was developing. |
For me, the solution was to remove the applicationId and leave just "MainActivityIconName":
After:
|
@marcosbotene in Android the native behaviour is create two icons, keep the old one and create the new one. try do that in your ChangeIconModule.java:
|
@lucassms9 Thank you so much for your help! Your solution worked perfectly and saved me a lot of time. I really appreciate your effort and support! |
Reason - Your app must have build variants due to which this.packageName get's combined with the build variant. But to change the icon we don't need to combine the packagename with build variant so, for a temproary solution
then run
|
Platform
Description
After Integrating and follow the same steps for Android, i am getting [Error: ICON_INVALID]. I did all the steps as the docs and all icons are valid. Anyway on IOS it works fine. Even if i am setting enable property to true in activity-alias for default icon, i am getting the same error.
To Reproduce
Steps to reproduce the behavior:
Screenshots
[Error: ICON_INVALID]
Device (please complete the following information):
Versions
Code Snippet
The text was updated successfully, but these errors were encountered: