Thandol:
ここでAndroidの初心者。
私が構築し、ARアプリ、今私はユーザーインターフェースを追加することを計画していています。私は、制約レイアウトをするために追加しようとしていますapp:layout_constraintBottom_toBottomOf="parent"
、しかしImはエラーを取得して、この制約が見つからなかったこと
これらは私のコードとエラーメッセージのとおりです。
例えば、「アプリ」で始まる、私は私のactivity_ux.xmlファイルに追加したコードのすべての行app:layout_constraintBottom_toTopOf
の作業にいないようですが、私はちょうどそれが簡単だと思いデバッグに作るためにそれらの一つで、ここであなたの一例を示しました。
私は解決策の一つは、私は私のSDKツールの「Android用ConstraintLayout」と「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>
私は(このような)ビルトイン機能が動作しない場合は、私が探し始めることができる場所私は知らない、ただの仕事にこれを期待しました。
Thandol:
提案のみんなに感謝します。私は、この行を追加することで、エラーに対処するために管理しています
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
私にbuild.gradle(module.app)
下dependencies
ここでも、すべてのものに感謝を