No resource identifier found for attribute '…' in package 'com.app…'

后端 未结 7 981
梦谈多话
梦谈多话 2020-11-29 20:10

I\'ve imported a project from Eclipse to Android studio. It utilizes a custom view:

xmlns:app="http://schemas.android.com/apk/res-auto"
7条回答
  •  失恋的感觉
    2020-11-29 20:28

    This also happened to me when a PercentageRelativeLayout https://developer.android.com/reference/android/support/percent/PercentRelativeLayout.html was used and the build was targeting Android 0 = 26. PercentageRelativeLayout layout is obsolete starting from Android O and obviously sometime was changed in the resource generation. Replacing the layout with a ConstraintLayout or just a RelativeLayout solved it.

提交回复
热议问题