Closed JamestsaiTW closed 3 weeks ago
Can you attach a logcat file with your crash? https://learn.microsoft.com/en-us/xamarin/android/deploy-test/debugging/android-debug-log?tabs=windows
@jonathanpeppers
I think the error above is a build error, so a .binlog
would help us investigate: https://aka.ms/binlog
Hi @PureWeen and @jonathanpeppers,
I can build my project successfully, and it can deploy to android device or simulator by using Visaul Studio. My problem is "It can't archive and sign apk or abb successfully.", so I can't upload my new version app to Google Play Console.
I notice there is something odd about the nuget library of Microsoft.Maui.Controls.Core at Nuget Folder.
For my case:
The 8.0.82 and 8.0.90 version folder is correct:
and it can archive my app successfully.
The 8.0.91 version folder is wrong:
and it can't archive my app.
I also try to create a new .net maui app by the .net maui template of Visual Studio and update the Microsoft.Maui.Controls.Core version to 8.0.91. It can archive apk and aab successfully.
After I had archived by new project, I notice the nuget folder of version 8.0.91 for "Microsoft.Maui.Controls.Core" becomes the correct structure.
I also can archive my project.
But...if I delete the nugets folder of version 8.0.91 for "Microsoft.Maui.Controls.Core", it can't archive my project again.
Can you share a .binlog
of where it is writing to C:\<mynugetsfolder>\microsoft.maui.controls.core\8.0.<xx>\lib\net8.0-android34.0\<localizationfolder>\shrunk\
? https://aka.ms/binlog
If it works fine in a project template, it must be something about your settings in this specific app.
Hi @JamestsaiTW. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
Hi @JamestsaiTW. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you.
Originally posted by @tobinfodata in #23796
The same issue also had occurred on my project, too.
My workaround is creating a folder naming "shrunk" on each localization folder and copy "Microsoft.Maui.Controls.resources.dll" from localization folder to "shrunk" folder.
After repeat above step for each localization folder, app's apk/aab can be archived successfully by Visual Studio.