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

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

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

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

Kotlin

Kotlinは、ジェットブレインズ社のアンドリー・ブレスラフ、ドミトリー・ジェメロフが開発した、 静的型付けのオブジェクト指向プログラミング言語です。

Q&A

0回答

2905閲覧

Androidのプログラム起動時のエラーの意味を教えてください

TaishiKusunose

総合スコア5

Java

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

Kotlin

Kotlinは、ジェットブレインズ社のアンドリー・ブレスラフ、ドミトリー・ジェメロフが開発した、 静的型付けのオブジェクト指向プログラミング言語です。

0グッド

0クリップ

投稿2021/03/22 10:07

編集2021/03/22 11:00

android開発は初めてで何の知見もないのですが、現在こちらのサンプルアプリを見てみたくて環境構築とビルドを行っております。
https://www.smbc-card.com/steradevelopers/start/terminal.jsp

上記の指示書通りに環境構築をしたのですが、いざビルドしようとするとアプリが強制的に落ちてしまい、以下のログが出てしまいます。

Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. D/ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.test.base.jar I/.posapp.omusub: The ClassLoaderContext is a special shared library. D/NetworkSecurityConfig: No Network Security Config specified, using platform default D/NetworkSecurityConfig: No Network Security Config specified, using platform default D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so W/.posapp.omusub: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) W/.posapp.omusub: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) D/MainActivity: A file needed already exists in the terminal. I/chatty: uid=10153(com.panasonic.sample.posapp.omusubi) identical 4 lines D/MainActivity: A file needed already exists in the terminal. isFileName =false A file needed already exists in the terminal. D/OmusubiCustomerDisplay: [in] constructor mDisplayType=welcome D/OmusubiCustomerDisplay: application package name =com.panasonic.sample.posapp.omusubi [out] constructor D/PaymentApiConnection: [in] initializePaymentApi() V/PaymentApi: [PaymentApi] enter. V/PaymentApi: [PaymentApi] exit. [init] enter. E/PaymentApi: failure to connect service. D/AndroidRuntime: Shutting down VM E/AndroidRuntime: FATAL EXCEPTION: main Process: com.panasonic.sample.posapp.omusubi, PID: 10748 java.lang.RuntimeException: Unable to resume activity {com.panasonic.sample.posapp.omusubi/com.panasonic.sample.posapp.omusubi.posapp_sample.MainActivity}: java.lang.IllegalStateException: bindService failed at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4444) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4476) at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) Caused by: java.lang.IllegalStateException: bindService failed at com.panasonic.smartpayment.android.api.PaymentApi.init(PaymentApi.java:120) at com.panasonic.sample.posapp.omusubi.posapp_sample.paymentapi.PaymentApiConnection.initializePaymentApi(PaymentApiConnection.java:71) at com.panasonic.sample.posapp.omusubi.posapp_sample.MainActivity.onResume(MainActivity.java:241) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1456) at android.app.Activity.performResume(Activity.java:8135) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4434) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4476)  at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)  at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)  at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)  at android.os.Handler.dispatchMessage(Handler.java:106)  at android.os.Looper.loop(Looper.java:223)  at android.app.ActivityThread.main(ActivityThread.java:7656)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) 

Android Manifest.xmlがおかしいと思っているのですが、permissionは指示書通りに設定しております。

<!-- Permission for PaymentAPI --> <uses-permission android:name="com.panasonic.smartpayment.android.api.permission.HLAPI" />

基本的なことであったらすみませんが、ご教授いただけると嬉しいです。
よろしくお願いします。

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

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

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

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

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

dodox86

2021/03/22 10:55 編集

ビルドエラーではなくて、ビルド自体は成功していて、プログラム実行時のエラーなのではないでしょうか。ビルド時のエラーと実行時のエラーは性質はまったく違うものなので、用語をちゃんと使い分けないと、読んだ者に誤解を生みます。Androidアプリを特殊端末で動作させるのは、基本的と言うかかなり応用です。ご提示のURLから見るとstera(ステラ)アプリとやらは、デバッグ時でも開発用ステラターミナル自体が必要で、以下のURLまでの手順はあくまでビルドまで、です。 https://www.smbc-card.com/steradevelopers/develop/paymentapi.jsp アプリの配布(インストール)にあたって、署名などが必要なのではないでしょうか。 良く分かりませんが、logcat中のエラーメッセージに以下のような文言があるので。 > V/PaymentApi: [PaymentApi] enter. > V/PaymentApi: [PaymentApi] exit. > [init] enter. > E/PaymentApi: failure to connect service.
TaishiKusunose

2021/03/22 11:06

@dodox86さん ご連絡ありがとうございます! 確かに、プログラム実行時のエラーでしたのでタイトル修正しました。迷わせてしまい申し訳ありません。 機器自体なくてもPC上で見ることができると思っていましたが、やはり実機が必要でした。用意してから実行してみようと思います。 ありがとうございます。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

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

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

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問