[Android]エラー対策 Error inflating class android.support.constraint.ConstraintLayout

Error inflating class android.support.constraint.ConstraintLayout

ネットからサンプルコードなどを持ってきたときに発生する。

原因
コンストレイントレイアウト(ConstraintLayout)関連のエラーが出てる
基本的に、このエラーが出たら古い開発環境である。
AndroidStudioのバージョンを上げたほうが良い。
ConstraintLayoutはAndroidStudio 2.2から使える。それ以前の環境を使ってるのはちょっと古すぎます。

“[Android]エラー対策 Error inflating class android.support.constraint.ConstraintLayout” の続きを読む

[Android]エラー対策 must implement OnFragmentInteractionListener

must implement OnFragmentInteractionListener

java.lang.ClassCastException: com.example.appname.MainActivity@xxxxxxx must implement OnFragmentInteractionListener

FragmentをActivityに貼り付けようとするとエラー発生。

“[Android]エラー対策 must implement OnFragmentInteractionListener” の続きを読む

[Android]エラー対策 Cannot execute task: the task has already been executed (a task can be executed only once)

Cannot execute task: the task has already been executed (a task can be executed only once)

・タスクを実行できません:タスクは既に実行されています(タスクは1回だけ実行できます)

原因
AsyncTask実行時に発生
AsyncTaskは毎回作り直さないといけない。

 

[Android]エラー対策 Warning:Android Studio 2.3.2.0 requires Gradle 2.14.1 (or newer) but project is using version 2.2.1.

Warning:Android Studio 2.3.2.0 requires Gradle 2.14.1 (or newer) but project is using version 2.2.1.
It is strongly recommended that you update Gradle to version 2.14.1 or newer.

AndroidStudio2.3.2は Gradle2.14.1以降を要求します。
あなたはgradle2.2.1を使っています。2.14.1より新しいものを使うことをおすすめします。

“[Android]エラー対策 Warning:Android Studio 2.3.2.0 requires Gradle 2.14.1 (or newer) but project is using version 2.2.1.” の続きを読む

[iOS]エラー対策 App Installation Failed The application could not be verified

・App Installation Failed
The application could not be verified

冷静になりましょう。これは焦ることはありません。
アプリの入れなおしで動きます。

“[iOS]エラー対策 App Installation Failed The application could not be verified” の続きを読む

[iOS]エラー対策 Library not loaded Reason: image not found

・Library not loaded Reason: image not found

実行時エラーです。

Library not loaded: @rpath/ライブラリ名
Referenced from: /var/containers/Bundle/Application/…
Reason: image not found

“[iOS]エラー対策 Library not loaded Reason: image not found” の続きを読む

[iOS]エラー対策 process launch failed failed to get the task for process 0000

原文
process launch failed failed to get the task for process ProcessID

Google翻訳
プロセスの起動に失敗しました。プロセスProcessIDのタスクを取得できませんでした

現象
ビルドは通るのに実機実行時にエラー

“[iOS]エラー対策 process launch failed failed to get the task for process 0000” の続きを読む

[iOS]エラー対策 Unknown class Cell in Interface Builder file.

Unknown class Cell in Interface Builder file.

実行時エラーです

再現方法
一つのTableViewに複数カスタムセルを登録しようとしたら、
セルを作るところで異常終了した。

“[iOS]エラー対策 Unknown class Cell in Interface Builder file.” の続きを読む