Visual Studio 16.3.2 Unexpected Element Activity

slink99slink99 Member ✭✭

I have an app developed using XF and VS2019. Everything was working fine form compile and publish until 16.3.2 Visual Studio upgrade. I am using Google Ads implemented using Marctron.Admob, which seems to be the source of this problem in some way. The line that it is triggering on is
<application android:label="NYWineryHopper.Android" android:icon="@drawable/icon" android:name="android.support.multidex.MultiDexApplication" android:allowBackup="true" android:debuggable="true">
Has anyone experienced issues with an upgrade to the latest VS and XF versions?

Answers

  • slink99slink99 Member ✭✭

    By the way, the projects being rebuilt are NC Wine Hopper and VA Wine Hopper for Android and iOS. Both of those are out and operational. I am trying to build NY Wine Hopper, but all three of these projects fail with the updated VS 2019.
    Now I have upgraded to 16.3.3 and have an unmodified project with:
    Marctron Admob 1.4.0
    Google MobileAds 7.38.0
    Newtonsoft Json 12.0.2
    Plugin Permissions 3.0.0.12
    Refractored MVVMHelpers 1.3.0
    SQLite Net PCL 1.5.231
    Xamarin Essentials 1.2.0
    XF 4.1.0.673156

    The error is the same type but it comes up for line
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    It happened before, but I added that permission to move it to the line below it. Just updated all of the Xamarin.Android.Compat packages plus Xamarin Essentials. Clean/Build still shows the message. XF has been updated to 4.2, same issue. Marctron Admob is 1.4.3, Clean/Build same issue. MobileAds updated to 7.47.0. Clean/Build, same issue. Final update is SQLite to 1.6.292. Clean/Build, no fix. Add permission for WRITE_EXTERNAL_STORAGE, problem line drops to below <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:theme="@android:style/Theme.Translucent" />

    Changed to NetStandard 2.1, no difference. I keep referring to https://github.com/xamarin/GooglePlayServicesComponents/issues/254, but there is still no solution indicated. I was looking at the dependencies for Marctron Admob, so GooglePlayServices,Ads.Lite was attempted to be added to the project, not compatible even after backing up to NetStandard 2.0. Changed target Android version to 9 and rebuilt, same problem. Still can't add the ads service, any ideas?

Sign In or Register to comment.