After installing my apk file, I can see two icons on my device as if the app is installing twice. One thing I think it’s causing this is that, before I made a new build, I had installed this plugin : Android Native | Tools | Unity Asset Store
I’ve done my research on this and this are the conclusions I came to (I always made sure I uninstalled the previous apk before installing a new one):
- I don’t think it is due to the
package name
- My android manifest only has one
launcher activity
- Apparently when I uninstall one
“icon” it uninstalls the other one
Anyone know what might be causing this problem?
I have found my problem. I had nativeandroidlib-release.aar file and after I read some stuff I found out these files are like compressed files (like .zip, .rar etc etc).
After I opened it with winrar I could see there was an AndroidManifest in there. I opened it and found out it had the following code:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
This piece of code can only appear once in every project (you can research about it if you want). I just went to my main AndroidManifest, deleted the piece of code that was like this and voila.
I hope I helped anyone with the same issue.
I add
android:theme=“@style/UnityThemeSelector”
for tag application and my problem solved