使用模擬器
都沒問題
但是要打包成apk出現錯誤
Execution failed for task ':app:lintVitalRelease'.
> Lint found fatal errors while assembling a release target.
Error: @+id/txtLocation is not a sibling in the same RelativeLayout
[NotSibling]
android:layout_below="@+id/txtLocation"
Explanation for issues of type "NotSibling":
Layout constraints in a given ConstraintLayout or RelativeLayout should
reference other views within the same relative layout (but not itself!)
這個是說這行XML code是錯誤的
刪掉就行了嗎?
我覺得奇怪的是
使用模擬器測試時,都沒報錯
打包成apk就是一直不過