Closed msdx closed 7 years ago
@msdx 能够提供一个可以复现的 sample 工程吗?
抱歉无法提供,因为是在公司项目中出现的。
@msdx 报 NotFound 的这几个是哪个 support 库的?
avd_show_password_3
来自于meterial design support library中的输入框的那个隐藏或显示密码的眼睛。
@lomanyong 今天在修改另一个界面时也出现了这个问题。 两个出现此问题的界面的共性:
@msdx 不能提供一个只含有这个 support 库,并且有 avd_show_password 这类图片调用的 sample 吗?我这里找不到这些图片...没办法复现你的问题...
或者你只提供代码也可以,只要我这里能够复现出来...包括使用的是哪个版本的 support 库,以及你的 freeline 的版本。
现在赶着项目,这样吧,在后面有空下来的时间我自己写个demo看能不能复现出来,如果可以,再请教你。
今天在改一个没有表单的布局时也报了这个问题,这下我也不知道出现此问题的共性是什么了。。。
@msdx 额,只要能够提供一个可以复现的 demo 工程就能够找到解决的办法...
是啊。但是目前出现此问题的是公司的项目。而我又找不到出现此问题的共性,想尝试写个可能复现此问题的demo都不知道从何入手。
@msdx 使用包含avd_show_password
这个图片的库无法复现吗?
我现在的项目中都不是每次修改就会出现。就只有一些界面修改会出现,但没发现有什么共同点。
@msdx 是否含有 vector 图片?
在design库里有avd_hide_password及avd_show_password,但是我搜了一下avd_hide_password_1却只有如下结果:
$ find . -name "*.xml" |xargs grep "avd_hide_password_1" --color=auto
./app/build/freeline/public_keeper.xml: <public type="drawable" name="avd_hide_password_1" id="0x7f020109" />
./app/build/freeline/app/backup/res/values/freeline_id_keeper_public.xml: <public type="drawable" name="avd_hide_password_1" id="0x7f020109" />
@msdx 是哪个 design 库?我依赖了com.android.support:design:24.2.0
没有看到这张图片。
不过基本可以猜测原因是 vector 图片导致的了。
你现在使用的是哪个版本的 freeline?
design25.1.0
现在用的是0.8.3,之前用0.8.2也同样出过这个问题。 avd_hide_password在design中的drawable-v21里。
@msdx avd_hide_password 是私有资源,确实没有avd_hide_password_1
这样的资源。
但是有相关的定义在:build/intermediates/exploded-aar/com.android.support/design/25.1.0/R.txt
int drawable avd_hide_password 0x7f020053
int drawable avd_hide_password_1 0x7f020068
int drawable avd_hide_password_2 0x7f020069
int drawable avd_hide_password_3 0x7f02006a
int drawable avd_show_password 0x7f020054
int drawable avd_show_password_1 0x7f02006b
int drawable avd_show_password_2 0x7f02006c
int drawable avd_show_password_3 0x7f02006d
~问题出在这里,理论上应该是不能直接引用私有资源的~
drawable/avd_hide_password
跟drawable/avd_show_password
两个是animated-vector
...导致了这个问题...已经复现了。
@msdx 这个问题转移到 #539 讨论吧,将在那里同步问题的解决情况。
日志如下:
版本如下:
一开始正常。后来在重构某个界面的布局之后,就发现每次增量都报这个错误。全量能通过。