看板 AndroidDev 關於我們 聯絡資訊
使用模擬器 都沒問題 但是要打包成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就是一直不過 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.241.176.116 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/AndroidDev/M.1616596250.A.643.html
evo1994: lint的問題 簡單解就是在gradle 設定 LintOption abort 03/27 09:04
evo1994: 掉error 03/27 09:04
aids61517: 與其關掉lint,不如去修正這個問題,這個滿好修的 03/27 13:08
siriusu: txtLocation 不在同一層的意思 03/31 02:45
kobe8112: 不太明白這個錯誤描述都這麼清楚了,硬是不嘗試照錯誤 03/31 08:57
kobe8112: 說明調整,反而想說整個刪掉,這思維方式很妙... 03/31 08:57
zcbxvsdf: 一樓的解,是解僱的解:D 04/04 21:27