亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何修復此>屬性應用程序:constraintBottom_toBottomOf未找到

如何修復此>屬性應用程序:constraintBottom_toBottomOf未找到

慕容森 2022-09-07 21:53:20
安卓新手在這里。我正在構建和AR應用程序,現在我計劃添加一個用戶界面。我正在嘗試添加約束布局,但是我得到錯誤,即找不到此約束app:layout_constraintBottom_toBottomOf="parent"這些是我的代碼和錯誤消息:我在activity_ux.xml文件中添加的所有代碼行都以“app”開頭,例如 似乎不起作用,我只是在這里向您展示了一個示例,其中一個只是為了使其更易于調試。app:layout_constraintBottom_toTopOf我嘗試在線搜索,其中一個解決方案是我應該在我的SDK工具中安裝“ConstraintLayout for Android”和“Solver for ConstraintLayout”,但我已經安裝了這個。    <FrameLayout           xmlns:android="http://schemas.android.com/apk/res/android"          xmlns:tools="http://schemas.android.com/tools"          android:layout_width="match_parent"          android:layout_height="match_parent"          xmlns:app="http://schemas.android.com/apk/res-auto"          tools:context="com.google.ar.sceneform.Overlei.Overlei">    <fragment android:name="com.google.ar.sceneform.ux.ArFragment"          android:id="@+id/ux_fragment"          android:layout_width="match_parent"          android:layout_height="match_parent" />    <LinearLayout          android:id="@+id/gallery_layout"          android:layout_width="match_parent"          android:layout_height="wrap_content"          android:orientation="horizontal"          app:layout_constraintBottom_toBottomOf="parent"  >   </LinearLayout>   </FrameLayout>我期望這只是工作,我不知道如果內置函數(例如這個)不起作用,我可以從哪里開始尋找。
查看完整描述

3 回答

?
達令說

TA貢獻1821條經驗 獲得超6個贊

謝謝你的建議伙計們。我已經設法通過添加此行來處理錯誤

implementation 'com.android.support.constraint:constraint-layout:1.1.3'

進入我的下build.gradle(module.app)dependencies

再次,謝謝你的一切


查看完整回答
反對 回復 2022-09-07
?
梵蒂岡之花

TA貢獻1900條經驗 獲得超5個贊

應僅在 中使用。您可以嘗試在線性布局中使用內部。app:layout_constraintBottom_toBottomOfConstraintLayoutFrameLayoutandroid:gravity = "bottom"



查看完整回答
反對 回復 2022-09-07
?
慕桂英4014372

TA貢獻1871條經驗 獲得超13個贊

將框架布局包裝在約束布局中或將框架布局更改為約束布局


查看完整回答
反對 回復 2022-09-07
  • 3 回答
  • 0 關注
  • 176 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號