Starts in:
2 DAYS
3 HRS
52 MIN
59 SEC
Starts in:
2 D
3 H
52 M
59 S
Open Closed

Compile errors with Android version of MAUI app #5844


User avatar
0
darutter created
  • ABP Framework version: v7.3.3
  • UI Type:MVC
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no

I have a MAUI app that was created using v7.3.3 that compiles successfully when I target my iOS phone, but when I attempt to compile the app targeting my android device it get 100 errors all related to androidx components or symbols not being found. Below are a couple examples.

/<project path>/aspnet-core/src/BCFOAssistant.Maui/obj/Debug/net7.0-android/android/src/crc64396a3fe5f8138e3f/CustomTabsServiceConnectionImpl.java(37,37): Error JAVAC0000: error: cannot find symbol extends androidx.browser.customtabs.CustomTabsServiceConnection symbol: class CustomTabsServiceConnection location: package androidx.browser.customtabs (JAVAC0000) (BCFOAssistant.Maui) javac

/<project path>/aspnet-core/src/BCFOAssistant.Maui/obj/Debug/net7.0-android/android/src/crc6477f0d89a9cfd64b1/ItemsViewAdapter_2.java(51,51): Error JAVAC0000: error: package androidx.recyclerview.widget.RecyclerView does not exist extends androidx.recyclerview.widget.RecyclerView.Adapter (JAVAC0000) (BCFOAssistant.Maui) javac

/<project path>/aspnet-core/src/BCFOAssistant.Maui/obj/Debug/net7.0-android/android/src/crc6477f0d89a9cfd64b1/VisualElementRenderer_1.java(28,28): Error JAVAC0000: error: cannot find symbol extends com.microsoft.maui.MauiViewGroup symbol: class MauiViewGroup location: package com.microsoft.maui (JAVAC0000) (BCFOAssistant.Maui) javac

I am running this on my MAC which was just updated to the latest MAC-OS and Xcode 15. I have been working on the iOS version and only today attempted to build the android version, so I don't know if this is an issue with the updates or if it has always been an issue.

Any assistance would be appreciated.


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Can you try dotnet clean& dotnet build -f net7.0-android?

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06