Thursday, June 11, 2020

constraintlayout 사용 안 하는데 No package ID ff found for ID 0xffffffff 나올 경우 해결

로그에 No package ID ff found for ID 0xffffffff 나올 경우 해결.

대부분 constraintlayout 버전을 올리라는 얘기밖에 없다

build.gradle 
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta3'

그런데 나는 constraintlayout을 사용 안 하는데?
찾아보니 이부분에서 나타난 문제였다
TypedArray ta = context.obtainStyledAttributes(-1, R.styleable.themeTextcolor);

-1 부분을 null로 바꾸면 에러 로그가 생기지 않는다.

TypedArray ta = context.obtainStyledAttributes(null, R.styleable.themeTextcolor);

No comments:

Post a Comment