Closed lomanyong closed 6 years ago
已 fix,有需要的可以先按上面所述方式进行优先体验。
win上面是不是还没有修复,我看mac可以解决,但是win上面还是不行的
@r17171709 win上还是提示同样的错误日志?你可以执行一下freeline/release-tools/FreelineAapt.exe v
看下版本信息吗?
@lomanyong
win 0.8.6版本还是会出现这个问题:
xxx\build\freeline\assemble\backup\res\values\freeline_id_keeper_public.xml:2715: error: Public symbol drawable/avd_hide_password_1 declared here is not defined. xxx\build\freeline\assemble\backup\res\values\freeline_id_keeper_public.xml:2717: error: Public symbol drawable/avd_hide_password_2 declared here is not defined. xxx\build\freeline\assemble\backup\res\values\freeline_id_keeper_public.xml:2719: error: Public symbol drawable/avd_hide_password_3 declared here is not defined. xxx\build\freeline\assemble\backup\res\values\freeline_id_keeper_public.xml:2721: error: Public symbol drawable/avd_show_password_1 declared here is not defined. xxx\build\freeline\assemble\backup\res\values\freeline_id_keeper_public.xml:2723: error: Public symbol drawable/avd_show_password_2 declared here is not defined. xxx\build\freeline\assemble\backup\res\values\freeline_id_keeper_public.xml:2725: error: Public symbol drawable/avd_show_password_3 declared here is not defined.
我用的windows,都不敢加design包,一直在静候佳音
@javaczhang @ch331917692 抱歉...windows因为aapt出问题,暂时未部署,目前解决的是linux/mac版本的问题。
@javaczhang design包可以暂时用低版本的,如果高版本需求不大的话...
win下有什么办法可以绕开这个兼容性的问题.继续使用吗
@bq1122 暂时降低design包的版本,如果没有特殊需求的话
经过大半天的查找(和脑洞?), 终于找到一个Win上可以跳过这个问题, 实现resource的方法.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<drawable name="avd_show_password_1">#ffffffff</drawable>
<drawable name="avd_show_password_2">#ffffffff</drawable>
<drawable name="avd_show_password_3">#ffffffff</drawable>
<drawable name="avd_hide_password_1">#ffffffff</drawable>
<drawable name="avd_hide_password_2">#ffffffff</drawable>
<drawable name="avd_hide_password_3">#ffffffff</drawable>
</resources>
python freeline.py -f
python freeline.py
可能存在问题: 第一次执行时发现除了了图片资源的错位(要显示的A.png, 打增量包后界面上显示B.png(不是自己修改的). 发现可能是改了freeline_core文件下面相关的脚本. 删除freeline和freeline_core文件夹后重新执行 gradlew initFreeline 后问题解决
@lomanyong design包的版本最高支持多少?
这个问题有计划解决吗?
+1windows出现了
+1windows出现了 0.8.7上也是出现这个问题
windows下的freeline0.8.8版还是会报这个错,要绕过这个问题,design.support要降到多少
现象
典型的现象,使用了
compile 'com.android.support:design:25.1.0'
,全量编译后,增量编译资源时出现错误提示:原因
经过查阅 aapt 源码会发现出错的原因:
animated-vector 是一个混合的资源 bundle,会在 aapt 编译的处理期间被抽离分解,生成类似 bundle_1.xml、bundle_2.xml 的资源,且 id 会加入 resource table 中,但是没有实际的生成产物出来,导致在增量编译的时候如果没有将 animated-vector 资源加入编译的话,就会出现上面所说的编译出错日志。
这个并不是配置资源路径的问题,是一个特殊 case,已经解决。
解决方案
升级 gradle 插件版本:
更新 Freeline:
重新编译即可解决。
目前,Windows 暂时还未解决。
遇见类似问题的相关 issue:#503 与 #507