forked from dotnet/android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into native-profiling-and-debugging
* main: (94 commits) [ci] Remove remaining Classic test jobs. (dotnet#7924) Add Nightly Tests for Humanizer [readme] Add aka.ms links for d17.5. (dotnet#7935) [tests] Remove `net472` multitargeting (dotnet#7932) [monodroid] Fix `ld` build error on Nightly Builds. (dotnet#7925) Bump to xamarin/Java.Interop/main@0355acf (dotnet#7931) [tests] Use msftconnecttest.com in QuoteInvalidQuoteUrlsShouldWork (dotnet#7919) [ci] Don't set demands for megapipeline (dotnet#7929) [Mono.Android] Bind API-UpsideDownCake Developer Preview 1 (dotnet#7796) Bump to dotnet/installer@d109cba3ff 8.0.100-preview.4.23176.5 (dotnet#7921) [Xamarin.Android.Build.Tasks] Fix Android Version Code for Release builds (dotnet#7795) Bump to dotnet/installer@27d6769dfb 8.0.100-preview.4.23172.16 (dotnet#7910) [Xamarin.Android.Build.Tasks] Fix native code generation when marshal methods are disabled (dotnet#7899) [ci] Optimize 'APK's .NET' test job overhead. (dotnet#7904) [Mono.Android] delay JNINativeWrapper.get_runtime_types() (dotnet#7913) Bump external/Java.Interop from `73ebad2` to `53bfb4a` (dotnet#7914) [build] remove .NET 6 support (dotnet#7900) [profiled-aot] update `dotnet.aotprofile` for .NET 8 (dotnet#7908) [tests] Add backup ssl sites in case of 429 response. (dotnet#7909) $(AndroidPackVersionSuffix)=preview.4; net8 is 34.0.0-preview.4 (dotnet#7912) ...
- Loading branch information
Showing
261 changed files
with
42,493 additions
and
7,855 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
xamarin/monodroid:main@50faac94c6a0c27864564829ac83f3988c82f8ef | ||
xamarin/monodroid:main@602aca98245744882a129206b79b5a5e093dae44 | ||
mono/mono:2020-02@6dd9def57ce969ca04a0ecd9ef72c0a8f069112d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
queries: | ||
- exclude: cs/campaign/constantine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
title: Xamarin.Android error APT2264 | ||
description: APT2264 error code | ||
ms.date: 12/16/2022 | ||
--- | ||
# Xamarin.Android error APT2264 | ||
|
||
## Issue | ||
|
||
The tool `aapt2` is unable to resolve one of the files it was passed. | ||
This is generally caused by the path being longer than the Maximum Path | ||
length allowed on windows. | ||
|
||
## Solution | ||
|
||
The best way to avoid this is to ensure that your project is not located | ||
deep in the folder structure. For example if you create all of your | ||
projects in folders such as | ||
|
||
`C:\Users\shelly\Visual Studio\Android\MyProjects\Com.SomeReallyLongCompanyName.MyBrillantApplication\MyBrilliantApplicaiton.Android\` | ||
|
||
you may well encounter problems with not only `aapt2` but also Ahead of Time | ||
compilation. Keeping your project names and folder structures short and | ||
concise will help work around these issues. For example instead of the above | ||
you could use | ||
|
||
`C:\Work\Android\MyBrilliantApp` | ||
|
||
Which is much shorter and much less likely to encounter path issues. | ||
|
||
However this is no always possible. Sometimes a project or a environment requires | ||
deep folder structures. In this case enabling long path support in Windows *might* | ||
be enough to get your project working. Details on how to do this can be found | ||
[here](https://learn.microsoft.com/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#enable-long-paths-in-windows-10-version-1607-and-later). | ||
|
||
|
||
If long path support does not work changing the location of the | ||
`$(BaseIntermediateOutputPath)` can help solve these problems. In order for this | ||
to work the setting MUST be changed before ANY build or restore occurs. To do this | ||
you can make use of the MSBuild `Directory.Build.props` support. | ||
|
||
Creating a `Directory.Build.props` file in your solution or project directory which | ||
redefines the `$(BaseIntermediateOutputPath)` to somewhere nearer the root of the drive | ||
with solve these issues. Adding a file with the following contents will create the `obj` | ||
directory in a different location of your choosing. | ||
|
||
``` | ||
<Project> | ||
<PropertyGroup> | ||
<BaseIntermediateOutputPath Condition=" '$(OS)' == 'Windows_NT' ">C:\Intermediate\$(ProjectName)</BaseIntermediateOutputPath> | ||
<BaseIntermediateOutputPath Condition=" '$(OS)' != 'Windows_NT' ">/tmp/Intermediate/$(ProjectName)</BaseIntermediateOutputPath> | ||
</PropertyGroup> | ||
</Project | ||
``` | ||
|
||
Using this technique will reduce the lengths of the paths sent to the various tools like `aapt2`. | ||
Note this is generally only a Windows issue. So there is no need to override the `$(BaseIntermediateOutputPath)` | ||
on Mac or Linux based environments. However you might want to override everywhere to be consistent. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: Xamarin.Android warning XA1035 | ||
description: XA1034 warning code | ||
ms.date: 13/12/2022 | ||
--- | ||
# Xamarin.Android warning XA1035 | ||
|
||
## Example messages | ||
|
||
``` | ||
The 'BundleAssemblies' property is deprecated and it has no effect on the application build. Equivalent functionality is implemented by the 'AndroidUseAssemblyStore' and 'AndroidEnableAssemblyCompression' properties. | ||
``` | ||
|
||
## Solution | ||
|
||
Edit your csproj directly and remove the 'BundleAssemblies' property. | ||
`AndroidUseAssemblyStore` and `AndroidEnableAssemblyCompression` are | ||
both enabled by default and, together, they implement behavior | ||
equivalent to that of `BundleAssemblies`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.