skip to Main Content

I can’t rebuild the app in release mode for creating APK files after the installation of Plugin.Firebase and Plugin.Firebase.Crashlytics. If I remove these packages I can rebuild and create APK file.

I follow this blog and they already suggesting to install 2 packages to prevent build errors. I did that too, still getting a lot of errors.

enter image description here

My error screenshot:

enter image description here

enter image description here

Severity Code Description Project File Line Suppression State
Error NU1605 Warning As Error: Detected package downgrade: Xamarin.Kotlin.StdLib.Jdk8 from 1.7.20.1 to 1.7.10. Reference the package directly from the project to select a different version.
MyApp -> Xamarin.AndroidX.Navigation.Runtime 2.5.2.1 -> Xamarin.AndroidX.Lifecycle.Runtime.Ktx 2.5.1.1 -> Xamarin.KotlinX.Coroutines.Android 1.6.4.1 -> Xamarin.Kotlin.StdLib.Jdk8 (>= 1.7.20.1)
MyApp -> Xamarin.Kotlin.StdLib.Jdk8 (>= 1.7.10) MyApp E:My ProjectsMAUIlistpm-requester-app-mauiMyAppMyApp.csproj 1

Severity Code Description Project File Line Suppression State
Error MSB3030 Could not copy the file "C:Users.nugetpackagesxamarin.firebase.ios.cloudfirestore8.10.0.3libnet6.0-ios15.4Firebase.CloudFirestore.resourcesgrpcpp.xcframeworkios-arm64_x86_64-simulatorgrpcpp.frameworkPrivateHeaderssrccoreextupb-generatedenvoyapiv2corehttp_uri.upb.h" because it was not found. MyApp C:Program FilesMicrosoft Visual Studio2022CommunityMSBuildCurrentBinamd64Microsoft.Common.CurrentVersion.targets 4879

I went through their GitHub page, I didn’t find any similar issues. Is it a known issue?

2

Answers


  1. First error: try to update the Xamarin.Kotlin.StdLib.Jdk8 package to the latest version (1.7.20.1 or other) in your project.

    Second error: try to install the Xamarin.Firebase.iOS.CloudFirestore package (8.10.0.3) in your project and see if that fixes the problem.

    Login or Signup to reply.
  2. Ran into this not too long ago – the problem is that the file path for the xamarin.firebase.ios.* packages are too long (exceeds Windows’ path limit restrictions).

    Thankfully, the CLI doesn’t care about the file path length.

    The solution I have been using is to use dotnet add package Plugin.Firebase for initial installation, and then dotnet build once to set up the app. From then on, debugging the app should work as normal.

    When ‘archiving’ your app, I then use dotnet publish (it seems to re-download necessary packages when archiving, and will throw errors using the UI.

    Related issue

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search