質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Google API

Googleは多種多様なAPIを提供していて、その多くはウェブ開発者向けのAPIです。それらのAPIは消費者に人気なGoogleのサービス(Google Maps, Google Earth, AdSense, Adwords, Google Apps,YouTube等)に基づいています。

Java

Javaは、1995年にサン・マイクロシステムズが開発したプログラミング言語です。表記法はC言語に似ていますが、既存のプログラミング言語の短所を踏まえていちから設計されており、最初からオブジェクト指向性を備えてデザインされています。セキュリティ面が強力であることや、ネットワーク環境での利用に向いていることが特徴です。Javaで作られたソフトウェアは基本的にいかなるプラットフォームでも作動します。

Android Studio

Android Studioは、 Google社によって開発された、 Androidのネイティブアプリケーション開発に特化した統合開発ツールです。

API

APIはApplication Programming Interfaceの略です。APIはプログラムにリクエストされるサービスがどのように動作するかを、デベロッパーが定めたものです。

Q&A

0回答

2370閲覧

com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed

ninzinman

総合スコア33

Google API

Googleは多種多様なAPIを提供していて、その多くはウェブ開発者向けのAPIです。それらのAPIは消費者に人気なGoogleのサービス(Google Maps, Google Earth, AdSense, Adwords, Google Apps,YouTube等)に基づいています。

Java

Javaは、1995年にサン・マイクロシステムズが開発したプログラミング言語です。表記法はC言語に似ていますが、既存のプログラミング言語の短所を踏まえていちから設計されており、最初からオブジェクト指向性を備えてデザインされています。セキュリティ面が強力であることや、ネットワーク環境での利用に向いていることが特徴です。Javaで作られたソフトウェアは基本的にいかなるプラットフォームでも作動します。

Android Studio

Android Studioは、 Google社によって開発された、 Androidのネイティブアプリケーション開発に特化した統合開発ツールです。

API

APIはApplication Programming Interfaceの略です。APIはプログラムにリクエストされるサービスがどのように動作するかを、デベロッパーが定めたものです。

0グッド

0クリップ

投稿2019/10/07 10:58

編集2019/10/07 11:28

#概要
Cloud VisionAPIをAndroidstudioで使用するためにソースプログラムを実装したのですが
その後エラーが多発するうちに、難儀なエラーに出くわしてしましました。
もう僕自身、タイトルの通りお手上げです。
知識者の方々、やるべきことを示してくださったらありがたいです。
##エラー文
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed

C:\Users\com\ninsiki\app\src\main\res\layout\activity_cameraus.xml:9: AAPT: error: attribute layout_constraintBottom_toBottomOf (aka com.example.ninsiki:layout_constraintBottom_toBottomOf) not found.
(以下数行は同じような形のエラーが繰り返されています。)

Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
(以下数行は先ほど示したC:から始まるエラー文が繰り返されています。)

###エラーにて示されている場所のソースコード
(activity_cameraus)

java

1<?xml version="1.0" encoding="utf-8"?> 2<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com/apk/res-auto" 4 xmlns:tools="http://schemas.android.com/tools" 5 android:layout_width="match_parent" 6 android:layout_height="match_parent" 7 tools:context=".Cameraus"> 8 9 <Button 10 android:id="@+id/camera_button" 11 android:layout_width="143dp" 12 android:layout_height="84dp" 13 android:layout_margin="20dp" 14 android:background="@drawable/clear_button_bg" 15 app:layout_constraintBottom_toBottomOf="parent" 16 app:layout_constraintHorizontal_bias="0.444" 17 app:layout_constraintLeft_toLeftOf="parent" 18 app:layout_constraintRight_toRightOf="parent" 19 app:layout_constraintTop_toTopOf="parent" 20 app:layout_constraintVertical_bias="0.865" /> 21 22 <Button 23 android:id="@+id/collee" 24 android:layout_width="152dp" 25 android:layout_height="72dp" 26 android:background="@drawable/clear_button_bg" 27 app:layout_constraintBottom_toBottomOf="parent" 28 app:layout_constraintEnd_toEndOf="parent" 29 app:layout_constraintHorizontal_bias="0.0" 30 app:layout_constraintStart_toStartOf="parent" 31 app:layout_constraintTop_toTopOf="parent" 32 app:layout_constraintVertical_bias="1.0"/> 33 34 <Button 35 android:id="@+id/collecter" 36 android:layout_width="152dp" 37 android:layout_height="72dp" 38 android:background="@drawable/clear_button_bg" 39 app:layout_constraintBottom_toBottomOf="parent" 40 app:layout_constraintEnd_toEndOf="parent" 41 app:layout_constraintHorizontal_bias="1.0" 42 app:layout_constraintStart_toStartOf="parent" 43 app:layout_constraintTop_toTopOf="parent" 44 app:layout_constraintVertical_bias="1.0" /> 45 <ImageView 46 android:id="@+id/image_vie" 47 android:layout_width="match_parent" 48 android:layout_height="match_parent" 49 android:contentDescription="@string/description" 50 android:src="@drawable/cau" 51 tools:layout_editor_absoluteX="-43dp" 52 tools:layout_editor_absoluteY="67dp" /> 53</androidx.constraintlayout.widget.ConstraintLayout>

####実践したこと
・むしろ色々実践したらこうなってしまった。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

oikashinoa

2019/10/07 11:03

どんなキーワードで調べました?
ninzinman

2019/10/07 11:05

エラー文をコピペして調べました。
jimbe

2019/10/07 11:24

タイトルは内容の要約にして頂けますか. 「いくら調べても求める情報が出てきません。」では, 何の質問かさっぱり分かりませんので.
ninzinman

2019/10/07 11:26

わかりました。できるだけ頑張ってみます。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問