先把报错位置贴出来
Accidental override: The following declarations have the same JVM signature (getMatrix()Landroid/graphics/Matrix;):
这里的报错原因是因为kotlin默认给成员变量设置了get/set方法,这样导致了和类原本的getMatrix()方法出现重名,解决方法也很简单,就是修改成员变量名称(matrix -> mMatrix)。
先把报错位置贴出来
Accidental override: The following declarations have the same JVM signature (getMatrix()Landroid/graphics/Matrix;):
这里的报错原因是因为kotlin默认给成员变量设置了get/set方法,这样导致了和类原本的getMatrix()方法出现重名,解决方法也很简单,就是修改成员变量名称(matrix -> mMatrix)。