MAUI fails to deploy Android app
Hi,
Ia m trying to deploy my MAUI Android app to my device but keep getting Build Failed and not sure what is the reason.
Attached is the build log..
Kindly help..
Thanks,
Jassim
.NET MAUI
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 44,011 Reputation points • Microsoft Vendor
2023-03-30T07:35:08.9433333+00:00 For further investigation, could you please provide more detailed information about how to reproduce this issue, the version of VS and MAUI?
Have you tried to delete the
obj
andbin
folders of your project and clickclean solution
, then rebuild this project?your prompt reply will be highly appreciated.
-
Jassim Al Rahma 1,576 Reputation points
2023-03-30T09:26:22.52+00:00 I am just trying to run the app on the device and getting this error.
Visual Studio for Mac 17.5.3 (build 15)
Visual Studio Community 2022 for Mac Version 17.5.3 (build 15) Installation UUID: c5cb26fd-1a21-44ce-9207-e456c169d36d Runtime .NET 7.0.1 (64-bit) Architecture: X64 Microsoft.macOS.Sdk 12.3.2372; git-rev-head:754abbf6a3563f6267e5717ae832b4ac25b1f2fb; git-branch:release/7.0.1xx-xcode13.3 Roslyn (Language Service) 4.5.0-3.23056.2+97881342e427ff5cdcba8f12b12ff8e6f3564431 NuGet Version: 6.4.0.117 .NET SDK (x64) SDK: /usr/local/share/dotnet/sdk/7.0.202/Sdks SDK Versions: 7.0.202 7.0.201 7.0.200 7.0.103 7.0.102 7.0.101 7.0.100 6.0.407 6.0.406 6.0.405 6.0.404 6.0.403 6.0.402 6.0.401 3.1.426 3.1.425 3.1.424 3.1.423 MSBuild SDKs: /Applications/Visual Studio.app/Contents/MonoBundle/MSBuild/Current/bin/Sdks .NET Runtime (x64) Runtime: /usr/local/share/dotnet/dotnet Runtime Versions: 7.0.4 7.0.3 7.0.2 7.0.1 6.0.15 6.0.14 6.0.13 6.0.12 6.0.11 6.0.10 6.0.9 3.1.32 3.1.31 3.1.30 3.1.29 Xamarin.Profiler Version: 1.8.0.49 Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler Updater Version: 11 Apple Developer Tools Xcode: 14.2 21534 Build: 14C18 Xamarin.Mac Version: 9.1.0.5 Visual Studio Community Hash: 7738c90c9 Branch: xcode14.2 Build date: 2023-01-25 15:56:14-0500 Xamarin.iOS Version: 16.2.0.5 Visual Studio Community Hash: 7738c90c9 Branch: xcode14.2 Build date: 2023-01-25 15:56:15-0500 Xamarin Designer Version: 17.5.3.47 Hash: e8b5d371c3 Branch: remotes/origin/d17-5 Build date: 2023-03-23 16:21:17 UTC Xamarin.Android Version: 13.2.0.0 (Visual Studio Community) Commit: xamarin-android/d17-5/797e2e1 Android SDK: /Users/jassim/Library/Developer/Xamarin/android-sdk-macosx Supported Android versions: 12.1 (API level 32) 8.0 (API level 26) 12.0 (API level 31) 8.1 (API level 27) 11.0 (API level 30) 10.0 (API level 29) 7.1 (API level 25) 9.0 (API level 28) 13.0 (API level 33) SDK Command-line Tools Version: 7.0 SDK Platform Tools Version: 33.0.2 SDK Build Tools Version: 33.0.0 Build Information: Mono: 6dd9def Java.Interop: xamarin/java.interop/main@149d70fe SQLite: xamarin/sqlite/3.40.0@fdc1e34 Xamarin.Android Tools: xamarin/xamarin-android-tools/main@9f02d77 Microsoft Build of OpenJDK Java SDK: /Library/Java/JavaVirtualMachines/microsoft-11.jdk 11.0.16.1 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL Eclipse Temurin JDK Java SDK: /Library/Java/JavaVirtualMachines/temurin-8.jdk 1.8.0.302 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL Android SDK Manager Version: 17.5.0.33 Hash: f0c0c52 Branch: remotes/origin/d17-5~2 Build date: 2023-03-23 16:21:22 UTC Android Device Manager Version: 0.0.0.1245 Hash: 7f8a990 Branch: 7f8a990 Build date: 2023-03-23 16:21:23 UTC Build Information Release ID: 1705030015 Git revision: c7ec3826dd11045a53fa7f2c08ddbd6bd475c05b Build date: 2023-03-23 16:19:44+00 Build branch: release-17.5 Build lane: release-17.5 Operating System Mac OS X 13.3.0 Darwin 22.4.0 Darwin Kernel Version 22.4.0 Mon Mar 6 21:00:17 PST 2023 root:xnu-8796.101.5~3/RELEASE_X86_64 x86_64
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 44,011 Reputation points • Microsoft Vendor
2023-03-31T07:56:52.7833333+00:00 If you create a new Android project without making any changes, will deploy succeed?
If not, the cause of this problem should be that your Android emulator is running out of space, and you can either remove some unnecessary apps or create a new one to test it.
If the deploy succeeds, there are some runtime errors in your project, can you provide a minimized example that can reproduce this problem?
Your prompt reply will be highly appreciated.
-
Jassim Al Rahma 1,576 Reputation points
2023-03-31T09:40:35.3333333+00:00 I tried it on Android Emulator, Android Device Phone (Nokia) and Android Device Tablet (Samsung)
-
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 44,011 Reputation points • Microsoft Vendor
2023-04-01T10:46:40.2933333+00:00 Could you please provide a minimal sample which could reproduce this issue?
Since this issue cannot be reproduced, it is recommended that you create a support ticket to get one-on-one support.
-
Lloyd Sheen 1,481 Reputation points
2023-04-01T15:31:01.5933333+00:00 For the Android space problem , I have the same problem with V33 of the Android emulator. When it happens you get a message indicating that space is the problem.
-
Jassim Al Rahma 1,576 Reputation points
2023-04-07T11:31:27.3166667+00:00 I don't have Support Plan @Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) Regarding the space @Lloyd Sheen I have 65GB on my Android phone
-
Deleted
This comment has been deleted due to a violation of our Code of Conduct. The comment was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Sign in to comment