-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Net8.0 Publish failing with error XAGJS7023: System.IO.DirectoryNotFoundException #12945
Comments
@grendello is this a new one? @LoopedBard3 I'm guessing if you pass |
The APK is now being built, but the app is closing immediately after clicking open. Let me see if I can get some logcat information. I also noticed a new file in the output: |
This seems to be the logcat section with useful data:
|
@jonathanpeppers yep, it appears to be @LoopedBard3 try building with |
@grendello completely removed the app and output directories (including the bin and obj folders), and recreated and built the app but am still hitting issues with the app starting on my Galaxy S10e. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
@jfversluis I believe this is showing .NET 8 MAUI apps crash when they try to run the .NET performance pipeline. I don't think we should move it to the backlog? |
After testing a group of different build configuration setups locally, this appears to be related to including a RID (-r ) with self-contained. Here are the results that I had, although I used our performance pipelines python pre.py script for most of the testing:
|
I tried to reproduce this issue with Xamarin.Android/main, MAUI $ dotnet build -f net8.0-android -r android-arm64 -c Release test.csproj -bl -o pub
$ dotnet build -f net8.0-android -r android-arm64 -c Release test.csproj -bl
$ dotnet publish -f net8.0-android -r android-arm64 -c Release test.csproj -bl -o pub
$ dotnet publish -f net8.0-android -r android-arm64 -c Release test.csproj -bl
@LoopedBard3 would you be able to try with the above dotnet version and XA/main build from https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=7325440&view=artifacts&pathAsName=false&type=publishedArtifacts ? |
Hi @LoopedBard3. We have added the "s/needs-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. |
This might be the same problem as: dotnet/android#7819 @LoopedBard3 do the latest builds from dotnet/maui/net8.0 work? |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
After rerunning the repro steps, the issue appears to be fixed, closing! |
Description
Publishing a newly created Maui app targeting net8.0-android fails with the following error:
This occured while using the dotnet version specified here https://aka.ms/dotnet/sdk/maui/net8.0.json and the Maui workload rollback file https://aka.ms/dotnet/maui/net8.0.json.
Here is a binlog of a failed build (Just remove .zip from name):
failingandroidbuild.binlog.zip
Steps to Reproduce
dotnet publish -f net8.0-android -r android-arm64 --self-contained
Exact commands when run from performance/src/scenarios of the https://github.com/dotnet/performance repo, after the dotnet version from above is installed. The python script will install the correct Maui version with rollback files and try to build the app.
Expected Outcome: Maui Android app is published properly.
Actual outcome: The following error:
Link to public reproduction project repository
https://github.com/dotnet/performance
Version with bug
8.0 previews
Last version that worked well
8.0 previews
Affected platforms
Android
Affected platform versions
Latest Android
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: