gpt4 book ai didi

titanium-mobile - libpng 警告 : iCCP: Not recognizing known sRGB profile that has been edited

转载 作者:行者123 更新时间:2023-12-04 01:00:10 24 4
gpt4 key购买 nike

我正在尝试更改 Titanium android 应用程序中 TextField 中光标的颜色。
为此,我创建了 platform/android/res/values/文件夹。

我将以下代码放在 tiapp.xml 中:

<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<application android:theme="@style/Theme.Titanium">
</application>
<uses-sdk android:minSdkVersion="22" android:targetSdkVersion="22"/>
</manifest>
</android>

当我尝试运行该应用程序时,出现以下错误。
我正在研究 3.4.1。 API 级别仅为 22。
[ERROR] :  Failed to package application:
[ERROR] :
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-mdpi/abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-hdpi/abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-xhdpi/abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-hdpi/abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-xhdpi/abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-mdpi/abc_ic_clear_disabled.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-hdpi/abc_ic_clear_disabled.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-xhdpi/abc_ic_clear_disabled.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-xxhdpi/abc_ic_clear_disabled.png: libpng warning: iCCP: profile 'icc': 'GRAY': Gray color space not permitted on RGB PNG
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-hdpi/abc_ic_clear_normal.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-xxhdpi/abc_ic_clear_normal.png: libpng warning: iCCP: profile 'icc': 'GRAY': Gray color space not permitted on RGB PNG
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-mdpi/abc_ic_go.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-hdpi/abc_ic_go.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-xhdpi/abc_ic_go.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-xxhdpi/abc_ic_go.png: libpng warning: iCCP: profile 'icc': 'GRAY': Gray color space not permitted on RGB PNG
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-mdpi/abc_ic_search.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-hdpi/abc_ic_search.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-xhdpi/abc_ic_search.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-xxhdpi/abc_ic_search.png: libpng warning: iCCP: profile 'icc': 'GRAY': Gray color space not permitted on RGB PNG
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-mdpi/abc_ic_voice_search.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-hdpi/abc_ic_voice_search.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-xhdpi/abc_ic_voice_search.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[ERROR] : /var/folders/7f/5k6k5fvn2fdc5bgtv3hjmgnh0000gn/T/11558-48051-1806d86/res/drawable-xxhdpi/abc_ic_voice_search.png: libpng warning: iCCP: profile 'icc': 'GRAY': Gray color space not permitted on RGB PNG
[ERROR] : /Users/murali/Documents/Titanium_Studio_Workspace/textboxapp/build/android/res/values/styles.xml:3: error: A 'type' attribute is required for <item>
[ERROR] Application Installer abnormal process termination. Process exit value was 1.

最佳答案

正如警告所说,您有一堆带有无效颜色配置文件的 PNG 文件。 Libpng16 发出有关它们的警告。您的应用程序将警告视为错误。

要解决此问题,您可以执行以下一项或多项操作:

  • 使用 PNG 编辑器从列出的 PNG 文件中删除 iCCP 块
    在错误报告中,例如,使用 ImageMagick 的“convert -define
    png:exclude-chunk=iCCP,zCCP"
  • 使用 PNG 编辑器删除所有辅助块,例如, convert -strip
  • 将您的 libpng 降级到 1.5.x 版(当前为 libpng-1.5.23)
  • 使用“-DPNG_sRGB_PROFILE_CHECKS=-1”重新安装 libpng-1.6.x(当前为 libpng-1.6.17)
  • 找出是否有办法让您的应用程序将警告视为警告,而不是错误,然后这样做。
  • 关于titanium-mobile - libpng 警告 : iCCP: Not recognizing known sRGB profile that has been edited,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30709056/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com