AndResGuard icon indicating copy to clipboard operation
AndResGuard copied to clipboard

constraintlayout Flow 混淆后失效

Open yelaaaaaaaaa opened this issue 4 years ago • 1 comments

资源混淆打包后 <androidx.constraintlayout.helper.widget.Flow> 布局失效

yelaaaaaaaaa avatar Dec 23 '20 08:12 yelaaaaaaaaa

app:constraint_referenced_ids里直接写的是id的字符串,初始化后会通过getIdentifier来反射查找叫该名字的id。所以要么不要混淆app:constraint_referenced_ids里的id,要么通过代码setReferencedIds来设置id。

nullptrx avatar Jan 28 '21 06:01 nullptrx