CommunityToolkit / CommunityToolkit/Maui.NativeLibraryInterop
Issues with Template
- Vorherrschende Sprache
- C#
- Sterne
- 249
- Forks
- 48
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### Description
The template, as is, does not seem to be working. The using directives are not being recognized, apparently due to the declaration of Metadata.xml.
I tried many different approaches to fix this (mostly by trying to add the generated *. aar file somehow to the project, for instance, as an AndroidLibrary or as an EmbeddedReferenceJar), but I'm getting to the conclusion that the original intention was to have something behind the scenes that would make the conversion specified in the Metadata.xml implementation work.
As per the content generated about the template, I was expecting that a simple build in Android Studio would be enough to make it happen. Before trying to fix this as I mentioned above, I was expecting that a simple build of the native Android project, followed by the build of the .Net Maui project, would be enough, as per the high level discussion on this between @rachelkang and @jamesmontemagno.
### Steps to Reproduce
1. Clone the repository
2. Open the template solution as is
3. Build the android native project
4. Build the .Net Maui
5. See that the Android using directives are not working;
### Link to public reproduction project repository
_No response_
### Environment
- OS:
- .NET MAUI:
- Target platforms:
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Öffne die Vorlagenlösung und untersuche Metadata.xml, das native Android-Projekt und das .NET MAUI-Projekt. Reproduziere die gemeldete Abfolge, indem du zuerst das native Android-Projekt und anschließend das .NET MAUI-Projekt erstellst, und verfolge dann, warum die Android-using-Direktiven nicht erkannt werden. Die Aufgabe ist abgeschlossen, wenn der dokumentierte Vorlagen-Build funktionierende Android-using-Direktiven erzeugt, ohne eine nicht erklärte manuelle AAR-Integration.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, csharp
- Bereich
- build-system, mobile-dev
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100