Closed EmilAlipiev closed 4 years ago
Might be related to this as well: https://github.com/xamarin/xamarin-android/issues/4856
Seems to be because the Support libraries are old. The best thing would be to check for downgrades and make sure all the support is v28.0.0.3+
@mattleibow thanks for the info but my support libraries are 28.0.0.3. i have recognized that i didnt remove all the support libraries which i dont need. After removing Xamarin.Android.Support.V4 from the project, it is compiling without error. Now it makes more confused because even latest 3.9.0 doesnt support AndroidX libraries yet as shown in the screenshot below. How does it compile if I uninstall Xamarin.Android.Support.V4.
Support v4 might be pulled in by another library somehow. I think Xamarin.Forms depends on AppCompat which depends on v4.
But since I didn't read your issue properly, the error says there is an issue with the manifest line
<service android:name="com.onesignal.SyncService" android:stopWithTask="false" />
Basically, duplicate entries I think... But with different android:stopWithTask="false"
values. Did you add something to your manifest manually? If you check the obj/Debug/90/android/AndroidManifest.xml
, is there duplicate values?
I havent done any change on a working AndroidManifest but just chosed to "migrate to AndroidX" and then installed suggested AndroidX libraries manually and build was causing those errors. Error is removed now after uninstalling Support V4 and Support Custom Tabs and I have just tested onesignal on Android. Everything works fine as usual. Not sure if it was conflicting with AndroidX libraries. Anyhow I am closing this issue now :) Thank you for your help.
Description: I have just converted my Xamarin.Android App to AndroidX and only errors i am getting are for OneSignal
Environment
Errors
This is my Manifest implementation
error indicates the line with PermissionsActivity. similar error i had for facebookActivity but removing android:theme="@android:style/Theme.Translucent.NoTitleBar" fixed. It doesnt fix for com.onesignal.PermissionsActivity