How do you build Xamarin.Forms.CarouselView?

Hello All,

I am really keen to contribute to the Xamarin.Forms.CarouselView project (https://github.com/xamarin/Xamarin.Forms.CarouselView) but I am having some trouble.

I am on the master branch and having difficulty building it. I have been following these instructions: https://github.com/xamarin/Xamarin.Forms.CarouselView/blob/master/readme.md

I am able to open env.lnk and then open the solution. But when I try Step 7 in "Building for Release", I get errors and warnings and it fails to build the nuget package. It is able to successfully do the Restore step when I build though. I have tried both rbuild and build. I also don't change anything in the solution and have tried with a fresh clone.

These are some of my errors:
1. AAPT : error : unable to open '..............\bin\tmp\debug\carouselView\dev\lib\platform\monoAndroid\portable\obj__library_projects__\FormsViewGroup\library_project_imports\formsviewgroup.jar' as a zip file: -2 [C:\Users[USER NAME]\work\Xamarin.Forms.CarouselView\txt\src\carouselView\dev\lib\platform\monoAndroid\CarouselView.Android.csproj] [C:\Users[USER NAME]\work\Xamarin.Forms.CarouselView\txt\src.csproj]
2. AAPT : error : unable to process jar files while packaging 'C:\Users[USER NAME]\AppData\Local\Temp\bykmmv5h.cfz\resources.apk.bk' [C:\Users[USER NAME]\work\Xamarin.Forms.CarouselView\txt\src\carouselView\dev\lib\platform\monoAndroid\CarouselView.Android.csproj] [C:\Users[USER NAME]\work\Xamarin.Forms.CarouselView\txt\src.csproj]
3. AAPT : error : packaging of 'C:\Users[USER NAME]\AppData\Local\Temp\bykmmv5h.cfz\resources.apk.bk' failed [C:\Users[USER NAME]\work\Xamarin.Forms.CarouselView\txt\src\carouselView\dev\lib\platform\monoAndroid\CarouselView.Android.csproj] [C:\Users[USER NAME]\work\Xamarin.Forms.CarouselView\txt\src.csproj]
4. C:\Users[USER NAME]\work\Xamarin.Forms.CarouselView\txt\src\carouselView\dev\lib\platform\uap\CarouselView.UWP.csproj : XamlCompiler error WMC1006: Cannot resolve Assembly or Windows Metadata file 'Windows.Foundation.UniversalApiContract.winmd' [C:\Users[USER NAME]\work\Xamarin.Forms.CarouselView\txt\src.csproj]
5. C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.Common.targets(264,5): Xaml Internal Error error WMC9999: Type universe cannot resolve assembly: Windows.Foundation.UniversalApiContract, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime. [C:\Users[USER NAME]\work\Xamarin.Forms.CarouselView\txt\src\carouselView\dev\lib\platform\uap\CarouselView.UWP.csproj] [C:\Users[USER NAME]\work\Xamarin.Forms.CarouselView\txt\src.csproj]

Has anybody experienced this or anything similar before? Please can someone help me understand how to build?
Please also let me know if you need more information.

On another note, what are the reasons for having the CarouselView control as a separate project and not in the main Xamarin.Forms? Is there a plan to eventually add it to the main Xamarin.Forms?

Answers

  • SickSick USMember

    same here, didnt find any solution, bump for interest

    AAPT : error : unable to open '..\..\..\..\..\..\..\bin\tmp\release\carouselView\dev\lib\platform\monoAndroid\portable\obj\__library_projects__\FormsViewGroup\library_project_imports\formsviewgroup.jar' as a zip file: - 2 [C:\Xamarin.Forms.CarouselView\txt\src\carouselView\dev\lib\platform\monoAndroid\CarouselView.Android.csproj] AAPT : error : unable to process jar files while packaging 'C:\Users\sick\AppData\Local\Temp\fbca1tes.qjs\resources.apk.bk' [C:\Xamarin.Forms.CarouselView\txt\src\carouselView\dev\lib\platform\monoAndroid\C arouselView.Android.csproj] AAPT : error : packaging of 'C:\Users\sick\AppData\Local\Temp\fbca1tes.qjs\resources.apk.bk' failed [C:\Xamarin.Forms.CarouselView\txt\src\carouselView\dev\lib\platform\monoAndroid\CarouselView.Android.cspr oj]

Sign In or Register to comment.