Comments (21)
You add -bl
to the dotnet build
command:
https://github.com/dotnet/msbuild/blob/main/documentation/wiki/Binary-Log.md
from maui-samples.
Did you upload the msbuild.binlog
file? You'll probably have to zip it, before Github will allow it.
from maui-samples.
Ok sir @jonathanpeppers
I will attach zip file in 10 min
from maui-samples.
How to create msbuild.binlog file?
@jonathanpeppers
from maui-samples.
here is the zip file @jonathanpeppers
msbuild.ProjectImports.zip
from maui-samples.
@jonathanpeppers
Here is my binlog file
https://github.com/dotnet/net6-mobile-samples/files/6338670/msbuild.binlog.2.zip
from maui-samples.
Your project has: <PackageReference Include="Microsoft.Maui" Version="6.0.100-preview.3.322+sha.b83f98aca-azdo.4633246" />
Does it work if you use the version in these samples:
from maui-samples.
Thank you @jonathanpeppers SIR
and i am using this package
<PackageReference Include="microsoft.maui.resizetizer" Version="6.0.100-preview.3.322" />
it is work but I have another issue
error XA1018: Specified AndroidManifest file does not exist: F:\Others\MAUI\hello2\AndroidManifest.xml
from maui-samples.
i am using this package & it shows me this error see image @jonathanpeppers
<PackageReference Include="Microsoft.Maui" Version="6.0.100-preview.3.322" />
from maui-samples.
Your project has:
<PackageReference Include="Microsoft.Maui" Version="6.0.100-preview.3.322+sha.b83f98aca-azdo.4633246" />
Does it work if you use the version in these samples:
no sir it does not work it shows me this error
from maui-samples.
Thank you for your advice @jonathanpeppers
And i am your big fan
My system has
Microsoft.Android.sdk
old version.
I uninstalled this version
Install new version of Microsoft.Android.sdk with version(11.0.200-preview:3.196)
And my problem has solved
Let me tell you
Android version 8.1 support or not?
from maui-samples.
Android version 8.1(Api 27) support or not?
Because
When I am run my simulator it is installed and working fine
But When I am run my device it shows me this error
ADB0020: Mono.AndroidTools.IncompatibleCpuAbiExceptiopn: The package does not support the CPU architecture of this device.
My device detail
Device : Lg Q6
Api : - 27
Kernel Version : 3.18.71
from maui-samples.
@Divyeshpatel6073 the IncompatibleCpuAbiException
error means your device might be 32-bit?
Try adding -r android-arm
to the command-line or put <RuntimeIdentifier>android-arm</RuntimeIdentifier>
.
You can also put multiple if you want to use the x86 emulator:
<RuntimeIdentifiers>android-arm;android-x86</RuntimeIdentifiers>
from maui-samples.
@jonathanpeppers
Thank you for your advice.
Lastly Thank you very very much.
it's run.
tell me how to debug my application?
from maui-samples.
We have some examples for Visual Studio on Windows and VS Code here: https://github.com/dotnet/net6-mobile-samples#using-ides
James Montemagno also made a nice video: https://www.youtube.com/watch?v=Ppb4PnpWrjg
from maui-samples.
Fresh install of VS 2022 on MacOS
Verified all botnet sdks and runtimes installed as per documentation.
Installed latest maui workflow.
Result:
Microsoft.NET.TargetFrameworkInference.targets(112, 5): [NETSDK1139] The target platform identifier android was not recognized.
Microsoft.NET.TargetFrameworkInference.targets(112, 5): [NETSDK1139] The target platform identifier ios was not recognized.
Microsoft.NET.TargetFrameworkInference.targets(112, 5): [NETSDK1139] The target platform identifier maccatalyst was not recognized.
Please get this fixed rather than just closing the issue. net 7.0 is GA!!!
from maui-samples.
@jwoeste your error above usually means your workloads are hosed, sorry! You could follow this to get back to a clean state:
https://gist.github.com/jonathanpeppers/63beb491a9185ac06710261536cc35c9
If you want to get traction on this problem, I would file an issue here with more details:
https://github.com/dotnet/sdk/issues
from maui-samples.
@jonathanpeppers followed your instructions
clean .NET (running on M1 macOS):
rm -r ~/.dotnet/
sudo rm -r /usr/local/share/dotnet/
Installed .NET 7.0.100 SDK (ARM) and .NET 7.0.0 Runtime (ARM)
Then:
sudo dotnet workload install maui
Result:
/usr/local/share/dotnet/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(112,5) : error NETSDK1139: The target platform identifier android was not recognized.
Still the same as before.
I will try to write up a more comprehensive report and file it under dotnet/sdk/issues. Searching a bit I can see that this issue has been around since the first release of maui and every time it has been closed as solved. Either it was never solved or there is a huge issue with regression in the repos.
Honestly though - maybe the real issue is that a workload is being used to perform what a nuget should have done - thus making it very difficult to reproduce the right dependencies/versioning? Idk.
from maui-samples.
Any chance a global.json
file is involved? If there is one in the current directory, is that causing problems?
from maui-samples.
no global.json involved. Same thing regardless of creating project from cli (dotnet new maui -o mauitest) or using template in VS2022 for Mac (both 17.4 and 17.5 preview). Same also occurs in jet brains rider.
Only way to build and run is from cli.
from maui-samples.
If CLI works, then this is an issue in VS Mac. I'd use the "Send Feedback" button, and maybe someone can help there.
from maui-samples.
Related Issues (20)
- why are all sample codes not running because of packages? HOT 3
- BugSweeper
- WebAuthenticator in PlatformIntegrationDemo ends (crashes?) App HOT 1
- Native embedding sample
- NativeEmbeddingDemo doesn't work. HOT 2
- DatePicker crashes app HOT 3
- Point of Sale will not even Compile... HOT 4
- WEATHER APP DOES NOT RUN!! HOT 2
- Update quest.config
- Share.RequestAsync() doesn't work on .Net MAUI HOT 1
- Update OIDC keys for the OSPO API
- All of the CollectionView samples need to be updated so the CV is inside a Grid not a StackLayout
- MAUI and OpenXR HOT 1
- ISSUE on Windows for any official .NET MAUI examples in the repo that uses TableView
- Update native embedding sample
- Application name in the Localization Sample does not work on iOS platform. HOT 2
- Command bindings are not re-established when navigating back and forth in UIInterface samples HOT 3
- CollectionView ScrollTo not working HOT 1
- Push notifications sample HOT 1
- PlatformIntegrationDemo WebAuthenticator problems on emulator?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maui-samples.