Cant build Android app due to AppComponentFactory problem

Brenden Jacobson 6 Reputation points
2022-11-14T02:21:23.08+00:00

I have built a few dual platform apps for Windows and Android previously using .Net Maui, but no I am getting the following error:

"Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from AndroidManifest.xml:24:18-86
1> is also present at AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).
"

As far as I am aware I am not using any v4 support functions

Any suggestions where I should be looking?

My manifest file is very simple, and does not reference any support functions.

Thanks

Developer technologies | .NET | .NET MAUI
{count} votes

2 answers

Sort by: Most helpful
  1. Brenden Jacobson 6 Reputation points
    2022-11-17T23:16:10.987+00:00

    I have discovered that the compatibility issue was due to using the Microsoft Azure Client which has been replaced by DataSync.Client.

    The DataSync package seems to work better across multiple platforms


  2. Brenden Jacobson 6 Reputation points
    2022-11-18T02:18:42.347+00:00

    Thanks for responding. I was just about to follow up with another problem.

    The call, var x = await _table.GetAsyncItems().ToListAsync();, does not return any items.

    However, if I execute exactly the same command directly through the web portal, the items are returned.
    I have verified that Insert works, so the connection to the backend must be ok.

    I have checked the http logs and the requests seems to be valid (i.e. it returns OK). Is it something to do with the ZUMO version numbers?

    [HTTP] >>> GET https://aflsimbackend.azurewebsites.net/tables/team
    [HTTP] >>> ZUMO-API-VERSION: 3.0.0
    [HTTP] >>> User-Agent: Datasync/5.0.0.0
    [HTTP] >>> User-Agent: (lang=dotnet6;os=Windows/Microsoft Windows NT 10.0.22621.0;arch=X64;version=5.0.0.0)
    [HTTP] >>> X-ZUMO-VERSION: Datasync/5.0.0.0 (lang=dotnet6;os=Windows/Microsoft Windows NT 10.0.22621.0;arch=X64;version=5.0.0.0)
    [HTTP] >>> X-ZUMO-INSTALLATION-ID: db36f09a-b0ec-4118-a962-47c4100f915b
    [HTTP] <<< OK OK
    [HTTP] <<< Date: Fri, 18 Nov 2022 02:13:03 GMT
    [HTTP] <<< Server: Microsoft-IIS/10.0
    [HTTP] <<< Access-Control-Expose-Headers: Request-Context
    [HTTP] <<< Cache-Control: no-cache
    [HTTP] <<< Pragma: no-cache
    [HTTP] <<< Vary: Accept-Encoding
    [HTTP] <<< x-zumo-server-version: net-2.0.3
    [HTTP] <<< Request-Context: appId=cid-v1:de8808e9-614a-45d3-97e2-d397098d7d78
    [HTTP] <<< X-Powered-By: ASP.NET
    [HTTP] <<< Content-Type: application/json; charset=utf-8
    [HTTP] <<< Expires: 0
    [HTTP] <<< [{"deleted":false,"updatedAt":"2020-06-30T03:29:21.083Z","createdAt":"2020-06-30T03:29:21.083Z","version":"AAAAAAAAVpQ=","id":"1d10d051a0b0445cb3708f188208b6da","groundId":null,"rating":5,"shortName":"NM","name":"North Melbourne"},{"deleted":false,"updatedAt":"2020-06-30T03:29:20.873Z","createdAt":"2020-06-


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.