Open mjbedford2017 opened 3 years ago
I set the output verbosity to diagnostic and collected this. The AOT is going fine the whole time, notice the one before worked just fine but then it gets to this one and fails to AOT. Here is the detailed log:
[AOT] response file obj\Release\90\aot\arm64-v8a\Xamarin.Google.AutoValue.Annotations.dll\response.txt: --llvm "--aot=outfile=obj\Release\90\aot\arm64-v8a\libaot-Xamarin.Google.AutoValue.Annotations.dll.so,asmwriter,mtriple=aarch64-linux-android,tool-prefix=C:\Program Files (x86)\Android\android-sdk
dk-bundle\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\bin\aarch64-linux-android-,llvm-path=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android,temp-path=obj\Release\90\aot\arm64-v8a\Xamarin.Google.AutoValue.Annotations.dll,ld-name=ld.exe,ld-flags=\"C:\Program Files (x86)\Android\android-sdk
dk-bundle\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\lib\gcc\aarch64-linux-android\4.9.x\libgcc.a\";\"C:\Program Files (x86)\Android\android-sdk
dk-bundle\platforms\android-21\arch-arm64\usr\lib\libc.so\";\"C:\Program Files (x86)\Android\android-sdk
dk-bundle\platforms\android-21\arch-arm64\usr\lib\libm.so\"" C:\OdenRepo\Applications\OdenIndustries.PacTracMobile-RecipientSearch\PacTracMobile.Droid\obj\Release\90\android\assets\shrunk\Xamarin.Google.AutoValue.Annotations.dll
[AOT] response file obj\Release\90\aot\arm64-v8a\Xamarin.GooglePlayServices.Base.dll\response.txt: --llvm "--aot=outfile=obj\Release\90\aot\arm64-v8a\libaot-Xamarin.GooglePlayServices.Base.dll.so,asmwriter,mtriple=aarch64-linux-android,tool-prefix=C:\Program Files (x86)\Android\android-sdk
dk-bundle\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\bin\aarch64-linux-android-,llvm-path=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android,temp-path=obj\Release\90\aot\arm64-v8a\Xamarin.GooglePlayServices.Base.dll,ld-name=ld.exe,ld-flags=\"C:\Program Files (x86)\Android\android-sdk
dk-bundle\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\lib\gcc\aarch64-linux-android\4.9.x\libgcc.a\";\"C:\Program Files (x86)\Android\android-sdk
dk-bundle\platforms\android-21\arch-arm64\usr\lib\libc.so\";\"C:\Program Files (x86)\Android\android-sdk
dk-bundle\platforms\android-21\arch-arm64\usr\lib\libm.so\"" C:\OdenRepo\Applications\OdenIndustries.PacTracMobile-RecipientSearch\PacTracMobile.Droid\obj\Release\90\android\assets\shrunk\Xamarin.GooglePlayServices.Base.dll
XA3001: Could not AOT the assembly: Xamarin.GooglePlayServices.Vision.dll
Done executing task "Aot" -- FAILED.
Done building target "_BuildApkEmbed" in project "PacTracMobile.Droid.csproj" -- FAILED.
Done building project "PacTracMobile.Droid.csproj" -- FAILED.
Build FAILED.
Xamarin.Android Version (eg: 6.0):
Xamarin.Android 11.3.0.4
Operating System & Version (eg: Mac OSX 10.11):
WIndows 10 Pro Visual Studio 2019 Version 16.10.2
Google Play Services Version
71.1700.4
[] GPS-FB with AndroidX dependencies (versions
1xx.yyyy.zz
)No AndroidX dependencies. Building for support and against Android 9. Have not moved to 10 yet.
[] GPS-FB with Android.Support (legacy) dependencies (versions
71.yyyy.zz
)Android Support packages are all 28.0.0.3
Describe your Issue
When I say suddenly started getting this error it is because between the last time I was able to archive successfully, just a few days ago and today, I did not change any code, packages, etc... I can do a clean and rebuild successfully for both debug and release and even debug the app on my device. It isn't until I go to archive the app to package it for apk that I get the following error:
XA3001: Could not AOT the assembly: Xamarin.GooglePlayServices.Vision.dll Done building project "PacTracMobile.Droid.csproj" -- FAILED. Build FAILED
Yes, I do have AOT compilation turned on but I have had that turned on for over a year now and have not changed any of my csproj settings in a while. So, I am not sure why this started happening.
Things I have tried:
Relevant information
Add relevant project settings from
*.csproj
file:Packages used:
Build settings (tools)
Dex is set to D8
or even better - links to the existing code:
https://github.com/xamarin/AndroidX/blob/master/samples/BuildAll/BuildAll/BuildAll.csproj#L41-L44
https://github.com/xamarin/AndroidX/blob/master/samples/BuildXamarinFormsApp/BuildXamarinFormsApp/BuildXamarinFormsApp.Android/BuildXamarinFormsApp.Android.csproj#L57-L58
NOTE: Please DO NOT submit screenshot images. Images are not searchable!
Minimal Repro Code Sample
If you want to speed up investigation and bug fixing: please provide minimal repro sample for tests.
Steps to Reproduce (with link to sample solution if possible):
Include any relevant Exception Stack traces, build logs, adb logs: