Bug 59764 - error APT0000: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited with Android SDK Build Tools 23.0.2
Summary: error APT0000: libpng warning: iCCP: Not recognizing known sRGB profile that ...
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 8.0 (15.4)
Hardware: PC Windows
: --- normal
Target Milestone: 15.5
Assignee: dean.ellis
URL:
Depends on:
Blocks:
 
Reported: 2017-09-26 17:08 UTC by Kyle White
Modified: 2018-03-16 20:59 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: Yes
Last known good build: 7.4.3.1

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Kyle White 2017-09-26 17:08:40 UTC
The sample https://github.com/Azure-Samples/MyDriving fails to build with the following error..

>2017-09-26T16:06:54.0244450Z "/Users/xamarinqa/agent/_work/17/s/src/MobileApps/MyDriving/MyDriving.Android/MyDriving.Android.csproj" >(Clean;SignAndroidPackage target) (1) ->
>2017-09-26T16:06:54.0260160Z (_UpdateAndroidResgen target) -> 
>2017-09-26T16:06:54.0277030Z   Resources/drawable-nodpi/background_started.png : error APT0000: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited [/Users/xamarinqa/agent/_work/17/s/src/MobileApps/MyDriving/MyDriving.Android/MyDriving.Android.csproj]
>2017-09-26T16:06:54.0293840Z   Resources/drawable-nodpi/screen_1.png : error APT0000: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited [/Users/xamarinqa/agent/_work/17/s/src/MobileApps/MyDriving/MyDriving.Android/MyDriving.Android.csproj]
>2017-09-26T16:06:54.0310510Z   Resources/drawable-nodpi/screen_2.png : error APT0000: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited [/Users/xamarinqa/agent/_work/17/s/src/MobileApps/MyDriving/MyDriving.Android/MyDriving.Android.csproj]
>2017-09-26T16:06:54.0327180Z   Resources/drawable-nodpi/screen_3.png : error APT0000: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited [/Users/xamarinqa/agent/_work/17/s/src/MobileApps/MyDriving/MyDriving.Android/MyDriving.Android.csproj]
>2017-09-26T16:06:54.0344060Z   Resources/drawable-nodpi/screen_4.png : error APT0000: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited [/Users/xamarinqa/agent/_work/17/s/src/MobileApps/MyDriving/MyDriving.Android/MyDriving.Android.csproj]

..when using 15.4 XA (8.0.0.27) with Android SDK Build-Tools 23.0.2. With the same build tools and stable XA (7.4.3.1) the sample builds successfully. 

Diagnostic build output can be found here: https://gist.github.com/kdubau/1c5e6c3b773d06f588c1e47493b0418d

After updating the machine to Android SDK Build-Tools 25.0.3 the sample again builds successfully. So it looks like 15.4 XA has regressed some compatibility with Build-Tools 23.0.2

Steps to repro:
1) Clone sample
2) Make sure you only have Build-Tools 23
3) `nuget restore src/MobileApps/MyDriving.sln`
4) `msbuild src/MobileApps/MyDriving/MyDriving.Android/MyDriving.Android.csproj /v:diag /t:SignAndroidPackage`
Comment 1 dean.ellis 2017-09-27 12:57:17 UTC
PR is up https://github.com/xamarin/xamarin-android/pull/900
Comment 3 dean.ellis 2017-09-27 19:08:13 UTC
Fixed in Xamarin-android/master/67ab27d9